AutoRAG 0.2.7__tar.gz → 0.2.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {autorag-0.2.7 → autorag-0.2.8}/AutoRAG.egg-info/PKG-INFO +3 -3
- {autorag-0.2.7 → autorag-0.2.8}/PKG-INFO +3 -3
- {autorag-0.2.7 → autorag-0.2.8}/README.md +2 -2
- autorag-0.2.8/autorag/VERSION +1 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluation/metric/generation.py +8 -1
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluation/metric/retrieval.py +5 -1
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluation/metric/retrieval_contents.py +2 -1
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/flag_embedding.py +2 -2
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/queryexpansion/base.py +3 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/queryexpansion/query_decompose.py +1 -1
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/queryexpansion/run.py +3 -2
- {autorag-0.2.7 → autorag-0.2.8}/autorag/utils/util.py +32 -2
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/query_expansion/query_decompose.md +52 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/evaluate/metric/test_retrieval_metric.py +10 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passageaugmenter/test_run_passage_augmenter.py +1 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagecompressor/test_run_passage_compressor_node.py +1 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagefilter/test_passage_filter_run.py +1 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_passage_reranker_run.py +1 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/promptmaker/test_prompt_maker_run.py +1 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/queryexpansion/test_query_expansion_run.py +1 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/retrieval/test_run_retrieval_node.py +1 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/utils/test_util.py +25 -1
- autorag-0.2.7/autorag/VERSION +0 -1
- {autorag-0.2.7 → autorag-0.2.8}/.github/FUNDING.yml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/.github/dependabot.yml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/.github/workflows/publish.yml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/.github/workflows/sphinx.yml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/.github/workflows/test.yml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/.gitignore +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/AutoRAG.egg-info/SOURCES.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/AutoRAG.egg-info/dependency_links.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/AutoRAG.egg-info/entry_points.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/AutoRAG.egg-info/requires.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/AutoRAG.egg-info/top_level.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/CODE_OF_CONDUCT.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/CONTRIBUTING.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/LICENSE +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/cli.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/dashboard.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/data/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/data/corpus/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/data/corpus/langchain.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/data/corpus/llama_index.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/data/qacreation/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/data/qacreation/base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/data/qacreation/llama_index.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/data/qacreation/llama_index_default_prompt.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/data/qacreation/ragas.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/data/qacreation/simple.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/data/utils/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/data/utils/util.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/deploy.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluation/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluation/generation.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluation/metric/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluation/metric/g_eval_prompts/coh_detailed.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluation/metric/g_eval_prompts/con_detailed.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluation/metric/g_eval_prompts/flu_detailed.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluation/metric/g_eval_prompts/rel_detailed.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluation/metric/util.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluation/retrieval.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluation/retrieval_contents.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluation/util.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/evaluator.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/node_line.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/generator/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/generator/base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/generator/llama_index_llm.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/generator/openai_llm.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/generator/run.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/generator/vllm.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passageaugmenter/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passageaugmenter/base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passageaugmenter/pass_passage_augmenter.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passageaugmenter/prev_next_augmenter.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passageaugmenter/run.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagecompressor/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagecompressor/base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagecompressor/longllmlingua.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagecompressor/pass_compressor.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagecompressor/refine.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagecompressor/run.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagecompressor/tree_summarize.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagefilter/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagefilter/base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagefilter/pass_passage_filter.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagefilter/percentile_cutoff.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagefilter/recency.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagefilter/run.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagefilter/similarity_percentile_cutoff.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagefilter/similarity_threshold_cutoff.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagefilter/threshold_cutoff.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/cohere.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/colbert.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/flag_embedding_llm.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/jina.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/koreranker.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/monot5.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/pass_reranker.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/rankgpt.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/run.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/sentence_transformer.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/tart/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/tart/modeling_enc_t5.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/tart/tart.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/tart/tokenization_enc_t5.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/time_reranker.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/passagereranker/upr.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/promptmaker/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/promptmaker/base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/promptmaker/fstring.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/promptmaker/long_context_reorder.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/promptmaker/run.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/queryexpansion/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/queryexpansion/hyde.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/queryexpansion/multi_query_expansion.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/queryexpansion/pass_query_expansion.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/retrieval/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/retrieval/base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/retrieval/bm25.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/retrieval/hybrid_cc.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/retrieval/hybrid_dbsf.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/retrieval/hybrid_rrf.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/retrieval/hybrid_rsf.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/retrieval/run.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/nodes/retrieval/vectordb.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/schema/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/schema/module.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/schema/node.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/strategy.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/support.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/utils/__init__.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/utils/preprocess.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/autorag/web.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/Makefile +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/make.bat +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/requirements.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/CNAME +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/data_creation.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/data_folder.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/dcg.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/f1_score.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/map.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/mrr.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/ndcg.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/ndcg_formula.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/node_folder.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/node_line_folder.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/node_line_summary.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/node_lines.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/node_summary.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/normal_distribution.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/project_folder_example.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/project_folders.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/resources_folder.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/roadmap/RAG_paradigms.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/roadmap/advanced_RAG.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/roadmap/cycle.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/roadmap/merger.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/roadmap/node_line_modular.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/roadmap/policy.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/samsung_sundae.jpeg +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/score_fusion.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/trial_folder.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/trial_json.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/trial_summary.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/_static/web_interface.png +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.data.corpus.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.data.qacreation.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.data.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.data.utils.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.evaluation.metric.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.evaluation.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.nodes.generator.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.nodes.passageaugmenter.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.nodes.passagecompressor.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.nodes.passagefilter.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.nodes.passagereranker.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.nodes.passagereranker.tart.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.nodes.promptmaker.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.nodes.queryexpansion.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.nodes.retrieval.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.nodes.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.schema.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/autorag.utils.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/api_spec/modules.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/conf.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/data_creation/data_format.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/data_creation/ragas.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/data_creation/tutorial.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/deploy/api_endpoint.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/deploy/web.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/evaluate_metrics/generation.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/evaluate_metrics/retrieval.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/evaluate_metrics/retrieval_contents.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/index.rst +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/install.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/local_model.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/generator/generator.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/generator/llama_index_llm.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/generator/openai_llm.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/generator/vllm.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/index.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_augmenter/passage_augmenter.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_augmenter/prev_next_augmenter.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_compressor/longllmlingua.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_compressor/passage_compressor.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_compressor/refine.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_compressor/tree_summarize.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_filter/passage_filter.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_filter/percentile_cutoff.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_filter/recency_filter.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_filter/similarity_percentile_cutoff.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_filter/similarity_threshold_cutoff.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_filter/threshold_cutoff.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_reranker/cohere.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_reranker/colbert.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_reranker/flag_embedding_llm_reranker.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_reranker/flag_embedding_reranker.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_reranker/jina_reranker.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_reranker/koreranker.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_reranker/monot5.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_reranker/passage_reranker.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_reranker/rankgpt.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_reranker/sentence_transformer_reranker.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_reranker/tart.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_reranker/time_reranker.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/passage_reranker/upr.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/prompt_maker/fstring.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/prompt_maker/long_context_reorder.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/prompt_maker/prompt_maker.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/query_expansion/hyde.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/query_expansion/multi_query_expansion.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/query_expansion/query_expansion.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/retrieval/bm25.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/retrieval/hybrid_cc.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/retrieval/hybrid_dbsf.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/retrieval/hybrid_rrf.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/retrieval/hybrid_rsf.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/retrieval/retrieval.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/nodes/retrieval/vectordb.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/optimization/custom_config.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/optimization/folder_structure.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/optimization/optimization.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/optimization/sample_full_config.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/optimization/strategies.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/roadmap/modular_rag.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/structure.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/troubleshooting.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/docs/source/tutorial.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/pyproject.toml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/requirements.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/sample_config/compact_local.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/sample_config/compact_openai.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/sample_config/config_korean.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/sample_config/extracted_sample.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/sample_config/full.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/sample_config/simple_local.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/sample_config/simple_openai.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/sample_dataset/README.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/sample_dataset/eli5/load_eli5_dataset.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/sample_dataset/hotpotqa/load_hotpotqa_dataset.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/sample_dataset/msmarco/load_msmarco_dataset.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/sample_dataset/triviaqa/load_triviaqa_dataset.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/setup.cfg +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/data/corpus/test_base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/data/corpus/test_langchain.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/data/corpus/test_llama_index_corpus.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/data/qacreation/test_base_qacreation.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/data/qacreation/test_llama_index_qacreation.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/data/qacreation/test_ragas_qa_creation.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/data/qacreation/test_simple.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/evaluate/metric/test_generation_metric.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/evaluate/metric/test_retrieval_contents_metric.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/evaluate/test_evaluate_util.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/evaluate/test_generation_evaluate.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/evaluate/test_retrieval_contents_evaluate.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/evaluate/test_retrieval_evaluate.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/generator/test_generator_base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/generator/test_llama_index_llm.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/generator/test_openai.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/generator/test_run_generator_node.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/generator/test_vllm.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passageaugmenter/test_base_passage_augmenter.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passageaugmenter/test_pass_passage_augmenter.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passageaugmenter/test_prev_next_augmenter.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagecompressor/test_base_passage_compressor.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagecompressor/test_longllmlingua.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagecompressor/test_pass_compressor.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagecompressor/test_refine.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagecompressor/test_tree_summarize.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagefilter/test_pass_passage_filter.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagefilter/test_passage_filter_base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagefilter/test_percentile_cutoff.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagefilter/test_recency_filter.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagefilter/test_similarity_percentile_cutoff.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagefilter/test_similarity_threshold_cutoff.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagefilter/test_threshold_cutoff.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_cohere_reranker.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_colbert_reranker.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_flag_embedding.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_flag_embedding_llm.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_jina_reranker.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_koreranker.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_monot5.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_pass_reranker.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_passage_reranker_base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_rankgpt.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_sentence_transformer.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_tart.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_time_reranker.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_upr.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/promptmaker/test_fstring.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/promptmaker/test_long_context_reorder.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/promptmaker/test_prompt_maker_base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/queryexpansion/test_hyde.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/queryexpansion/test_multi_query_expansion.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/queryexpansion/test_pass_query_expansion.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/queryexpansion/test_query_decompose.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/queryexpansion/test_query_expansion_base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/retrieval/test_bm25.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/retrieval/test_hybrid_base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/retrieval/test_hybrid_cc.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/retrieval/test_hybrid_dbsf.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/retrieval/test_hybrid_rrf.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/retrieval/test_hybrid_rsf.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/retrieval/test_retrieval_base.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/retrieval/test_vectordb.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/schema/test_module_schema.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/schema/test_node_schema.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/test_cli.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/test_dashboard.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/test_deploy.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/test_evaluator.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/test_strategy.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/test_support.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/test_web.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/autorag/utils/test_preprocess.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/conftest.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/delete_tests.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/mock.py +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/requirements.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/README.md +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/corpus_data_sample.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/data_creation/raw_dir/sample1.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/data_creation/raw_dir/sample2.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/data_creation/raw_dir/sample3.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/full.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/qa_data_sample.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/qa_gen_prompts/prompt1.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/qa_gen_prompts/prompt2.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/qa_gen_prompts/prompt3.txt +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/qa_test_data_sample.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/config.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/post_retrieve_node_line/generator/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/post_retrieve_node_line/generator/1.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/post_retrieve_node_line/generator/2.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/post_retrieve_node_line/generator/3.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/post_retrieve_node_line/generator/4.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/post_retrieve_node_line/generator/5.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/post_retrieve_node_line/generator/best_5.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/post_retrieve_node_line/generator/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/post_retrieve_node_line/prompt_maker/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/post_retrieve_node_line/prompt_maker/1.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/post_retrieve_node_line/prompt_maker/best_0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/post_retrieve_node_line/prompt_maker/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/post_retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/1.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/2.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/best_0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/pre_retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/retrieve_node_line/passage_compressor/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/retrieve_node_line/passage_compressor/best_0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/retrieve_node_line/passage_compressor/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/retrieve_node_line/passage_reranker/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/retrieve_node_line/passage_reranker/1.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/retrieve_node_line/passage_reranker/best_0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/retrieve_node_line/passage_reranker/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/retrieve_node_line/retrieval/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/retrieve_node_line/retrieval/1.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/retrieve_node_line/retrieval/best_0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/retrieve_node_line/retrieval/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/0/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/config.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/1.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/2.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/best_0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/pre_retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/retrieve_node_line/passage_filter/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/retrieve_node_line/passage_reranker/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/retrieve_node_line/passage_reranker/1.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/retrieve_node_line/passage_reranker/best_0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/retrieve_node_line/passage_reranker/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/retrieve_node_line/retrieval/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/retrieve_node_line/retrieval/1.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/retrieve_node_line/retrieval/best_0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/1/retrieve_node_line/retrieval/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/config.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/post_retrieve_node_line/prompt_maker/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/1.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/2.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/best_0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/pre_retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/retrieve_node_line/passage_compressor/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/retrieve_node_line/passage_compressor/best_0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/retrieve_node_line/passage_compressor/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/retrieve_node_line/passage_reranker/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/retrieve_node_line/passage_reranker/1.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/retrieve_node_line/passage_reranker/best_0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/retrieve_node_line/passage_reranker/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/retrieve_node_line/retrieval/0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/retrieve_node_line/retrieval/1.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/retrieve_node_line/retrieval/best_0.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/retrieve_node_line/retrieval/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/2/retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/3/config.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/best.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/data/corpus.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/data/qa.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/resources/bm25_porter_stemmer.pkl +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/resources/chroma/6595d304-5270-4d9f-a267-c191366804ce/data_level0.bin +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/resources/chroma/6595d304-5270-4d9f-a267-c191366804ce/header.bin +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/resources/chroma/6595d304-5270-4d9f-a267-c191366804ce/length.bin +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/resources/chroma/6595d304-5270-4d9f-a267-c191366804ce/link_lists.bin +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/resources/chroma/chroma.sqlite3 +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/result_project/trial.json +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/sample_contents_nqa.csv +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/sample_project/data/corpus.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/sample_project/data/qa.parquet +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/sample_project/resources/bm25_gpt2.pkl +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/sample_project/resources/bm25_porter_stemmer.pkl +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/simple.yaml +0 -0
- {autorag-0.2.7 → autorag-0.2.8}/tests/resources/test_bm25_retrieval.pkl +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: AutoRAG
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.8
|
|
4
4
|
Summary: Automatically Evaluate RAG pipelines with your own data. Find optimal structure for new RAG product.
|
|
5
5
|
Author-email: Marker-Inc <vkehfdl1@gmail.com>
|
|
6
6
|
License: Apache License
|
|
@@ -505,11 +505,11 @@ autorag run_web --trial_path your/path/to/trial_path
|
|
|
505
505
|
|
|
506
506
|
<img width="1491" alt="web_interface" src="https://github.com/Marker-Inc-Korea/AutoRAG/assets/96727832/f6b00353-f6bb-4d8f-8740-1c264c0acbb8">
|
|
507
507
|
|
|
508
|
-
# Star History
|
|
508
|
+
# ⭐ Star History ⭐
|
|
509
509
|
|
|
510
510
|
[](https://star-history.com/#Marker-Inc-Korea/AutoRAG&Date)
|
|
511
511
|
|
|
512
|
-
# Contributors
|
|
512
|
+
# ✨ Contributors ✨
|
|
513
513
|
|
|
514
514
|
Thanks go to these wonderful people:
|
|
515
515
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: AutoRAG
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.8
|
|
4
4
|
Summary: Automatically Evaluate RAG pipelines with your own data. Find optimal structure for new RAG product.
|
|
5
5
|
Author-email: Marker-Inc <vkehfdl1@gmail.com>
|
|
6
6
|
License: Apache License
|
|
@@ -505,11 +505,11 @@ autorag run_web --trial_path your/path/to/trial_path
|
|
|
505
505
|
|
|
506
506
|
<img width="1491" alt="web_interface" src="https://github.com/Marker-Inc-Korea/AutoRAG/assets/96727832/f6b00353-f6bb-4d8f-8740-1c264c0acbb8">
|
|
507
507
|
|
|
508
|
-
# Star History
|
|
508
|
+
# ⭐ Star History ⭐
|
|
509
509
|
|
|
510
510
|
[](https://star-history.com/#Marker-Inc-Korea/AutoRAG&Date)
|
|
511
511
|
|
|
512
|
-
# Contributors
|
|
512
|
+
# ✨ Contributors ✨
|
|
513
513
|
|
|
514
514
|
Thanks go to these wonderful people:
|
|
515
515
|
|
|
@@ -234,11 +234,11 @@ autorag run_web --trial_path your/path/to/trial_path
|
|
|
234
234
|
|
|
235
235
|
<img width="1491" alt="web_interface" src="https://github.com/Marker-Inc-Korea/AutoRAG/assets/96727832/f6b00353-f6bb-4d8f-8740-1c264c0acbb8">
|
|
236
236
|
|
|
237
|
-
# Star History
|
|
237
|
+
# ⭐ Star History ⭐
|
|
238
238
|
|
|
239
239
|
[](https://star-history.com/#Marker-Inc-Korea/AutoRAG&Date)
|
|
240
240
|
|
|
241
|
-
# Contributors
|
|
241
|
+
# ✨ Contributors ✨
|
|
242
242
|
|
|
243
243
|
Thanks go to these wonderful people:
|
|
244
244
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.2.8
|
|
@@ -16,11 +16,12 @@ from rouge_score.rouge_scorer import RougeScorer
|
|
|
16
16
|
|
|
17
17
|
from autorag import embedding_models
|
|
18
18
|
from autorag.evaluation.metric.util import calculate_cosine_similarity
|
|
19
|
-
from autorag.utils.util import process_batch, openai_truncate_by_token
|
|
19
|
+
from autorag.utils.util import process_batch, openai_truncate_by_token, convert_inputs_to_list
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
def generation_metric(func):
|
|
23
23
|
@functools.wraps(func)
|
|
24
|
+
@convert_inputs_to_list
|
|
24
25
|
def wrapper(generation_gt: List[List[str]], generations: List[str], **kwargs) -> List[float]:
|
|
25
26
|
"""
|
|
26
27
|
Compute generation metric.
|
|
@@ -39,6 +40,7 @@ def generation_metric(func):
|
|
|
39
40
|
return wrapper
|
|
40
41
|
|
|
41
42
|
|
|
43
|
+
@convert_inputs_to_list
|
|
42
44
|
def huggingface_evaluate(instance, key: str,
|
|
43
45
|
generation_gt: List[List[str]], generations: List[str],
|
|
44
46
|
**kwargs) -> List[float]:
|
|
@@ -70,6 +72,7 @@ def bleu(gt: List[str], pred: str, **kwargs) -> float:
|
|
|
70
72
|
return sacrebleu.sentence_bleu(pred, gt, **kwargs).score
|
|
71
73
|
|
|
72
74
|
|
|
75
|
+
@convert_inputs_to_list
|
|
73
76
|
def meteor(generation_gt: List[List[str]], generations: List[str],
|
|
74
77
|
alpha: float = 0.9,
|
|
75
78
|
beta: float = 3.0,
|
|
@@ -97,6 +100,7 @@ def meteor(generation_gt: List[List[str]], generations: List[str],
|
|
|
97
100
|
return result
|
|
98
101
|
|
|
99
102
|
|
|
103
|
+
@convert_inputs_to_list
|
|
100
104
|
def rouge(generation_gt: List[List[str]], generations: List[str],
|
|
101
105
|
rouge_type: Optional[str] = 'rougeL',
|
|
102
106
|
use_stemmer: bool = False,
|
|
@@ -141,6 +145,7 @@ def rouge(generation_gt: List[List[str]], generations: List[str],
|
|
|
141
145
|
return result
|
|
142
146
|
|
|
143
147
|
|
|
148
|
+
@convert_inputs_to_list
|
|
144
149
|
def sem_score(generation_gt: List[List[str]], generations: List[str],
|
|
145
150
|
embedding_model: Optional[BaseEmbedding] = None,
|
|
146
151
|
batch: int = 128) -> List[float]:
|
|
@@ -194,6 +199,7 @@ def sem_score(generation_gt: List[List[str]], generations: List[str],
|
|
|
194
199
|
return result
|
|
195
200
|
|
|
196
201
|
|
|
202
|
+
@convert_inputs_to_list
|
|
197
203
|
def g_eval(generation_gt: List[List[str]], generations: List[str],
|
|
198
204
|
metrics: Optional[List[str]] = None,
|
|
199
205
|
model: str = 'gpt-4-0125-preview',
|
|
@@ -283,6 +289,7 @@ async def async_g_eval(generation_gt: List[str], pred: str,
|
|
|
283
289
|
return sum(g_eval_scores) / len(g_eval_scores)
|
|
284
290
|
|
|
285
291
|
|
|
292
|
+
@convert_inputs_to_list
|
|
286
293
|
def bert_score(generation_gt: List[List[str]], generations: List[str],
|
|
287
294
|
lang: str = 'en',
|
|
288
295
|
batch: int = 128,
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import functools
|
|
2
2
|
import itertools
|
|
3
|
-
import math
|
|
4
3
|
from typing import List
|
|
5
4
|
|
|
5
|
+
import math
|
|
6
|
+
|
|
7
|
+
from autorag.utils.util import convert_inputs_to_list
|
|
8
|
+
|
|
6
9
|
|
|
7
10
|
def retrieval_metric(func):
|
|
8
11
|
@functools.wraps(func)
|
|
12
|
+
@convert_inputs_to_list
|
|
9
13
|
def wrapper(retrieval_gt: List[List[List[str]]], pred_ids: List[List[str]]) -> List[float]:
|
|
10
14
|
results = []
|
|
11
15
|
for gt, pred in zip(retrieval_gt, pred_ids):
|
|
@@ -9,11 +9,12 @@ from typing import List
|
|
|
9
9
|
|
|
10
10
|
import numpy as np
|
|
11
11
|
|
|
12
|
-
from autorag.utils.util import normalize_string
|
|
12
|
+
from autorag.utils.util import normalize_string, convert_inputs_to_list
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def retrieval_contents_metric(func):
|
|
16
16
|
@functools.wraps(func)
|
|
17
|
+
@convert_inputs_to_list
|
|
17
18
|
def wrapper(gt_contents: List[List[str]], pred_contents: List[List[str]]) -> List[float]:
|
|
18
19
|
results = []
|
|
19
20
|
for gt, pred in zip(gt_contents, pred_contents):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import List, Tuple
|
|
1
|
+
from typing import List, Tuple, Iterable
|
|
2
2
|
|
|
3
3
|
import pandas as pd
|
|
4
4
|
import torch
|
|
@@ -58,7 +58,7 @@ def flag_embedding_run_model(input_texts, model, batch_size: int):
|
|
|
58
58
|
for batch_texts in tqdm(batch_input_texts):
|
|
59
59
|
with torch.no_grad():
|
|
60
60
|
pred_scores = model.compute_score(sentence_pairs=batch_texts)
|
|
61
|
-
if batch_size == 1:
|
|
61
|
+
if batch_size == 1 or not isinstance(pred_scores, Iterable):
|
|
62
62
|
results.append(pred_scores)
|
|
63
63
|
else:
|
|
64
64
|
results.extend(pred_scores)
|
|
@@ -42,6 +42,9 @@ def query_expansion_node(func):
|
|
|
42
42
|
prompt=prompt,
|
|
43
43
|
generator_func=generator_callable,
|
|
44
44
|
generator_params=generator_param)
|
|
45
|
+
# delete empty string in the nested expanded queries list
|
|
46
|
+
expanded_queries = [list(map(lambda x: x.strip(), sublist)) for sublist in expanded_queries]
|
|
47
|
+
expanded_queries = [list(filter(lambda x: bool(x), sublist)) for sublist in expanded_queries]
|
|
45
48
|
return expanded_queries
|
|
46
49
|
|
|
47
50
|
return wrapper
|
|
@@ -68,7 +68,7 @@ def run_query_expansion_node(modules: List[Callable],
|
|
|
68
68
|
# Run evaluation when there are more than one module.
|
|
69
69
|
if len(modules) > 1:
|
|
70
70
|
# pop general keys from strategies (e.g. metrics, speed_threshold)
|
|
71
|
-
general_key = ['metrics', 'speed_threshold']
|
|
71
|
+
general_key = ['metrics', 'speed_threshold', 'strategy']
|
|
72
72
|
general_strategy = dict(filter(lambda x: x[0] in general_key, strategies.items()))
|
|
73
73
|
extra_strategy = dict(filter(lambda x: x[0] not in general_key, strategies.items()))
|
|
74
74
|
|
|
@@ -93,7 +93,8 @@ def run_query_expansion_node(modules: List[Callable],
|
|
|
93
93
|
# run evaluation
|
|
94
94
|
evaluation_results = list(map(lambda result: evaluate_one_query_expansion_node(
|
|
95
95
|
retrieval_callables, retrieval_params, result['queries'].tolist(), retrieval_gt,
|
|
96
|
-
general_strategy['metrics'], project_dir, previous_result,
|
|
96
|
+
general_strategy['metrics'], project_dir, previous_result, general_strategy.get('strategy', 'mean')),
|
|
97
|
+
results))
|
|
97
98
|
|
|
98
99
|
evaluation_df = pd.DataFrame({
|
|
99
100
|
'filename': filenames,
|
|
@@ -8,13 +8,16 @@ import logging
|
|
|
8
8
|
import os
|
|
9
9
|
import re
|
|
10
10
|
import string
|
|
11
|
-
import unicodedata
|
|
12
11
|
from copy import deepcopy
|
|
13
|
-
from typing import List, Callable, Dict, Optional, Any, Collection
|
|
12
|
+
from typing import List, Callable, Dict, Optional, Any, Collection, Iterable
|
|
14
13
|
|
|
14
|
+
import numpy as np
|
|
15
15
|
import pandas as pd
|
|
16
16
|
import tiktoken
|
|
17
|
+
import unicodedata
|
|
17
18
|
from llama_index.embeddings.openai import OpenAIEmbedding
|
|
19
|
+
from pydantic import BaseModel as BM
|
|
20
|
+
from pydantic.v1 import BaseModel
|
|
18
21
|
|
|
19
22
|
logger = logging.getLogger("AutoRAG")
|
|
20
23
|
|
|
@@ -454,3 +457,30 @@ def embedding_query_content(queries: List[str], contents_list: List[List[str]],
|
|
|
454
457
|
content_embeddings_flatten = embedding_model.get_text_embedding_batch(flatten_contents)
|
|
455
458
|
content_embeddings = reconstruct_list(content_embeddings_flatten, content_lengths)
|
|
456
459
|
return query_embeddings, content_embeddings
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
def to_list(item):
|
|
463
|
+
"""Recursively convert collections to Python lists."""
|
|
464
|
+
if isinstance(item, np.ndarray):
|
|
465
|
+
# Convert numpy array to list and recursively process each element
|
|
466
|
+
return [to_list(sub_item) for sub_item in item.tolist()]
|
|
467
|
+
elif isinstance(item, pd.Series):
|
|
468
|
+
# Convert pandas Series to list and recursively process each element
|
|
469
|
+
return [to_list(sub_item) for sub_item in item.tolist()]
|
|
470
|
+
elif isinstance(item, Iterable) and not isinstance(item, (str, bytes, BaseModel, BM)):
|
|
471
|
+
# Recursively process each element in other iterables
|
|
472
|
+
return [to_list(sub_item) for sub_item in item]
|
|
473
|
+
else:
|
|
474
|
+
return item
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
def convert_inputs_to_list(func):
|
|
478
|
+
"""Decorator to convert all function inputs to Python lists."""
|
|
479
|
+
|
|
480
|
+
@functools.wraps(func)
|
|
481
|
+
def wrapper(*args, **kwargs):
|
|
482
|
+
new_args = [to_list(arg) for arg in args]
|
|
483
|
+
new_kwargs = {k: to_list(v) for k, v in kwargs.items()}
|
|
484
|
+
return func(*new_args, **new_kwargs)
|
|
485
|
+
|
|
486
|
+
return wrapper
|
|
@@ -31,3 +31,55 @@ modules:
|
|
|
31
31
|
llm: openai
|
|
32
32
|
model: [ gpt-3.5-turbo-16k, gpt-3.5-turbo-1106 ]
|
|
33
33
|
```
|
|
34
|
+
|
|
35
|
+
## Default Prompt
|
|
36
|
+
|
|
37
|
+
When the question doesn't need decomposition, it must return "The question needs no decomposition".
|
|
38
|
+
Plus, each question will be allocated in `{question}`, so you have to write it in the prompt.
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
Decompose a question in self-contained sub-questions. Use \"The question needs no decomposition\" when no decomposition is needed.
|
|
42
|
+
|
|
43
|
+
Example 1:
|
|
44
|
+
|
|
45
|
+
Question: Is Hamlet more common on IMDB than Comedy of Errors?
|
|
46
|
+
Decompositions:
|
|
47
|
+
1: How many listings of Hamlet are there on IMDB?
|
|
48
|
+
2: How many listing of Comedy of Errors is there on IMDB?
|
|
49
|
+
|
|
50
|
+
Example 2:
|
|
51
|
+
|
|
52
|
+
Question: Are birds important to badminton?
|
|
53
|
+
|
|
54
|
+
Decompositions:
|
|
55
|
+
The question needs no decomposition
|
|
56
|
+
|
|
57
|
+
Example 3:
|
|
58
|
+
|
|
59
|
+
Question: Is it legal for a licensed child driving Mercedes-Benz to be employed in US?
|
|
60
|
+
|
|
61
|
+
Decompositions:
|
|
62
|
+
1: What is the minimum driving age in the US?
|
|
63
|
+
2: What is the minimum age for someone to be employed in the US?
|
|
64
|
+
|
|
65
|
+
Example 4:
|
|
66
|
+
|
|
67
|
+
Question: Are all cucumbers the same texture?
|
|
68
|
+
|
|
69
|
+
Decompositions:
|
|
70
|
+
The question needs no decomposition
|
|
71
|
+
|
|
72
|
+
Example 5:
|
|
73
|
+
|
|
74
|
+
Question: Hydrogen's atomic number squared exceeds number of Spice Girls?
|
|
75
|
+
|
|
76
|
+
Decompositions:
|
|
77
|
+
1: What is the atomic number of hydrogen?
|
|
78
|
+
2: How many Spice Girls are there?
|
|
79
|
+
|
|
80
|
+
Example 6:
|
|
81
|
+
|
|
82
|
+
Question: {question}
|
|
83
|
+
|
|
84
|
+
Decompositions:
|
|
85
|
+
```
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import numpy as np
|
|
1
2
|
import pytest
|
|
2
3
|
|
|
3
4
|
from autorag.evaluation.metric import (retrieval_f1, retrieval_precision, retrieval_recall, retrieval_ndcg,
|
|
@@ -34,6 +35,15 @@ def test_retrieval_f1():
|
|
|
34
35
|
assert gt == pytest.approx(res, rel=1e-4)
|
|
35
36
|
|
|
36
37
|
|
|
38
|
+
def test_numpy_retrieval_metric():
|
|
39
|
+
retrieval_gt_np = [[np.array(['test-1', 'test-4'])], np.array([['test-2']])]
|
|
40
|
+
pred_np = np.array([['test-2', 'test-3', 'test-1'], ['test-5', 'test-6', 'test-8']])
|
|
41
|
+
solution = [1.0, 0.0]
|
|
42
|
+
result = retrieval_recall(retrieval_gt=retrieval_gt_np, pred_ids=pred_np)
|
|
43
|
+
for gt, res in zip(solution, result):
|
|
44
|
+
assert gt == pytest.approx(res, rel=1e-4)
|
|
45
|
+
|
|
46
|
+
|
|
37
47
|
def test_retrieval_recall():
|
|
38
48
|
solution = [0.5, 1 / 3, 1, 2 / 3, 1, None, None, 1]
|
|
39
49
|
result = retrieval_recall(retrieval_gt=retrieval_gt, pred_ids=pred)
|
{autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passageaugmenter/test_run_passage_augmenter.py
RENAMED
|
@@ -29,6 +29,7 @@ def test_run_passage_augmenter_node(node_line_dir):
|
|
|
29
29
|
module_params = [{'top_k': 2, 'num_passages': 1}]
|
|
30
30
|
strategies = {
|
|
31
31
|
'metrics': ['retrieval_f1', 'retrieval_recall'],
|
|
32
|
+
'strategy': 'rank',
|
|
32
33
|
}
|
|
33
34
|
best_result = run_passage_augmenter_node(modules, module_params, previous_result, node_line_dir, strategies)
|
|
34
35
|
assert os.path.exists(os.path.join(node_line_dir, "passage_augmenter"))
|
|
@@ -82,6 +82,7 @@ def test_run_passage_compressor_node(node_line_dir):
|
|
|
82
82
|
{'llm': 'mock', 'model': 'gpt-3.5-turbo'}]
|
|
83
83
|
strategies = {
|
|
84
84
|
'metrics': ['retrieval_token_f1', 'retrieval_token_precision'],
|
|
85
|
+
'strategy': 'normalize_mean',
|
|
85
86
|
'speed_threshold': 5,
|
|
86
87
|
}
|
|
87
88
|
best_result = run_passage_compressor_node(modules, module_params, previous_result, node_line_dir, strategies)
|
{autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagefilter/test_passage_filter_run.py
RENAMED
|
@@ -29,6 +29,7 @@ def test_run_passage_filter_node(node_line_dir):
|
|
|
29
29
|
module_params = [{'threshold': 0.87}]
|
|
30
30
|
strategies = {
|
|
31
31
|
'metrics': ['retrieval_f1', 'retrieval_recall'],
|
|
32
|
+
'strategy': 'rank',
|
|
32
33
|
}
|
|
33
34
|
best_result = run_passage_filter_node(modules, module_params, previous_result, node_line_dir, strategies)
|
|
34
35
|
assert os.path.exists(os.path.join(node_line_dir, "passage_filter"))
|
{autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/passagereranker/test_passage_reranker_run.py
RENAMED
|
@@ -82,6 +82,7 @@ def test_run_passage_reranker_node(node_line_dir):
|
|
|
82
82
|
module_params = [{'top_k': 4, 'model_name': 'castorini_monot5-3b-msmarco-10k'}]
|
|
83
83
|
strategies = {
|
|
84
84
|
'metrics': ['retrieval_f1', 'retrieval_recall'],
|
|
85
|
+
'strategy': 'rank',
|
|
85
86
|
}
|
|
86
87
|
best_result = run_passage_reranker_node(modules, module_params, previous_result, node_line_dir, strategies)
|
|
87
88
|
assert os.path.exists(os.path.join(node_line_dir, "passage_reranker"))
|
{autorag-0.2.7 → autorag-0.2.8}/tests/autorag/nodes/queryexpansion/test_query_expansion_run.py
RENAMED
|
@@ -100,6 +100,7 @@ def test_run_query_expansion_node(node_line_dir):
|
|
|
100
100
|
'metrics': metrics,
|
|
101
101
|
'speed_threshold': 5,
|
|
102
102
|
'top_k': 4,
|
|
103
|
+
'strategy': 'rank',
|
|
103
104
|
'retrieval_modules': [{'module_type': 'bm25', 'bm25_tokenizer': 'gpt2'}],
|
|
104
105
|
}
|
|
105
106
|
best_result = run_query_expansion_node(modules, module_params, previous_result, node_line_dir, strategies)
|
|
@@ -52,6 +52,7 @@ def test_run_retrieval_node(node_line_dir):
|
|
|
52
52
|
qa_path = os.path.join(project_dir, "data", "qa.parquet")
|
|
53
53
|
strategies = {
|
|
54
54
|
'metrics': ['retrieval_f1', 'retrieval_recall'],
|
|
55
|
+
'strategy': 'normalize_mean',
|
|
55
56
|
'speed_threshold': 5,
|
|
56
57
|
}
|
|
57
58
|
previous_result = pd.read_parquet(qa_path)
|
|
@@ -5,16 +5,20 @@ import pathlib
|
|
|
5
5
|
import tempfile
|
|
6
6
|
from datetime import datetime, date
|
|
7
7
|
|
|
8
|
+
import numpy as np
|
|
8
9
|
import pandas as pd
|
|
9
10
|
import pytest
|
|
10
11
|
import tiktoken
|
|
12
|
+
from llama_index.core.base.embeddings.base import BaseEmbedding
|
|
11
13
|
from llama_index.core.llms import CompletionResponse
|
|
14
|
+
from llama_index.embeddings.openai import OpenAIEmbedding
|
|
12
15
|
|
|
13
16
|
from autorag.utils import fetch_contents
|
|
14
17
|
from autorag.utils.util import load_summary_file, result_to_dataframe, \
|
|
15
18
|
make_combinations, explode, replace_value_in_dict, normalize_string, convert_string_to_tuple_in_dict, process_batch, \
|
|
16
19
|
convert_env_in_dict, openai_truncate_by_token, convert_datetime_string, split_dataframe, find_trial_dir, \
|
|
17
|
-
find_node_summary_files, normalize_unicode, dict_to_markdown, dict_to_markdown_table
|
|
20
|
+
find_node_summary_files, normalize_unicode, dict_to_markdown, dict_to_markdown_table, convert_inputs_to_list, \
|
|
21
|
+
to_list
|
|
18
22
|
from tests.mock import MockLLM
|
|
19
23
|
|
|
20
24
|
root_dir = pathlib.PurePath(os.path.dirname(os.path.realpath(__file__))).parent.parent
|
|
@@ -407,3 +411,23 @@ def test_dict_to_markdown_table():
|
|
|
407
411
|
| key2 | value2 |
|
|
408
412
|
"""
|
|
409
413
|
assert result == result_text
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
@convert_inputs_to_list
|
|
417
|
+
def convert_inputs_to_list_function(int_type, str_type, iterable_type, iterable_type2):
|
|
418
|
+
assert isinstance(int_type, int)
|
|
419
|
+
assert isinstance(str_type, str)
|
|
420
|
+
assert isinstance(iterable_type, list)
|
|
421
|
+
assert isinstance(iterable_type2, list)
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
def test_convert_inputs_to_list():
|
|
425
|
+
convert_inputs_to_list_function(1, 'jax', (2, 3), (5, 6, [4, 66]))
|
|
426
|
+
convert_inputs_to_list_function(1, 'jax', np.array([3, 4]), [pd.Series([12, 13]), 14])
|
|
427
|
+
convert_inputs_to_list_function(4, 'jax', pd.Series([7, 8, 9]), np.array([[3, 4], [4, 5]]))
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
def test_to_list():
|
|
431
|
+
embedding_model = OpenAIEmbedding()
|
|
432
|
+
new_model = to_list(embedding_model)
|
|
433
|
+
assert isinstance(new_model, BaseEmbedding)
|
autorag-0.2.7/autorag/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.2.7
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|