Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IlyaRice/RAG-Challenge-2
/ functions
Functions
158 in github.com/IlyaRice/RAG-Challenge-2
⨍
Functions
158
◇
Types & classes
45
↓ 1 callers
Method
retrieve_all
(self, company_name: str)
src/retrieval.py:210
↓ 1 callers
Method
retrieve_by_company_name
(self, company_name: str, query: str, top_n: int = 3, return_parent_pages: bool = False)
src/retrieval.py:21
↓ 1 callers
Method
retrieve_by_company_name
(self, company_name: str, query: str, llm_reranking_sample_size: int = None, top_n: int = 3, return_parent_pag
src/retrieval.py:153
↓ 1 callers
Method
send_message
( self, # model='meta-llama/llama-3-1-8b-instruct', model=None, temperature=0.
src/api_requests.py:138
↓ 1 callers
Method
send_message
( self, model=None, temperature: float = 0.5, seed=12345, # For back compatib
src/api_requests.py:330
↓ 1 callers
Method
serialize_tables
Process tables in files using parallel threading
src/pipeline.py:145
↓ 1 callers
Method
set_up_llm
()
src/retrieval.py:97
↓ 1 callers
Method
set_up_llm
(self)
src/reranking.py:41
↓ 1 callers
Method
set_up_llm
(self)
src/api_requests.py:26
↓ 1 callers
Method
split_all_reports
(self, all_report_dir: Path, output_dir: Path, serialized_tables_dir: Optional[Path] = None)
src/text_splitter.py:87
↓ 1 callers
Function
task_id_generator_function
Generate integers 0, 1, 2, and so on.
src/api_request_parallel_processor.py:428
Method
__init__
(self, bm25_db_dir: Path, documents_dir: Path)
src/retrieval.py:17
Method
__init__
(self, vector_db_dir: Path, documents_dir: Path)
src/retrieval.py:81
Method
__init__
(self, vector_db_dir: Path, documents_dir: Path)
src/retrieval.py:241
Method
__init__
(self)
src/reranking.py:10
Method
__init__
(self)
src/reranking.py:34
Method
__init__
(self, preserve_temp_files: bool = True)
src/tables_serialization.py:34
Method
__init__
(self, root_path: Path, subset_name: str = "subset.csv", questions_file_name: str = "questions.json", pdf_repo
src/pipeline.py:19
Method
__init__
(self, root_path: Path, subset_name: str = "subset.csv", questions_file_name: str = "questions.json", pdf_repo
src/pipeline.py:65
Method
__init__
( self, pdf_backend=DoclingParseV2DocumentBackend, output_dir: Path = Path("./parsed_p
src/pdf_parsing.py:33
Method
__init__
(self, metadata_lookup: dict = None, debug_data_path: Path = None)
src/pdf_parsing.py:251
Method
__init__
( self, vector_db_dir: Union[str, Path] = './vector_dbs', documents_dir: Union[str, Pa
src/questions_processing.py:14
Method
__init__
Initialize with option to add serialized tables to markdown ones.
src/parsed_reports_merging.py:12
Method
__init__
(self)
src/ingestion.py:17
Method
__init__
(self)
src/ingestion.py:53
Method
__init__
(self)
src/api_requests.py:21
Method
__init__
(self)
src/api_requests.py:88
Method
__init__
(self)
src/api_requests.py:240
Method
__init__
(self, provider: Literal["openai", "ibm", "gemini"] ="openai")
src/api_requests.py:371
Method
_log_retry_attempt
Print information about the retry attempt
src/api_requests.py:263
Function
_process_chunk
Helper function to process a chunk of PDFs in a separate process.
src/pdf_parsing.py:18
Method
check_balance
Check the current balance for the provided token.
src/api_requests.py:93
Method
count_tokens
(string, encoding_name="o200k_base")
src/api_requests.py:77
Method
create_bm25_db
Create BM25 database from chunked reports.
src/pipeline.py:195
Function
download_models
Download required docling models.
main.py:11
Method
emit
(self, record)
src/tables_serialization.py:21
Method
get_available_models
Get a list of available foundation models.
src/api_requests.py:106
Method
get_embeddings
Get vector embeddings for the provided text inputs.
src/api_requests.py:118
Method
get_strings_cosine_similarity
(str1, str2)
src/retrieval.py:144
Method
list_available_models
Prints available Gemini models that support text generation.
src/api_requests.py:251
Method
monitor_progress
()
src/api_requests.py:535
Function
parse_pdfs
Parse PDF reports with optional parallel processing.
main.py:20
Method
process_batch
(batch)
src/reranking.py:117
Method
process_company_question
Helper function to process one company's question and return (company, answer)
src/questions_processing.py:470
Method
process_file
(self, json_path: Path)
src/tables_serialization.py:228
Function
process_questions
Process questions using the pipeline.
main.py:51
Function
process_reports
Process parsed reports through the pipeline stages.
main.py:40
Method
process_single_doc
(doc)
src/reranking.py:98
Method
process_table
(self, table_data)
src/pdf_parsing.py:284
Method
process_with_progress
()
src/api_requests.py:552
Method
replace_cap
(match)
src/parsed_reports_merging.py:169
Method
replace_command
(match)
src/parsed_reports_merging.py:158
Method
replace_glyph
(match)
src/parsed_reports_merging.py:165
Method
rerank
(self, query, documents, top_n = 10)
src/reranking.py:21
Method
retrieve_by_company_name
Retrieve and rerank documents using hybrid approach. Args: company_name: Name of the company to search documents
src/retrieval.py:245
Method
send_message
( self, model=None, temperature=0.5, seed=None, # For deterministic ouptputs
src/api_requests.py:35
Function
serialize_tables
Serialize tables in parsed reports using parallel threading.
main.py:30
Method
serialize_tables
Process all tables in the report and add serialization results to each table's info
src/tables_serialization.py:154
← previous
101–158 of 158, ranked by callers