MCPcopy Index your code

hub / github.com/Marker-Inc-Korea/AutoRAG / functions

Functions1,491 in github.com/Marker-Inc-Korea/AutoRAG

↓ 92 callersMethod_pure
(self, *args, **kwargs)
tests/autorag/schema/test_base_schema.py:18
↓ 60 callersMethodto_parquet
Save the qa and corpus to the AutoRAG compatible parquet file. It is not for the data creation, for running AutoRAG. If you want to save it dir
autorag/data/qa/schema.py:175
↓ 52 callersMethodrun_evaluator
( cls, project_dir: Union[str, Path], previous_result: pd.DataFrame, *args, **kwargs, )
autorag/schema/base.py:18
↓ 42 callersFunctionget_event_loop
Get asyncio event loop safely.
autorag/utils/util.py:602
↓ 39 callersMethodbatch_apply
( self, fn: Callable[[Dict, Any], Awaitable[Dict]], batch_size: int = 32, **kwargs )
autorag/data/qa/schema.py:134
↓ 38 callersFunctioncheck_parse_result
(texts, file_names, file_type)
tests/autorag/data/parse/test_parse_base.py:66
↓ 36 callersFunctionbase_reranker_test
(contents, ids, scores, top_k, use_ko=False, descending=True)
tests/autorag/nodes/passagereranker/test_passage_reranker_base.py:63
↓ 36 callersFunctionpop_params
Pop parameters from the given func and return them. It automatically deletes the parameters like "self" or "cls". :param func: The function to po
autorag/utils/util.py:638
↓ 34 callersMethod_using_in_memory_store
(self)
autorag/vectordb/base.py:98
↓ 29 callersFunctionprocess_batch
Processes tasks in batches asynchronously. :param tasks: A list of no-argument functions or coroutines to be executed. :param batch_size: The num
autorag/utils/util.py:292
↓ 27 callersFunctionload_summary_file
Load a summary file from summary_path. :param summary_path: The path of the summary file. :param dict_columns: The columns that are dictionary ty
autorag/utils/util.py:88
↓ 24 callersMethodrun
(self, previous_result: pd.DataFrame, node_line_dir: str)
autorag/schema/node.py:54
↓ 23 callersFunctionfetch_contents
( corpus_data: pd.DataFrame, ids: List[List[str]], column_name: str = "contents" )
autorag/utils/util.py:32
↓ 21 callersMethodload
(config: Union[str, Dict, List[Dict]])
autorag/embedding/base.py:75
↓ 19 callersFunctionbase_reranker_node_test
(result_df, top_k, use_ko=False, descending=True)
tests/autorag/nodes/passagereranker/test_passage_reranker_base.py:92
↓ 19 callersFunctioncheck_generated_texts
(generated_texts)
tests/autorag/nodes/generator/test_generator_base.py:32
↓ 19 callersFunctionempty_cuda_cache
()
autorag/utils/util.py:679
↓ 19 callersMethodmap
(self, fn: Callable[[pd.DataFrame, Any], pd.DataFrame], **kwargs)
autorag/data/qa/schema.py:162
↓ 19 callersFunctionvalidate_qa_dataset
(df: pd.DataFrame)
autorag/utils/preprocess.py:9
↓ 18 callersMethodcast_to_run
(self, previous_result: pd.DataFrame, *args, **kwargs)
autorag/nodes/passagereranker/base.py:26
↓ 18 callersMethodclose
()
autorag/embedding/vllm.py:104
↓ 18 callersFunctionto_list
Recursively convert collections to Python lists.
autorag/utils/util.py:556
↓ 17 callersFunctionvectordb_ingest_api
Ingest given corpus data to the vectordb. It truncates corpus content when the embedding model is OpenAIEmbedding to the 8000 tokens. Plus, when t
autorag/nodes/semanticretrieval/vectordb.py:244
↓ 15 callersFunctionapply_recursive
Recursively apply a function to all elements in a list, tuple, set, np.ndarray, or pd.Series and return as List. :param func: Function to apply to
autorag/utils/util.py:659
↓ 14 callersMethodadd
(self, ids: List[str], texts: List[str])
autorag/vectordb/chroma.py:67
↓ 14 callersFunctioncheck_generated_log_probs
(log_probs)
tests/autorag/nodes/generator/test_generator_base.py:44
↓ 14 callersFunctioncheck_generated_tokens
(tokens)
tests/autorag/nodes/generator/test_generator_base.py:38
↓ 14 callersMethodfrom_dict
(cls, node_dict: Dict)
autorag/schema/node.py:46
↓ 14 callersFunctionmeasure_speed
Method for measuring execution speed of the function.
autorag/strategy.py:9
↓ 14 callersMethodtruncated_inputs
(self, inputs: List[str])
autorag/vectordb/base.py:72
↓ 13 callersFunctionbase_passage_filter_test
(contents, ids, scores)
tests/autorag/nodes/passagefilter/test_passage_filter_base.py:87
↓ 13 callersFunctionfilter_by_threshold
Filter results by value's threshold. :param results: The result list to be filtered. :param value: The value list to be filtered. It must ha
autorag/strategy.py:51
↓ 13 callersFunctionmake_batch
Make a batch of elems with batch_size.
autorag/utils/util.py:311
↓ 13 callersMethodquery
( self, queries: List[str], top_k: int, **kwargs )
autorag/vectordb/chroma.py:94
↓ 13 callersMethodsample
Sample the corpus for making QA. It selects the subset of the corpus and makes QA set from it. You can generate questions from the created ques
autorag/data/qa/schema.py:100
↓ 12 callersMethodbatch_filter
( self, fn: Callable[[Dict, Any], Awaitable[bool]], batch_size: int = 32, **kwargs )
autorag/data/qa/schema.py:148
↓ 12 callersFunctionget_support_modules
(module_name: str)
autorag/support.py:15
↓ 12 callersFunctionselect_best
( results: List[pd.DataFrame], columns: Iterable[str], metadatas: Optional[List[Any]] = None, strategy_nam
autorag/strategy.py:95
↓ 12 callersFunctionselect_top_k
(df, column_names: List[str], top_k: int)
autorag/utils/util.py:414
↓ 11 callersFunctioncast_metrics
Turn metrics to list of metric names and parameter list. :param metrics: List of string or dictionary. :return: The list of metric names and dic
autorag/evaluation/util.py:7
↓ 11 callersFunctioncheck_chunk_result
(doc_id, contents, path, start_end_idx, metadata)
tests/autorag/data/chunk/test_chunk_base.py:138
↓ 11 callersFunctioncheck_generation_gt
(result_qa: QA)
tests/autorag/data/qa/generation_gt/base_test_generation_gt.py:20
↓ 11 callersFunctionflatten_apply
This function flattens the input list and applies the function to the elements. After that, it reconstructs the list to the original shape. Its sp
autorag/utils/util.py:363
↓ 11 callersFunctionlangchain_parse
Parse documents to use langchain document_loaders(parse) method :param data_path_list: The list of data paths to parse. :param parse_method: A la
autorag/data/parse/langchain_parse.py:10
↓ 11 callersMethodstart_trial
Start AutoRAG trial. The trial means one experiment to optimize the RAG pipeline. It consists of ingesting corpus data, running all nodes and m
autorag/evaluator.py:106
↓ 9 callersFunctioncheck_chunk_result_node
(result_df)
tests/autorag/data/chunk/test_chunk_base.py:152
↓ 9 callersFunctioncheck_result
(result: List[str])
tests/autorag/nodes/passagecompressor/test_base_passage_compressor.py:32
↓ 9 callersFunctionvalidate_corpus_dataset
(df: pd.DataFrame)
autorag/utils/preprocess.py:16
↓ 8 callersFunctionbase_test_metrics
(func, solution, metric_inputs, **kwargs)
tests/autorag/evaluate/metric/test_generation_metric.py:183
↓ 8 callersMethodfetch
(self, ids: List[str])
autorag/vectordb/chroma.py:78
↓ 8 callersFunctionfind_key_values
Recursively find all values for a specific key in a nested dictionary or list. :param data: The dictionary or list to search. :param target_key:
autorag/utils/util.py:614
↓ 8 callersMethodfrom_trial_folder
Load Runner from the evaluated trial folder. Must already be evaluated using Evaluator class. It sets the project_dir as the parent directory o
autorag/deploy/base.py:190
↓ 8 callersMethodis_exist
(self, ids: List[str])
autorag/vectordb/chroma.py:86
↓ 8 callersFunctionnormalize_string
Taken from the official evaluation script for v1.1 of the SQuAD dataset. Lower text and remove punctuation, articles, and extra whitespace.
autorag/utils/util.py:215
↓ 8 callersFunctionopenai_truncate_by_token
( texts: List[str], token_limit: int, model_name: str )
autorag/utils/util.py:335
↓ 7 callersMethod_enable_in_memory_store
( self, dimension: int | None = None, store_key: str | None = None )
autorag/vectordb/base.py:88
↓ 7 callersMethodcast_to_run
(self, previous_result: pd.DataFrame, *args, **kwargs)
autorag/nodes/generator/base.py:25
↓ 7 callersMethodencoding_for_model
(self, answer_piece: str)
autorag/nodes/generator/vllm_api.py:159
↓ 7 callersMethodstructured_output
(self, prompts: List[str], output_cls)
autorag/nodes/generator/base.py:33
↓ 6 callersFunctioncast_corpus_dataset
(df: pd.DataFrame)
autorag/utils/preprocess.py:70
↓ 6 callersFunctioncast_qa_dataset
(df: pd.DataFrame)
autorag/utils/preprocess.py:23
↓ 6 callersMethodcast_to_run
(self, previous_result: pd.DataFrame, *args, **kwargs)
autorag/nodes/passagefilter/base.py:22
↓ 6 callersMethoddelete
(self, ids: List[str])
autorag/vectordb/chroma.py:114
↓ 6 callersFunctionexplode
Explode index_values and explode_values. The index_values and explode_values must have the same length. It will flatten explode_values and keep in
autorag/utils/util.py:180
↓ 6 callersFunctionmake_combinations
Make combinations from target_dict. The target_dict key value must be a string, and the value can be a list of values or single value. If generat
autorag/utils/util.py:137
↓ 6 callersMethodpure
(self, previous_result: pd.DataFrame, *args, **kwargs)
autorag/schema/base.py:10
↓ 5 callersMethod_embed
Generates Embeddings with input validation and retry mechanism. Args: sentences: Texts or Sentences to embed prompt_name: The name o
autorag/embedding/vllm.py:149
↓ 5 callersMethod_in_memory_add
(self, ids: List[str], texts: List[str])
autorag/vectordb/base.py:151
↓ 5 callersMethod_in_memory_add_embedding
(self, ids: List[str], embeddings: List[List[float]])
autorag/vectordb/base.py:159
↓ 5 callersMethod_in_memory_delete
(self, ids: List[str])
autorag/vectordb/base.py:198
↓ 5 callersMethod_in_memory_fetch
(self, ids: List[str])
autorag/vectordb/base.py:165
↓ 5 callersMethod_in_memory_is_exist
(self, ids: List[str])
autorag/vectordb/base.py:170
↓ 5 callersMethod_in_memory_query
( self, queries: List[str], top_k: int )
autorag/vectordb/base.py:173
↓ 5 callersFunctionbase_passage_filter_node_test
(result_df)
tests/autorag/nodes/passagefilter/test_passage_filter_base.py:103
↓ 5 callersFunctionextract_best_config
Extract the optimal pipeline from the evaluated trial. :param trial_path: The path to the trial directory that you want to extract the pipeline fr
autorag/deploy/base.py:95
↓ 5 callersMethodfilter
(self, fn: Callable[[Dict, Any], bool], **kwargs)
autorag/data/qa/schema.py:157
↓ 5 callersFunctionllama_index_chunk
Chunk texts from the parsed result to use llama index chunk method :param texts: The list of texts to chunk from the parsed result :param chunker
autorag/data/chunk/llama_index_chunk.py:17
↓ 5 callersMethodload_from_dict
(option: dict)
autorag/embedding/base.py:99
↓ 5 callersFunctionload_vectordb
(vectordb_name: str, **kwargs)
autorag/vectordb/__init__.py:27
↓ 5 callersFunctionload_yaml_config
Load a YAML configuration file for AutoRAG. It contains safe loading, converting string to tuple, and insert environment variables. :param yaml_p
autorag/utils/util.py:689
↓ 5 callersFunctionparse_prompt
(prompt: Union[str, List[Dict]])
autorag/nodes/generator/minimax_llm.py:299
↓ 5 callersFunctionparse_prompt
(prompt: Union[str, List[Dict]])
autorag/nodes/generator/openai_llm.py:357
↓ 5 callersFunctionsave_parquet_safe
(df: pd.DataFrame, filepath: str, upsert: bool = False)
autorag/utils/util.py:318
↓ 5 callersFunctionsingle_token_f1
(ground_truth: str, prediction: str)
autorag/evaluation/metric/retrieval_contents.py:16
↓ 5 callersFunctionvalidate_qa_from_corpus_dataset
(qa_df: pd.DataFrame, corpus_df: pd.DataFrame)
autorag/utils/preprocess.py:131
↓ 4 callersMethod_in_memory_delete_collection
(self)
autorag/vectordb/base.py:202
↓ 4 callersFunctionbm25_ingest
( corpus_path: str, corpus_data: pd.DataFrame, bm25_tokenizer: str = "porter_stemmer" )
autorag/nodes/lexicalretrieval/bm25.py:362
↓ 4 callersFunctioncalculate_cosine_similarity
(a, b)
autorag/evaluation/metric/util.py:10
↓ 4 callersMethodcast_to_run
(self, previous_result: pd.DataFrame, *args, **kwargs)
autorag/nodes/promptmaker/base.py:23
↓ 4 callersFunctioncheck_clova_result
(texts, path, pages)
tests/autorag/data/parse/test_clova.py:35
↓ 4 callersMethodchunk
(self, module_name: str, **module_params)
autorag/data/qa/schema.py:37
↓ 4 callersFunctionevaluate_retrieval_node
Evaluate retrieval node from retrieval node result dataframe. :param result_df: The result dataframe from a retrieval node. :param metric_inputs:
autorag/nodes/retrieval/run_util.py:12
↓ 4 callersFunctionextract_values_from_nodes
This function extract values from nodes' modules' module_param. :param nodes: The nodes you want to extract values from. :param key: The key of m
autorag/schema/node.py:91
↓ 4 callersFunctionget_id_scores
Calculate the highest similarity scores between query embeddings and content embeddings. :param query_embeddings: A list of lists containing query
autorag/nodes/semanticretrieval/vectordb.py:309
↓ 4 callersFunctionget_start_end_idx
(original_text: str, search_str: str)
autorag/data/utils/util.py:98
↓ 4 callersFunctionhybrid_cc
Hybrid CC function. CC (convex combination) is a method to fuse lexical and semantic retrieval results. It is a method that first normalizes the s
autorag/nodes/hybridretrieval/hybrid_cc.py:125
↓ 4 callersMethodis_fields_notnone
(self, fields_to_check: List[str])
autorag/schema/metricinput.py:21
↓ 4 callersFunctionlangchain_chunk
Chunk texts from the parsed result to use langchain chunk method :param texts: The list of texts to chunk from the parsed result :param chunker:
autorag/data/chunk/langchain_chunk.py:13
↓ 4 callersFunctionllama_index_generate_base
( row: Dict, llm: BaseLLM, messages: List[ChatMessage], )
autorag/data/qa/query/llama_gen_query.py:10
↓ 4 callersMethodload_from_list
(option: List[dict])
autorag/embedding/base.py:93
next →1–100 of 1,491, ranked by callers