AutoRAG 0.2.13__tar.gz → 0.2.15__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.15/.github/ISSUE_TEMPLATE/bug_report.md +35 -0
- autorag-0.2.15/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- autorag-0.2.15/.pre-commit-config.yaml +14 -0
- {autorag-0.2.13 → autorag-0.2.15}/AutoRAG.egg-info/PKG-INFO +11 -6
- {autorag-0.2.13 → autorag-0.2.15}/AutoRAG.egg-info/SOURCES.txt +4 -0
- {autorag-0.2.13 → autorag-0.2.15}/AutoRAG.egg-info/requires.txt +11 -5
- autorag-0.2.15/CONTRIBUTING.md +106 -0
- {autorag-0.2.13 → autorag-0.2.15}/PKG-INFO +11 -6
- autorag-0.2.15/autorag/VERSION +1 -0
- autorag-0.2.15/autorag/__init__.py +88 -0
- autorag-0.2.15/autorag/cli.py +178 -0
- autorag-0.2.15/autorag/dashboard.py +199 -0
- autorag-0.2.15/autorag/data/corpus/langchain.py +47 -0
- autorag-0.2.15/autorag/data/corpus/llama_index.py +109 -0
- autorag-0.2.15/autorag/data/qacreation/__init__.py +6 -0
- autorag-0.2.15/autorag/data/qacreation/base.py +226 -0
- autorag-0.2.15/autorag/data/qacreation/llama_index.py +253 -0
- autorag-0.2.15/autorag/data/qacreation/ragas.py +74 -0
- autorag-0.2.15/autorag/data/qacreation/simple.py +98 -0
- autorag-0.2.15/autorag/data/utils/util.py +49 -0
- autorag-0.2.15/autorag/deploy.py +276 -0
- autorag-0.2.15/autorag/evaluation/generation.py +74 -0
- autorag-0.2.15/autorag/evaluation/metric/__init__.py +14 -0
- autorag-0.2.15/autorag/evaluation/metric/generation.py +418 -0
- autorag-0.2.15/autorag/evaluation/metric/retrieval.py +126 -0
- autorag-0.2.15/autorag/evaluation/metric/retrieval_contents.py +73 -0
- autorag-0.2.15/autorag/evaluation/metric/util.py +9 -0
- autorag-0.2.15/autorag/evaluation/retrieval.py +100 -0
- autorag-0.2.15/autorag/evaluation/retrieval_contents.py +63 -0
- autorag-0.2.15/autorag/evaluation/util.py +43 -0
- autorag-0.2.15/autorag/evaluator.py +519 -0
- autorag-0.2.15/autorag/node_line.py +64 -0
- autorag-0.2.15/autorag/nodes/generator/base.py +51 -0
- autorag-0.2.15/autorag/nodes/generator/llama_index_llm.py +37 -0
- autorag-0.2.15/autorag/nodes/generator/openai_llm.py +137 -0
- autorag-0.2.15/autorag/nodes/generator/run.py +133 -0
- autorag-0.2.15/autorag/nodes/generator/vllm.py +88 -0
- autorag-0.2.15/autorag/nodes/passageaugmenter/base.py +124 -0
- autorag-0.2.15/autorag/nodes/passageaugmenter/pass_passage_augmenter.py +17 -0
- autorag-0.2.15/autorag/nodes/passageaugmenter/prev_next_augmenter.py +66 -0
- autorag-0.2.15/autorag/nodes/passageaugmenter/run.py +129 -0
- autorag-0.2.15/autorag/nodes/passagecompressor/base.py +89 -0
- autorag-0.2.15/autorag/nodes/passagecompressor/longllmlingua.py +93 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/nodes/passagecompressor/pass_compressor.py +2 -2
- autorag-0.2.15/autorag/nodes/passagecompressor/refine.py +62 -0
- autorag-0.2.15/autorag/nodes/passagecompressor/run.py +181 -0
- autorag-0.2.15/autorag/nodes/passagecompressor/tree_summarize.py +64 -0
- autorag-0.2.15/autorag/nodes/passagefilter/base.py +77 -0
- autorag-0.2.15/autorag/nodes/passagefilter/pass_passage_filter.py +17 -0
- autorag-0.2.15/autorag/nodes/passagefilter/percentile_cutoff.py +52 -0
- autorag-0.2.15/autorag/nodes/passagefilter/recency.py +75 -0
- autorag-0.2.15/autorag/nodes/passagefilter/run.py +136 -0
- autorag-0.2.15/autorag/nodes/passagefilter/similarity_percentile_cutoff.py +120 -0
- autorag-0.2.15/autorag/nodes/passagefilter/similarity_threshold_cutoff.py +96 -0
- autorag-0.2.15/autorag/nodes/passagefilter/threshold_cutoff.py +73 -0
- autorag-0.2.15/autorag/nodes/passagereranker/base.py +77 -0
- autorag-0.2.15/autorag/nodes/passagereranker/cohere.py +97 -0
- autorag-0.2.15/autorag/nodes/passagereranker/colbert.py +162 -0
- autorag-0.2.15/autorag/nodes/passagereranker/flag_embedding.py +81 -0
- autorag-0.2.15/autorag/nodes/passagereranker/flag_embedding_llm.py +68 -0
- autorag-0.2.15/autorag/nodes/passagereranker/jina.py +99 -0
- autorag-0.2.15/autorag/nodes/passagereranker/koreranker.py +112 -0
- autorag-0.2.15/autorag/nodes/passagereranker/monot5.py +148 -0
- autorag-0.2.15/autorag/nodes/passagereranker/pass_reranker.py +21 -0
- autorag-0.2.15/autorag/nodes/passagereranker/rankgpt.py +125 -0
- autorag-0.2.15/autorag/nodes/passagereranker/run.py +143 -0
- autorag-0.2.15/autorag/nodes/passagereranker/sentence_transformer.py +80 -0
- autorag-0.2.15/autorag/nodes/passagereranker/tart/modeling_enc_t5.py +140 -0
- autorag-0.2.15/autorag/nodes/passagereranker/tart/tart.py +114 -0
- autorag-0.2.15/autorag/nodes/passagereranker/tart/tokenization_enc_t5.py +112 -0
- autorag-0.2.15/autorag/nodes/passagereranker/time_reranker.py +50 -0
- autorag-0.2.15/autorag/nodes/passagereranker/upr.py +125 -0
- autorag-0.2.15/autorag/nodes/promptmaker/base.py +57 -0
- autorag-0.2.15/autorag/nodes/promptmaker/fstring.py +34 -0
- autorag-0.2.15/autorag/nodes/promptmaker/long_context_reorder.py +67 -0
- autorag-0.2.15/autorag/nodes/promptmaker/run.py +275 -0
- autorag-0.2.15/autorag/nodes/promptmaker/window_replacement.py +57 -0
- autorag-0.2.15/autorag/nodes/queryexpansion/base.py +70 -0
- autorag-0.2.15/autorag/nodes/queryexpansion/hyde.py +40 -0
- autorag-0.2.15/autorag/nodes/queryexpansion/multi_query_expansion.py +58 -0
- autorag-0.2.15/autorag/nodes/queryexpansion/pass_query_expansion.py +13 -0
- autorag-0.2.15/autorag/nodes/queryexpansion/query_decompose.py +106 -0
- autorag-0.2.15/autorag/nodes/queryexpansion/run.py +262 -0
- autorag-0.2.15/autorag/nodes/retrieval/base.py +190 -0
- autorag-0.2.15/autorag/nodes/retrieval/bm25.py +293 -0
- autorag-0.2.15/autorag/nodes/retrieval/hybrid_cc.py +153 -0
- autorag-0.2.15/autorag/nodes/retrieval/hybrid_rrf.py +84 -0
- autorag-0.2.15/autorag/nodes/retrieval/run.py +547 -0
- autorag-0.2.15/autorag/nodes/retrieval/vectordb.py +220 -0
- autorag-0.2.15/autorag/schema/module.py +24 -0
- autorag-0.2.15/autorag/schema/node.py +126 -0
- autorag-0.2.15/autorag/strategy.py +165 -0
- autorag-0.2.15/autorag/support.py +121 -0
- autorag-0.2.15/autorag/utils/__init__.py +8 -0
- autorag-0.2.15/autorag/utils/preprocess.py +149 -0
- autorag-0.2.15/autorag/utils/util.py +572 -0
- autorag-0.2.15/autorag/validator.py +82 -0
- autorag-0.2.15/autorag/web.py +84 -0
- autorag-0.2.15/docs/source/_static/web_interface_gradio.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/conf.py +24 -24
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/data_creation/data_format.md +17 -15
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/data_creation/ragas.md +7 -7
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/data_creation/tutorial.md +105 -6
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/deploy/api_endpoint.md +3 -3
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/deploy/web.md +25 -3
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/evaluate_metrics/generation.md +8 -8
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/evaluate_metrics/retrieval.md +8 -8
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/evaluate_metrics/retrieval_contents.md +4 -4
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/install.md +11 -11
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/local_model.md +6 -5
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/generator/generator.md +4 -5
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/generator/openai_llm.md +3 -3
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_augmenter/passage_augmenter.md +3 -3
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_augmenter/prev_next_augmenter.md +3 -3
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_compressor/passage_compressor.md +4 -3
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_compressor/refine.md +2 -2
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_filter/recency_filter.md +3 -3
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_filter/similarity_percentile_cutoff.md +4 -4
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_filter/similarity_threshold_cutoff.md +3 -3
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_filter/threshold_cutoff.md +2 -4
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_reranker/cohere.md +8 -6
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_reranker/colbert.md +2 -2
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_reranker/flag_embedding_llm_reranker.md +3 -3
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_reranker/flag_embedding_reranker.md +5 -5
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_reranker/jina_reranker.md +3 -3
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_reranker/koreranker.md +2 -2
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_reranker/monot5.md +2 -2
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_reranker/passage_reranker.md +4 -2
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_reranker/rankgpt.md +3 -4
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_reranker/sentence_transformer_reranker.md +4 -4
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_reranker/tart.md +3 -3
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/prompt_maker/fstring.md +2 -2
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/prompt_maker/prompt_maker.md +8 -8
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/prompt_maker/window_replacement.md +1 -2
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/query_expansion/hyde.md +3 -3
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/query_expansion/multi_query_expansion.md +1 -1
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/query_expansion/query_decompose.md +4 -4
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/query_expansion/query_expansion.md +7 -6
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/retrieval/bm25.md +11 -10
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/retrieval/hybrid_cc.md +6 -6
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/retrieval/hybrid_rrf.md +6 -3
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/retrieval/retrieval.md +3 -3
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/retrieval/vectordb.md +5 -5
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/optimization/custom_config.md +16 -16
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/optimization/folder_structure.md +31 -31
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/optimization/optimization.md +20 -20
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/optimization/strategies.md +1 -1
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/roadmap/modular_rag.md +39 -39
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/structure.md +5 -5
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/troubleshooting.md +16 -16
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/tutorial.md +27 -21
- autorag-0.2.15/pyproject.toml +138 -0
- {autorag-0.2.13 → autorag-0.2.15}/requirements.txt +7 -6
- autorag-0.2.15/sample_dataset/eli5/load_eli5_dataset.py +35 -0
- autorag-0.2.15/sample_dataset/hotpotqa/load_hotpotqa_dataset.py +35 -0
- autorag-0.2.15/sample_dataset/msmarco/load_msmarco_dataset.py +37 -0
- autorag-0.2.15/sample_dataset/triviaqa/load_triviaqa_dataset.py +37 -0
- autorag-0.2.15/tests/autorag/data/corpus/test_base.py +21 -0
- autorag-0.2.15/tests/autorag/data/corpus/test_langchain.py +21 -0
- autorag-0.2.15/tests/autorag/data/corpus/test_llama_index_corpus.py +40 -0
- autorag-0.2.15/tests/autorag/data/qacreation/test_base_qacreation.py +214 -0
- autorag-0.2.15/tests/autorag/data/qacreation/test_llama_index_qacreation.py +111 -0
- autorag-0.2.15/tests/autorag/data/qacreation/test_ragas_qa_creation.py +29 -0
- autorag-0.2.15/tests/autorag/data/qacreation/test_simple.py +60 -0
- autorag-0.2.15/tests/autorag/evaluate/metric/test_generation_metric.py +104 -0
- autorag-0.2.15/tests/autorag/evaluate/metric/test_retrieval_contents_metric.py +60 -0
- autorag-0.2.15/tests/autorag/evaluate/metric/test_retrieval_metric.py +98 -0
- autorag-0.2.15/tests/autorag/evaluate/test_evaluate_util.py +41 -0
- autorag-0.2.15/tests/autorag/evaluate/test_generation_evaluate.py +161 -0
- autorag-0.2.15/tests/autorag/evaluate/test_retrieval_contents_evaluate.py +58 -0
- autorag-0.2.15/tests/autorag/evaluate/test_retrieval_evaluate.py +103 -0
- autorag-0.2.15/tests/autorag/nodes/generator/test_generator_base.py +23 -0
- autorag-0.2.15/tests/autorag/nodes/generator/test_llama_index_llm.py +41 -0
- autorag-0.2.15/tests/autorag/nodes/generator/test_openai.py +64 -0
- autorag-0.2.15/tests/autorag/nodes/generator/test_run_generator_node.py +121 -0
- autorag-0.2.15/tests/autorag/nodes/generator/test_vllm.py +30 -0
- autorag-0.2.15/tests/autorag/nodes/passageaugmenter/test_base_passage_augmenter.py +38 -0
- autorag-0.2.15/tests/autorag/nodes/passageaugmenter/test_pass_passage_augmenter.py +33 -0
- autorag-0.2.15/tests/autorag/nodes/passageaugmenter/test_prev_next_augmenter.py +84 -0
- autorag-0.2.15/tests/autorag/nodes/passageaugmenter/test_run_passage_augmenter.py +86 -0
- autorag-0.2.15/tests/autorag/nodes/passagecompressor/test_base_passage_compressor.py +37 -0
- autorag-0.2.15/tests/autorag/nodes/passagecompressor/test_longllmlingua.py +33 -0
- autorag-0.2.15/tests/autorag/nodes/passagecompressor/test_pass_compressor.py +33 -0
- autorag-0.2.15/tests/autorag/nodes/passagecompressor/test_refine.py +60 -0
- autorag-0.2.15/tests/autorag/nodes/passagecompressor/test_run_passage_compressor_node.py +157 -0
- autorag-0.2.15/tests/autorag/nodes/passagecompressor/test_tree_summarize.py +62 -0
- autorag-0.2.15/tests/autorag/nodes/passagefilter/test_pass_passage_filter.py +28 -0
- autorag-0.2.15/tests/autorag/nodes/passagefilter/test_passage_filter_base.py +118 -0
- autorag-0.2.15/tests/autorag/nodes/passagefilter/test_passage_filter_run.py +87 -0
- autorag-0.2.15/tests/autorag/nodes/passagefilter/test_percentile_cutoff.py +46 -0
- autorag-0.2.15/tests/autorag/nodes/passagefilter/test_recency_filter.py +134 -0
- autorag-0.2.15/tests/autorag/nodes/passagefilter/test_similarity_percentile_cutoff.py +34 -0
- autorag-0.2.15/tests/autorag/nodes/passagefilter/test_similarity_threshold_cutoff.py +32 -0
- autorag-0.2.15/tests/autorag/nodes/passagefilter/test_threshold_cutoff.py +57 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_cohere_reranker.py +77 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_colbert_reranker.py +102 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_flag_embedding.py +55 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_flag_embedding_llm.py +72 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_jina_reranker.py +108 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_koreranker.py +49 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_monot5.py +49 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_pass_reranker.py +23 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_passage_reranker_base.py +117 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_passage_reranker_run.py +157 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_rankgpt.py +85 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_sentence_transformer.py +44 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_tart.py +49 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_time_reranker.py +38 -0
- autorag-0.2.15/tests/autorag/nodes/passagereranker/test_upr.py +35 -0
- autorag-0.2.15/tests/autorag/nodes/promptmaker/test_fstring.py +38 -0
- autorag-0.2.15/tests/autorag/nodes/promptmaker/test_long_context_reorder.py +41 -0
- autorag-0.2.15/tests/autorag/nodes/promptmaker/test_prompt_maker_base.py +48 -0
- autorag-0.2.15/tests/autorag/nodes/promptmaker/test_prompt_maker_run.py +279 -0
- autorag-0.2.15/tests/autorag/nodes/promptmaker/test_window_replacement.py +56 -0
- autorag-0.2.15/tests/autorag/nodes/queryexpansion/test_hyde.py +27 -0
- autorag-0.2.15/tests/autorag/nodes/queryexpansion/test_multi_query_expansion.py +33 -0
- autorag-0.2.15/tests/autorag/nodes/queryexpansion/test_pass_query_expansion.py +16 -0
- autorag-0.2.15/tests/autorag/nodes/queryexpansion/test_query_decompose.py +33 -0
- autorag-0.2.15/tests/autorag/nodes/queryexpansion/test_query_expansion_base.py +50 -0
- autorag-0.2.15/tests/autorag/nodes/queryexpansion/test_query_expansion_run.py +238 -0
- autorag-0.2.15/tests/autorag/nodes/retrieval/test_bm25.py +208 -0
- autorag-0.2.15/tests/autorag/nodes/retrieval/test_hybrid_base.py +158 -0
- autorag-0.2.15/tests/autorag/nodes/retrieval/test_hybrid_cc.py +71 -0
- autorag-0.2.15/tests/autorag/nodes/retrieval/test_hybrid_rrf.py +93 -0
- autorag-0.2.15/tests/autorag/nodes/retrieval/test_retrieval_base.py +90 -0
- autorag-0.2.15/tests/autorag/nodes/retrieval/test_run_retrieval_node.py +290 -0
- autorag-0.2.15/tests/autorag/nodes/retrieval/test_vectordb.py +216 -0
- autorag-0.2.15/tests/autorag/schema/test_module_schema.py +40 -0
- autorag-0.2.15/tests/autorag/schema/test_node_schema.py +171 -0
- autorag-0.2.15/tests/autorag/test_cli.py +120 -0
- autorag-0.2.15/tests/autorag/test_dashboard.py +43 -0
- autorag-0.2.15/tests/autorag/test_deploy.py +218 -0
- autorag-0.2.15/tests/autorag/test_evaluator.py +435 -0
- autorag-0.2.15/tests/autorag/test_strategy.py +109 -0
- autorag-0.2.15/tests/autorag/test_support.py +11 -0
- autorag-0.2.15/tests/autorag/test_validator.py +16 -0
- autorag-0.2.15/tests/autorag/test_web.py +47 -0
- autorag-0.2.15/tests/autorag/utils/test_preprocess.py +121 -0
- autorag-0.2.15/tests/autorag/utils/test_util.py +498 -0
- autorag-0.2.15/tests/conftest.py +7 -0
- autorag-0.2.15/tests/delete_tests.py +33 -0
- autorag-0.2.15/tests/mock.py +129 -0
- autorag-0.2.13/CONTRIBUTING.md +0 -134
- autorag-0.2.13/autorag/VERSION +0 -1
- autorag-0.2.13/autorag/__init__.py +0 -81
- autorag-0.2.13/autorag/cli.py +0 -122
- autorag-0.2.13/autorag/dashboard.py +0 -152
- autorag-0.2.13/autorag/data/corpus/langchain.py +0 -38
- autorag-0.2.13/autorag/data/corpus/llama_index.py +0 -89
- autorag-0.2.13/autorag/data/qacreation/__init__.py +0 -2
- autorag-0.2.13/autorag/data/qacreation/base.py +0 -79
- autorag-0.2.13/autorag/data/qacreation/llama_index.py +0 -196
- autorag-0.2.13/autorag/data/qacreation/ragas.py +0 -70
- autorag-0.2.13/autorag/data/qacreation/simple.py +0 -89
- autorag-0.2.13/autorag/data/utils/util.py +0 -45
- autorag-0.2.13/autorag/deploy.py +0 -231
- autorag-0.2.13/autorag/evaluation/generation.py +0 -54
- autorag-0.2.13/autorag/evaluation/metric/__init__.py +0 -3
- autorag-0.2.13/autorag/evaluation/metric/generation.py +0 -329
- autorag-0.2.13/autorag/evaluation/metric/retrieval.py +0 -110
- autorag-0.2.13/autorag/evaluation/metric/retrieval_contents.py +0 -64
- autorag-0.2.13/autorag/evaluation/metric/util.py +0 -9
- autorag-0.2.13/autorag/evaluation/retrieval.py +0 -68
- autorag-0.2.13/autorag/evaluation/retrieval_contents.py +0 -50
- autorag-0.2.13/autorag/evaluation/util.py +0 -33
- autorag-0.2.13/autorag/evaluator.py +0 -357
- autorag-0.2.13/autorag/node_line.py +0 -56
- autorag-0.2.13/autorag/nodes/generator/base.py +0 -49
- autorag-0.2.13/autorag/nodes/generator/llama_index_llm.py +0 -36
- autorag-0.2.13/autorag/nodes/generator/openai_llm.py +0 -119
- autorag-0.2.13/autorag/nodes/generator/run.py +0 -95
- autorag-0.2.13/autorag/nodes/generator/vllm.py +0 -76
- autorag-0.2.13/autorag/nodes/passageaugmenter/base.py +0 -88
- autorag-0.2.13/autorag/nodes/passageaugmenter/pass_passage_augmenter.py +0 -15
- autorag-0.2.13/autorag/nodes/passageaugmenter/prev_next_augmenter.py +0 -57
- autorag-0.2.13/autorag/nodes/passageaugmenter/run.py +0 -75
- autorag-0.2.13/autorag/nodes/passagecompressor/base.py +0 -72
- autorag-0.2.13/autorag/nodes/passagecompressor/longllmlingua.py +0 -87
- autorag-0.2.13/autorag/nodes/passagecompressor/refine.py +0 -61
- autorag-0.2.13/autorag/nodes/passagecompressor/run.py +0 -121
- autorag-0.2.13/autorag/nodes/passagecompressor/tree_summarize.py +0 -61
- autorag-0.2.13/autorag/nodes/passagefilter/base.py +0 -53
- autorag-0.2.13/autorag/nodes/passagefilter/pass_passage_filter.py +0 -13
- autorag-0.2.13/autorag/nodes/passagefilter/percentile_cutoff.py +0 -40
- autorag-0.2.13/autorag/nodes/passagefilter/recency.py +0 -54
- autorag-0.2.13/autorag/nodes/passagefilter/run.py +0 -83
- autorag-0.2.13/autorag/nodes/passagefilter/similarity_percentile_cutoff.py +0 -88
- autorag-0.2.13/autorag/nodes/passagefilter/similarity_threshold_cutoff.py +0 -74
- autorag-0.2.13/autorag/nodes/passagefilter/threshold_cutoff.py +0 -64
- autorag-0.2.13/autorag/nodes/passagereranker/base.py +0 -53
- autorag-0.2.13/autorag/nodes/passagereranker/cohere.py +0 -79
- autorag-0.2.13/autorag/nodes/passagereranker/colbert.py +0 -120
- autorag-0.2.13/autorag/nodes/passagereranker/flag_embedding.py +0 -65
- autorag-0.2.13/autorag/nodes/passagereranker/flag_embedding_llm.py +0 -52
- autorag-0.2.13/autorag/nodes/passagereranker/jina.py +0 -82
- autorag-0.2.13/autorag/nodes/passagereranker/koreranker.py +0 -76
- autorag-0.2.13/autorag/nodes/passagereranker/monot5.py +0 -112
- autorag-0.2.13/autorag/nodes/passagereranker/pass_reranker.py +0 -17
- autorag-0.2.13/autorag/nodes/passagereranker/rankgpt.py +0 -103
- autorag-0.2.13/autorag/nodes/passagereranker/run.py +0 -89
- autorag-0.2.13/autorag/nodes/passagereranker/sentence_transformer.py +0 -62
- autorag-0.2.13/autorag/nodes/passagereranker/tart/modeling_enc_t5.py +0 -136
- autorag-0.2.13/autorag/nodes/passagereranker/tart/tart.py +0 -79
- autorag-0.2.13/autorag/nodes/passagereranker/tart/tokenization_enc_t5.py +0 -102
- autorag-0.2.13/autorag/nodes/passagereranker/time_reranker.py +0 -34
- autorag-0.2.13/autorag/nodes/passagereranker/upr.py +0 -99
- autorag-0.2.13/autorag/nodes/promptmaker/base.py +0 -46
- autorag-0.2.13/autorag/nodes/promptmaker/fstring.py +0 -30
- autorag-0.2.13/autorag/nodes/promptmaker/long_context_reorder.py +0 -53
- autorag-0.2.13/autorag/nodes/promptmaker/run.py +0 -189
- autorag-0.2.13/autorag/nodes/promptmaker/window_replacement.py +0 -46
- autorag-0.2.13/autorag/nodes/queryexpansion/base.py +0 -63
- autorag-0.2.13/autorag/nodes/queryexpansion/hyde.py +0 -31
- autorag-0.2.13/autorag/nodes/queryexpansion/multi_query_expansion.py +0 -52
- autorag-0.2.13/autorag/nodes/queryexpansion/pass_query_expansion.py +0 -13
- autorag-0.2.13/autorag/nodes/queryexpansion/query_decompose.py +0 -100
- autorag-0.2.13/autorag/nodes/queryexpansion/run.py +0 -173
- autorag-0.2.13/autorag/nodes/retrieval/base.py +0 -149
- autorag-0.2.13/autorag/nodes/retrieval/bm25.py +0 -249
- autorag-0.2.13/autorag/nodes/retrieval/hybrid_cc.py +0 -137
- autorag-0.2.13/autorag/nodes/retrieval/hybrid_rrf.py +0 -78
- autorag-0.2.13/autorag/nodes/retrieval/run.py +0 -338
- autorag-0.2.13/autorag/nodes/retrieval/vectordb.py +0 -152
- autorag-0.2.13/autorag/schema/module.py +0 -24
- autorag-0.2.13/autorag/schema/node.py +0 -111
- autorag-0.2.13/autorag/strategy.py +0 -142
- autorag-0.2.13/autorag/support.py +0 -79
- autorag-0.2.13/autorag/utils/__init__.py +0 -3
- autorag-0.2.13/autorag/utils/preprocess.py +0 -121
- autorag-0.2.13/autorag/utils/util.py +0 -502
- autorag-0.2.13/autorag/validator.py +0 -66
- autorag-0.2.13/autorag/web.py +0 -81
- autorag-0.2.13/pyproject.toml +0 -52
- autorag-0.2.13/sample_dataset/eli5/load_eli5_dataset.py +0 -30
- autorag-0.2.13/sample_dataset/hotpotqa/load_hotpotqa_dataset.py +0 -28
- autorag-0.2.13/sample_dataset/msmarco/load_msmarco_dataset.py +0 -30
- autorag-0.2.13/sample_dataset/triviaqa/load_triviaqa_dataset.py +0 -30
- autorag-0.2.13/tests/autorag/data/corpus/test_base.py +0 -16
- autorag-0.2.13/tests/autorag/data/corpus/test_langchain.py +0 -19
- autorag-0.2.13/tests/autorag/data/corpus/test_llama_index_corpus.py +0 -31
- autorag-0.2.13/tests/autorag/data/qacreation/test_base_qacreation.py +0 -81
- autorag-0.2.13/tests/autorag/data/qacreation/test_llama_index_qacreation.py +0 -78
- autorag-0.2.13/tests/autorag/data/qacreation/test_ragas_qa_creation.py +0 -24
- autorag-0.2.13/tests/autorag/data/qacreation/test_simple.py +0 -56
- autorag-0.2.13/tests/autorag/evaluate/metric/test_generation_metric.py +0 -89
- autorag-0.2.13/tests/autorag/evaluate/metric/test_retrieval_contents_metric.py +0 -50
- autorag-0.2.13/tests/autorag/evaluate/metric/test_retrieval_metric.py +0 -79
- autorag-0.2.13/tests/autorag/evaluate/test_evaluate_util.py +0 -26
- autorag-0.2.13/tests/autorag/evaluate/test_generation_evaluate.py +0 -104
- autorag-0.2.13/tests/autorag/evaluate/test_retrieval_contents_evaluate.py +0 -35
- autorag-0.2.13/tests/autorag/evaluate/test_retrieval_evaluate.py +0 -82
- autorag-0.2.13/tests/autorag/nodes/generator/test_generator_base.py +0 -23
- autorag-0.2.13/tests/autorag/nodes/generator/test_llama_index_llm.py +0 -31
- autorag-0.2.13/tests/autorag/nodes/generator/test_openai.py +0 -43
- autorag-0.2.13/tests/autorag/nodes/generator/test_run_generator_node.py +0 -78
- autorag-0.2.13/tests/autorag/nodes/generator/test_vllm.py +0 -25
- autorag-0.2.13/tests/autorag/nodes/passageaugmenter/test_base_passage_augmenter.py +0 -24
- autorag-0.2.13/tests/autorag/nodes/passageaugmenter/test_pass_passage_augmenter.py +0 -12
- autorag-0.2.13/tests/autorag/nodes/passageaugmenter/test_prev_next_augmenter.py +0 -50
- autorag-0.2.13/tests/autorag/nodes/passageaugmenter/test_run_passage_augmenter.py +0 -60
- autorag-0.2.13/tests/autorag/nodes/passagecompressor/test_base_passage_compressor.py +0 -27
- autorag-0.2.13/tests/autorag/nodes/passagecompressor/test_longllmlingua.py +0 -29
- autorag-0.2.13/tests/autorag/nodes/passagecompressor/test_pass_compressor.py +0 -23
- autorag-0.2.13/tests/autorag/nodes/passagecompressor/test_refine.py +0 -54
- autorag-0.2.13/tests/autorag/nodes/passagecompressor/test_run_passage_compressor_node.py +0 -115
- autorag-0.2.13/tests/autorag/nodes/passagecompressor/test_tree_summarize.py +0 -54
- autorag-0.2.13/tests/autorag/nodes/passagefilter/test_pass_passage_filter.py +0 -15
- autorag-0.2.13/tests/autorag/nodes/passagefilter/test_passage_filter_base.py +0 -77
- autorag-0.2.13/tests/autorag/nodes/passagefilter/test_passage_filter_run.py +0 -60
- autorag-0.2.13/tests/autorag/nodes/passagefilter/test_percentile_cutoff.py +0 -28
- autorag-0.2.13/tests/autorag/nodes/passagefilter/test_recency_filter.py +0 -86
- autorag-0.2.13/tests/autorag/nodes/passagefilter/test_similarity_percentile_cutoff.py +0 -19
- autorag-0.2.13/tests/autorag/nodes/passagefilter/test_similarity_threshold_cutoff.py +0 -17
- autorag-0.2.13/tests/autorag/nodes/passagefilter/test_threshold_cutoff.py +0 -37
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_cohere_reranker.py +0 -58
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_colbert_reranker.py +0 -69
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_flag_embedding.py +0 -42
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_flag_embedding_llm.py +0 -45
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_jina_reranker.py +0 -70
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_koreranker.py +0 -33
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_monot5.py +0 -33
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_pass_reranker.py +0 -19
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_passage_reranker_base.py +0 -94
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_passage_reranker_run.py +0 -113
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_rankgpt.py +0 -52
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_sentence_transformer.py +0 -32
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_tart.py +0 -32
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_time_reranker.py +0 -26
- autorag-0.2.13/tests/autorag/nodes/passagereranker/test_upr.py +0 -22
- autorag-0.2.13/tests/autorag/nodes/promptmaker/test_fstring.py +0 -21
- autorag-0.2.13/tests/autorag/nodes/promptmaker/test_long_context_reorder.py +0 -26
- autorag-0.2.13/tests/autorag/nodes/promptmaker/test_prompt_maker_base.py +0 -28
- autorag-0.2.13/tests/autorag/nodes/promptmaker/test_prompt_maker_run.py +0 -190
- autorag-0.2.13/tests/autorag/nodes/promptmaker/test_window_replacement.py +0 -40
- autorag-0.2.13/tests/autorag/nodes/queryexpansion/test_hyde.py +0 -25
- autorag-0.2.13/tests/autorag/nodes/queryexpansion/test_multi_query_expansion.py +0 -27
- autorag-0.2.13/tests/autorag/nodes/queryexpansion/test_pass_query_expansion.py +0 -11
- autorag-0.2.13/tests/autorag/nodes/queryexpansion/test_query_decompose.py +0 -26
- autorag-0.2.13/tests/autorag/nodes/queryexpansion/test_query_expansion_base.py +0 -42
- autorag-0.2.13/tests/autorag/nodes/queryexpansion/test_query_expansion_run.py +0 -175
- autorag-0.2.13/tests/autorag/nodes/retrieval/test_bm25.py +0 -173
- autorag-0.2.13/tests/autorag/nodes/retrieval/test_hybrid_base.py +0 -121
- autorag-0.2.13/tests/autorag/nodes/retrieval/test_hybrid_cc.py +0 -54
- autorag-0.2.13/tests/autorag/nodes/retrieval/test_hybrid_rrf.py +0 -75
- autorag-0.2.13/tests/autorag/nodes/retrieval/test_retrieval_base.py +0 -75
- autorag-0.2.13/tests/autorag/nodes/retrieval/test_run_retrieval_node.py +0 -207
- autorag-0.2.13/tests/autorag/nodes/retrieval/test_vectordb.py +0 -169
- autorag-0.2.13/tests/autorag/schema/test_module_schema.py +0 -31
- autorag-0.2.13/tests/autorag/schema/test_node_schema.py +0 -149
- autorag-0.2.13/tests/autorag/test_cli.py +0 -73
- autorag-0.2.13/tests/autorag/test_dashboard.py +0 -35
- autorag-0.2.13/tests/autorag/test_deploy.py +0 -193
- autorag-0.2.13/tests/autorag/test_evaluator.py +0 -253
- autorag-0.2.13/tests/autorag/test_strategy.py +0 -79
- autorag-0.2.13/tests/autorag/test_support.py +0 -11
- autorag-0.2.13/tests/autorag/test_validator.py +0 -16
- autorag-0.2.13/tests/autorag/test_web.py +0 -21
- autorag-0.2.13/tests/autorag/utils/test_preprocess.py +0 -97
- autorag-0.2.13/tests/autorag/utils/test_util.py +0 -433
- autorag-0.2.13/tests/conftest.py +0 -10
- autorag-0.2.13/tests/delete_tests.py +0 -33
- autorag-0.2.13/tests/mock.py +0 -121
- {autorag-0.2.13 → autorag-0.2.15}/.github/FUNDING.yml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/.github/dependabot.yml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/.github/workflows/publish.yml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/.github/workflows/sphinx.yml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/.github/workflows/test.yml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/.gitignore +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/AutoRAG.egg-info/dependency_links.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/AutoRAG.egg-info/entry_points.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/AutoRAG.egg-info/top_level.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/CODE_OF_CONDUCT.md +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/LICENSE +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/README.md +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/data/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/data/corpus/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/data/qacreation/llama_index_default_prompt.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/data/utils/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/evaluation/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/evaluation/metric/g_eval_prompts/coh_detailed.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/evaluation/metric/g_eval_prompts/con_detailed.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/evaluation/metric/g_eval_prompts/flu_detailed.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/evaluation/metric/g_eval_prompts/rel_detailed.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/nodes/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/nodes/generator/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/nodes/passageaugmenter/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/nodes/passagecompressor/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/nodes/passagefilter/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/nodes/passagereranker/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/nodes/passagereranker/tart/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/nodes/promptmaker/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/nodes/queryexpansion/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/nodes/retrieval/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/autorag/schema/__init__.py +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/Makefile +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/make.bat +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/requirements.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/CNAME +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/data_creation.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/data_folder.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/dcg.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/f1_score.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/map.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/mrr.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/ndcg.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/ndcg_formula.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/node_folder.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/node_line_folder.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/node_line_summary.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/node_lines.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/node_summary.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/normal_distribution.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/project_folder_example.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/project_folders.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/resources_folder.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/roadmap/RAG_paradigms.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/roadmap/advanced_RAG.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/roadmap/cycle.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/roadmap/merger.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/roadmap/node_line_modular.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/roadmap/policy.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/samsung_sundae.jpeg +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/score_fusion.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/trial_folder.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/trial_json.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/trial_summary.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/_static/web_interface.png +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.data.corpus.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.data.qacreation.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.data.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.data.utils.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.evaluation.metric.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.evaluation.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.nodes.generator.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.nodes.passageaugmenter.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.nodes.passagecompressor.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.nodes.passagefilter.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.nodes.passagereranker.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.nodes.passagereranker.tart.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.nodes.promptmaker.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.nodes.queryexpansion.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.nodes.retrieval.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.nodes.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.schema.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/autorag.utils.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/api_spec/modules.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/index.rst +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/generator/llama_index_llm.md +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/generator/vllm.md +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/index.md +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_compressor/longllmlingua.md +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_compressor/tree_summarize.md +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_filter/passage_filter.md +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_filter/percentile_cutoff.md +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_reranker/time_reranker.md +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/passage_reranker/upr.md +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/docs/source/nodes/prompt_maker/long_context_reorder.md +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/sample_config/compact_local.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/sample_config/compact_openai.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/sample_config/config_korean.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/sample_config/extracted_sample.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/sample_config/full.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/sample_config/simple_local.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/sample_config/simple_ollama.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/sample_config/simple_openai.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/sample_dataset/README.md +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/setup.cfg +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/requirements.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/README.md +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/corpus_data_sample.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/data_creation/raw_dir/sample1.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/data_creation/raw_dir/sample2.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/data_creation/raw_dir/sample3.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/full.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/qa_data_sample.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/qa_gen_prompts/prompt1.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/qa_gen_prompts/prompt2.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/qa_gen_prompts/prompt3.txt +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/qa_test_data_sample.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/config.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/post_retrieve_node_line/generator/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/post_retrieve_node_line/generator/1.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/post_retrieve_node_line/generator/2.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/post_retrieve_node_line/generator/3.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/post_retrieve_node_line/generator/4.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/post_retrieve_node_line/generator/5.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/post_retrieve_node_line/generator/best_5.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/post_retrieve_node_line/generator/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/post_retrieve_node_line/prompt_maker/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/post_retrieve_node_line/prompt_maker/1.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/post_retrieve_node_line/prompt_maker/best_0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/post_retrieve_node_line/prompt_maker/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/post_retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/1.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/2.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/best_0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/pre_retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/retrieve_node_line/passage_compressor/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/retrieve_node_line/passage_compressor/best_0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/retrieve_node_line/passage_compressor/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/retrieve_node_line/passage_reranker/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/retrieve_node_line/passage_reranker/1.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/retrieve_node_line/passage_reranker/best_0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/retrieve_node_line/passage_reranker/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/retrieve_node_line/retrieval/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/retrieve_node_line/retrieval/1.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/retrieve_node_line/retrieval/best_0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/retrieve_node_line/retrieval/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/0/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/config.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/1.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/2.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/best_0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/pre_retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/retrieve_node_line/passage_filter/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/retrieve_node_line/passage_reranker/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/retrieve_node_line/passage_reranker/1.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/retrieve_node_line/passage_reranker/best_0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/retrieve_node_line/passage_reranker/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/retrieve_node_line/retrieval/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/retrieve_node_line/retrieval/1.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/retrieve_node_line/retrieval/best_0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/1/retrieve_node_line/retrieval/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/config.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/post_retrieve_node_line/prompt_maker/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/1.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/2.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/best_0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/pre_retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/retrieve_node_line/passage_compressor/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/retrieve_node_line/passage_compressor/best_0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/retrieve_node_line/passage_compressor/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/retrieve_node_line/passage_reranker/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/retrieve_node_line/passage_reranker/1.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/retrieve_node_line/passage_reranker/best_0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/retrieve_node_line/passage_reranker/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/retrieve_node_line/retrieval/0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/retrieve_node_line/retrieval/1.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/retrieve_node_line/retrieval/best_0.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/retrieve_node_line/retrieval/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/2/retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/3/config.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/best.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/data/corpus.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/data/qa.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/resources/bm25_porter_stemmer.pkl +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/resources/chroma/6595d304-5270-4d9f-a267-c191366804ce/data_level0.bin +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/resources/chroma/6595d304-5270-4d9f-a267-c191366804ce/header.bin +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/resources/chroma/6595d304-5270-4d9f-a267-c191366804ce/length.bin +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/resources/chroma/6595d304-5270-4d9f-a267-c191366804ce/link_lists.bin +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/resources/chroma/chroma.sqlite3 +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/result_project/trial.json +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/sample_contents_nqa.csv +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/sample_project/data/corpus.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/sample_project/data/qa.parquet +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/sample_project/resources/bm25_gpt2.pkl +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/sample_project/resources/bm25_porter_stemmer.pkl +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/simple.yaml +0 -0
- {autorag-0.2.13 → autorag-0.2.15}/tests/resources/test_bm25_retrieval.pkl +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: "[BUG] "
|
|
5
|
+
labels: bug
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Describe the bug**
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
**To Reproduce**
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. Go to '...'
|
|
16
|
+
2. Click on '....'
|
|
17
|
+
3. Scroll down to '....'
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
**Expected behavior**
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
**Full Error log**
|
|
24
|
+
If applicable, add full error log to help explain your problem.
|
|
25
|
+
|
|
26
|
+
**Code that bug is happened**
|
|
27
|
+
If applicable, add the code that bug is happened.
|
|
28
|
+
(Especially, your AutoRAG YAML file or python codes that you wrote)
|
|
29
|
+
|
|
30
|
+
**Desktop (please complete the following information):**
|
|
31
|
+
- OS: [e.g. Windows, Linux, MacOS]
|
|
32
|
+
- Python version [e.g. 3.10]
|
|
33
|
+
|
|
34
|
+
**Additional context**
|
|
35
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: "[Feature Request]"
|
|
5
|
+
labels: enhancement
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Describe alternatives you've considered**
|
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
+
|
|
19
|
+
**Additional context**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v4.6.0 # Use the ref you want to point at
|
|
4
|
+
hooks:
|
|
5
|
+
- id: trailing-whitespace
|
|
6
|
+
- id: end-of-file-fixer
|
|
7
|
+
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
8
|
+
rev: v0.6.1
|
|
9
|
+
hooks:
|
|
10
|
+
- id: ruff
|
|
11
|
+
types_or: [ python, pyi ]
|
|
12
|
+
args: [ "--fix" ]
|
|
13
|
+
- id: ruff-format
|
|
14
|
+
types_or: [ python, pyi ]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: AutoRAG
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.15
|
|
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
|
|
@@ -221,13 +221,12 @@ Requires-Python: >=3.8
|
|
|
221
221
|
Description-Content-Type: text/markdown
|
|
222
222
|
License-File: LICENSE
|
|
223
223
|
Requires-Dist: numpy<2.0.0
|
|
224
|
-
Requires-Dist: pandas
|
|
224
|
+
Requires-Dist: pandas>=2.1.0
|
|
225
225
|
Requires-Dist: tqdm
|
|
226
226
|
Requires-Dist: tiktoken>=0.7.0
|
|
227
227
|
Requires-Dist: openai>=1.0.0
|
|
228
228
|
Requires-Dist: rank_bm25
|
|
229
229
|
Requires-Dist: transformers
|
|
230
|
-
Requires-Dist: swifter
|
|
231
230
|
Requires-Dist: pyyaml
|
|
232
231
|
Requires-Dist: pyarrow
|
|
233
232
|
Requires-Dist: fastparquet
|
|
@@ -242,7 +241,7 @@ Requires-Dist: uvicorn
|
|
|
242
241
|
Requires-Dist: torch
|
|
243
242
|
Requires-Dist: sentencepiece
|
|
244
243
|
Requires-Dist: guidance
|
|
245
|
-
Requires-Dist: cohere
|
|
244
|
+
Requires-Dist: cohere>=5.8.0
|
|
246
245
|
Requires-Dist: tokenlog>=0.0.2
|
|
247
246
|
Requires-Dist: aiohttp
|
|
248
247
|
Requires-Dist: bert_score
|
|
@@ -250,8 +249,9 @@ Requires-Dist: sentence-transformers
|
|
|
250
249
|
Requires-Dist: FlagEmbedding
|
|
251
250
|
Requires-Dist: ragas
|
|
252
251
|
Requires-Dist: llmlingua
|
|
253
|
-
Requires-Dist:
|
|
254
|
-
Requires-Dist: llama-index
|
|
252
|
+
Requires-Dist: peft
|
|
253
|
+
Requires-Dist: llama-index>=0.11.0
|
|
254
|
+
Requires-Dist: llama-index-core>=0.11.0
|
|
255
255
|
Requires-Dist: llama-index-readers-file
|
|
256
256
|
Requires-Dist: llama-index-embeddings-openai
|
|
257
257
|
Requires-Dist: llama-index-embeddings-huggingface
|
|
@@ -261,6 +261,7 @@ Requires-Dist: llama-index-llms-openai-like
|
|
|
261
261
|
Requires-Dist: llama-index-llms-ollama
|
|
262
262
|
Requires-Dist: llama-index-retrievers-bm25
|
|
263
263
|
Requires-Dist: streamlit
|
|
264
|
+
Requires-Dist: gradio
|
|
264
265
|
Requires-Dist: langchain-core>=0.1.6
|
|
265
266
|
Requires-Dist: panel
|
|
266
267
|
Requires-Dist: seaborn
|
|
@@ -270,8 +271,12 @@ Requires-Dist: ipywidgets_bokeh
|
|
|
270
271
|
Provides-Extra: ko
|
|
271
272
|
Requires-Dist: kiwipiepy; extra == "ko"
|
|
272
273
|
Requires-Dist: konlpy; extra == "ko"
|
|
274
|
+
Provides-Extra: dev
|
|
275
|
+
Requires-Dist: ruff; extra == "dev"
|
|
276
|
+
Requires-Dist: pre-commit; extra == "dev"
|
|
273
277
|
Provides-Extra: all
|
|
274
278
|
Requires-Dist: AutoRAG[ko]; extra == "all"
|
|
279
|
+
Requires-Dist: AutoRAG[dev]; extra == "all"
|
|
275
280
|
|
|
276
281
|
# AutoRAG
|
|
277
282
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.gitignore
|
|
2
|
+
.pre-commit-config.yaml
|
|
2
3
|
CODE_OF_CONDUCT.md
|
|
3
4
|
CONTRIBUTING.md
|
|
4
5
|
LICENSE
|
|
@@ -7,6 +8,8 @@ pyproject.toml
|
|
|
7
8
|
requirements.txt
|
|
8
9
|
.github/FUNDING.yml
|
|
9
10
|
.github/dependabot.yml
|
|
11
|
+
.github/ISSUE_TEMPLATE/bug_report.md
|
|
12
|
+
.github/ISSUE_TEMPLATE/feature_request.md
|
|
10
13
|
.github/workflows/publish.yml
|
|
11
14
|
.github/workflows/sphinx.yml
|
|
12
15
|
.github/workflows/test.yml
|
|
@@ -160,6 +163,7 @@ docs/source/_static/trial_folder.png
|
|
|
160
163
|
docs/source/_static/trial_json.png
|
|
161
164
|
docs/source/_static/trial_summary.png
|
|
162
165
|
docs/source/_static/web_interface.png
|
|
166
|
+
docs/source/_static/web_interface_gradio.png
|
|
163
167
|
docs/source/_static/roadmap/RAG_paradigms.png
|
|
164
168
|
docs/source/_static/roadmap/advanced_RAG.png
|
|
165
169
|
docs/source/_static/roadmap/cycle.png
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
numpy<2.0.0
|
|
2
|
-
pandas
|
|
2
|
+
pandas>=2.1.0
|
|
3
3
|
tqdm
|
|
4
4
|
tiktoken>=0.7.0
|
|
5
5
|
openai>=1.0.0
|
|
6
6
|
rank_bm25
|
|
7
7
|
transformers
|
|
8
|
-
swifter
|
|
9
8
|
pyyaml
|
|
10
9
|
pyarrow
|
|
11
10
|
fastparquet
|
|
@@ -20,7 +19,7 @@ uvicorn
|
|
|
20
19
|
torch
|
|
21
20
|
sentencepiece
|
|
22
21
|
guidance
|
|
23
|
-
cohere
|
|
22
|
+
cohere>=5.8.0
|
|
24
23
|
tokenlog>=0.0.2
|
|
25
24
|
aiohttp
|
|
26
25
|
bert_score
|
|
@@ -28,8 +27,9 @@ sentence-transformers
|
|
|
28
27
|
FlagEmbedding
|
|
29
28
|
ragas
|
|
30
29
|
llmlingua
|
|
31
|
-
|
|
32
|
-
llama-index
|
|
30
|
+
peft
|
|
31
|
+
llama-index>=0.11.0
|
|
32
|
+
llama-index-core>=0.11.0
|
|
33
33
|
llama-index-readers-file
|
|
34
34
|
llama-index-embeddings-openai
|
|
35
35
|
llama-index-embeddings-huggingface
|
|
@@ -39,6 +39,7 @@ llama-index-llms-openai-like
|
|
|
39
39
|
llama-index-llms-ollama
|
|
40
40
|
llama-index-retrievers-bm25
|
|
41
41
|
streamlit
|
|
42
|
+
gradio
|
|
42
43
|
langchain-core>=0.1.6
|
|
43
44
|
panel
|
|
44
45
|
seaborn
|
|
@@ -48,6 +49,11 @@ ipywidgets_bokeh
|
|
|
48
49
|
|
|
49
50
|
[all]
|
|
50
51
|
AutoRAG[ko]
|
|
52
|
+
AutoRAG[dev]
|
|
53
|
+
|
|
54
|
+
[dev]
|
|
55
|
+
ruff
|
|
56
|
+
pre-commit
|
|
51
57
|
|
|
52
58
|
[ko]
|
|
53
59
|
kiwipiepy
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Getting Started
|
|
2
|
+
|
|
3
|
+
Thank you so much for your consideration of contributing to AutoRAG!
|
|
4
|
+
Okay Let's get started!
|
|
5
|
+
|
|
6
|
+
## Quickstart
|
|
7
|
+
|
|
8
|
+
1. Fork the repo and clone your fork
|
|
9
|
+
2. Create a new virtual environment and activate it
|
|
10
|
+
3. Install the dependencies and package (`pip install -e '.[all]'`)
|
|
11
|
+
4. Install docs and test dependencies (`pip install -r docs/requirements.txt` and `pip install -r tests/requirements.txt`)
|
|
12
|
+
|
|
13
|
+
Also, join our Discord at [here](https://discord.gg/P4DYXfmSAs) and discuss about your contribution with the community.
|
|
14
|
+
|
|
15
|
+
## Contribution Guidelines
|
|
16
|
+
|
|
17
|
+
### What should I work on?
|
|
18
|
+
|
|
19
|
+
1. Add new modules or nodes to the AutoRAG.
|
|
20
|
+
2. Fix bugs
|
|
21
|
+
3. Add new feature to the AutoRAG
|
|
22
|
+
4. Add new sample config YAML files
|
|
23
|
+
5. Add new sample dataset
|
|
24
|
+
6. Improve code quality & documentation
|
|
25
|
+
7. Report a bug or suggest new feature
|
|
26
|
+
|
|
27
|
+
It can be great you search 'good first issue' tag on github issue tab.
|
|
28
|
+
|
|
29
|
+
# Development Guidelines
|
|
30
|
+
|
|
31
|
+
## Repo Structure
|
|
32
|
+
|
|
33
|
+
The `AutoRAG` repo have a standard python library structure.
|
|
34
|
+
|
|
35
|
+
You can find the core part of the library in `autorag` folder.
|
|
36
|
+
You can find the test codes of the `AutoRAG` at the `tests` folder.
|
|
37
|
+
Plus, you can find the [AutoRAG docs](https://docs.auto-rag.com) at the `docs` folder.
|
|
38
|
+
|
|
39
|
+
For resources, you can find sample config YAML files at `sample_config` folder.
|
|
40
|
+
Plus, you can find sample dataset download script from `sample_dataset` folder.
|
|
41
|
+
|
|
42
|
+
## Setting up environment
|
|
43
|
+
|
|
44
|
+
As a python package, AutoRAG tested primarily in Python versions >= 3.9.
|
|
45
|
+
Here's a guide to set environment.
|
|
46
|
+
|
|
47
|
+
1. Fork [AutoRAG Github repo](https://github.com/Marker-Inc-Korea/AutoRAG) and clone it to your local machine. (New to GitHub / git? Here's [how](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo).)
|
|
48
|
+
2. Open your cloned repository to your IDE or open your project at the terminal through `cd`.
|
|
49
|
+
3. Install pre-commit hooks by running `pre-commit install` in the terminal.
|
|
50
|
+
4. Make a new virtual environment (Highly Recommended)
|
|
51
|
+
5. Install AutoRAG as development version. `pip install -e '.[all]'`
|
|
52
|
+
6. Install test dependencies `pip install -r tests/requirements.txt`
|
|
53
|
+
7. Write `pytest.ini` file and add env variable for running tests.
|
|
54
|
+
```ini
|
|
55
|
+
[pytest]
|
|
56
|
+
env =
|
|
57
|
+
OPENAI_API_KEY=sk-xxxx
|
|
58
|
+
|
|
59
|
+
log_cli=true
|
|
60
|
+
log_cli_level=INFO
|
|
61
|
+
```
|
|
62
|
+
8. Install docs dependencies `pip install -r docs/requirements.txt`
|
|
63
|
+
|
|
64
|
+
## Validating your change
|
|
65
|
+
|
|
66
|
+
Let's make sure to `format/lint` our change.
|
|
67
|
+
For bigger changes, let's also make sure to `test` our change.
|
|
68
|
+
|
|
69
|
+
### Formatting/Linting
|
|
70
|
+
|
|
71
|
+
We use `ruff` to linting and formatting our code.
|
|
72
|
+
If you have installed pre-commit hooks in this repo, they should have taken care of the formatting and linting automatically.
|
|
73
|
+
(Use `pre-commit install`)
|
|
74
|
+
|
|
75
|
+
If you want to do it manually, you can lint and format with ruff.
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
ruff check --fix
|
|
79
|
+
ruff format
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Testing
|
|
83
|
+
|
|
84
|
+
If you modified or added new code logic, you have to create tests for them, too.
|
|
85
|
+
- In almost all cases, add unit tests.
|
|
86
|
+
- If your new features uses heavy GPU models or outside API connections, you must use mock and pytest fixtures.
|
|
87
|
+
- The added test case must not leave any extra files.
|
|
88
|
+
- You must cover all cases of features or adjust that you made.
|
|
89
|
+
- If you don't know well about `pytest`, `pytest-env` and pytest fixtures and mock, please learn about it.
|
|
90
|
+
- Lastly, if the test you made must need CUDA-enabled device, you can mark the test with `@pytest.mark.skipif(is_github_action())` so we can skip it on github actions.
|
|
91
|
+
|
|
92
|
+
Plus, your test will run as github actions when you try to merge it to the main branch.
|
|
93
|
+
|
|
94
|
+
#### Warning about OPENAI_API_KEY
|
|
95
|
+
|
|
96
|
+
When executing test at github actions, it will be failed due to the OpenAI API key.
|
|
97
|
+
Don't worry, we will run the test locally and merge your code if there is no problem.
|
|
98
|
+
|
|
99
|
+
## Making a Pull Request
|
|
100
|
+
|
|
101
|
+
You can make a pull request to the main branch of the AutoRAG repo.
|
|
102
|
+
At the fork repository, you will make a PR to AutoRAG repo.
|
|
103
|
+
You can assign the issue with `close #issue_number` to automatically close the issue when the PR is merged.
|
|
104
|
+
|
|
105
|
+
After that, please assign `vkehfdl1` or `bwook00` as a reviewer.
|
|
106
|
+
For merge, you will have to get at least one approval from the reviewer.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: AutoRAG
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.15
|
|
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
|
|
@@ -221,13 +221,12 @@ Requires-Python: >=3.8
|
|
|
221
221
|
Description-Content-Type: text/markdown
|
|
222
222
|
License-File: LICENSE
|
|
223
223
|
Requires-Dist: numpy<2.0.0
|
|
224
|
-
Requires-Dist: pandas
|
|
224
|
+
Requires-Dist: pandas>=2.1.0
|
|
225
225
|
Requires-Dist: tqdm
|
|
226
226
|
Requires-Dist: tiktoken>=0.7.0
|
|
227
227
|
Requires-Dist: openai>=1.0.0
|
|
228
228
|
Requires-Dist: rank_bm25
|
|
229
229
|
Requires-Dist: transformers
|
|
230
|
-
Requires-Dist: swifter
|
|
231
230
|
Requires-Dist: pyyaml
|
|
232
231
|
Requires-Dist: pyarrow
|
|
233
232
|
Requires-Dist: fastparquet
|
|
@@ -242,7 +241,7 @@ Requires-Dist: uvicorn
|
|
|
242
241
|
Requires-Dist: torch
|
|
243
242
|
Requires-Dist: sentencepiece
|
|
244
243
|
Requires-Dist: guidance
|
|
245
|
-
Requires-Dist: cohere
|
|
244
|
+
Requires-Dist: cohere>=5.8.0
|
|
246
245
|
Requires-Dist: tokenlog>=0.0.2
|
|
247
246
|
Requires-Dist: aiohttp
|
|
248
247
|
Requires-Dist: bert_score
|
|
@@ -250,8 +249,9 @@ Requires-Dist: sentence-transformers
|
|
|
250
249
|
Requires-Dist: FlagEmbedding
|
|
251
250
|
Requires-Dist: ragas
|
|
252
251
|
Requires-Dist: llmlingua
|
|
253
|
-
Requires-Dist:
|
|
254
|
-
Requires-Dist: llama-index
|
|
252
|
+
Requires-Dist: peft
|
|
253
|
+
Requires-Dist: llama-index>=0.11.0
|
|
254
|
+
Requires-Dist: llama-index-core>=0.11.0
|
|
255
255
|
Requires-Dist: llama-index-readers-file
|
|
256
256
|
Requires-Dist: llama-index-embeddings-openai
|
|
257
257
|
Requires-Dist: llama-index-embeddings-huggingface
|
|
@@ -261,6 +261,7 @@ Requires-Dist: llama-index-llms-openai-like
|
|
|
261
261
|
Requires-Dist: llama-index-llms-ollama
|
|
262
262
|
Requires-Dist: llama-index-retrievers-bm25
|
|
263
263
|
Requires-Dist: streamlit
|
|
264
|
+
Requires-Dist: gradio
|
|
264
265
|
Requires-Dist: langchain-core>=0.1.6
|
|
265
266
|
Requires-Dist: panel
|
|
266
267
|
Requires-Dist: seaborn
|
|
@@ -270,8 +271,12 @@ Requires-Dist: ipywidgets_bokeh
|
|
|
270
271
|
Provides-Extra: ko
|
|
271
272
|
Requires-Dist: kiwipiepy; extra == "ko"
|
|
272
273
|
Requires-Dist: konlpy; extra == "ko"
|
|
274
|
+
Provides-Extra: dev
|
|
275
|
+
Requires-Dist: ruff; extra == "dev"
|
|
276
|
+
Requires-Dist: pre-commit; extra == "dev"
|
|
273
277
|
Provides-Extra: all
|
|
274
278
|
Requires-Dist: AutoRAG[ko]; extra == "all"
|
|
279
|
+
Requires-Dist: AutoRAG[dev]; extra == "all"
|
|
275
280
|
|
|
276
281
|
# AutoRAG
|
|
277
282
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.2.15
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import logging
|
|
2
|
+
import logging.config
|
|
3
|
+
import os
|
|
4
|
+
import sys
|
|
5
|
+
|
|
6
|
+
import transformers
|
|
7
|
+
from llama_index.core.llms.mock import MockLLM
|
|
8
|
+
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
|
9
|
+
from llama_index.embeddings.openai import OpenAIEmbedding
|
|
10
|
+
from llama_index.embeddings.openai import OpenAIEmbeddingModelType
|
|
11
|
+
from llama_index.llms.huggingface import HuggingFaceLLM
|
|
12
|
+
from llama_index.llms.ollama import Ollama
|
|
13
|
+
from llama_index.llms.openai import OpenAI
|
|
14
|
+
from llama_index.llms.openai_like import OpenAILike
|
|
15
|
+
from rich.logging import RichHandler
|
|
16
|
+
|
|
17
|
+
version_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "VERSION")
|
|
18
|
+
|
|
19
|
+
with open(version_path, "r") as f:
|
|
20
|
+
__version__ = f.read().strip()
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class LazyInit:
|
|
24
|
+
def __init__(self, factory, *args, **kwargs):
|
|
25
|
+
self._factory = factory
|
|
26
|
+
self._args = args
|
|
27
|
+
self._kwargs = kwargs
|
|
28
|
+
self._instance = None
|
|
29
|
+
|
|
30
|
+
def __call__(self):
|
|
31
|
+
if self._instance is None:
|
|
32
|
+
self._instance = self._factory(*self._args, **self._kwargs)
|
|
33
|
+
return self._instance
|
|
34
|
+
|
|
35
|
+
def __getattr__(self, name):
|
|
36
|
+
if self._instance is None:
|
|
37
|
+
self._instance = self._factory(*self._args, **self._kwargs)
|
|
38
|
+
return getattr(self._instance, name)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
embedding_models = {
|
|
42
|
+
"openai": LazyInit(
|
|
43
|
+
OpenAIEmbedding
|
|
44
|
+
), # default model is OpenAIEmbeddingModelType.TEXT_EMBED_ADA_002
|
|
45
|
+
"openai_embed_3_large": LazyInit(
|
|
46
|
+
OpenAIEmbedding, model_name=OpenAIEmbeddingModelType.TEXT_EMBED_3_LARGE
|
|
47
|
+
),
|
|
48
|
+
"openai_embed_3_small": LazyInit(
|
|
49
|
+
OpenAIEmbedding, model_name=OpenAIEmbeddingModelType.TEXT_EMBED_3_SMALL
|
|
50
|
+
),
|
|
51
|
+
# you can use your own model in this way.
|
|
52
|
+
"huggingface_baai_bge_small": LazyInit(
|
|
53
|
+
HuggingFaceEmbedding, model_name="BAAI/bge-small-en-v1.5"
|
|
54
|
+
),
|
|
55
|
+
"huggingface_cointegrated_rubert_tiny2": LazyInit(
|
|
56
|
+
HuggingFaceEmbedding, model_name="cointegrated/rubert-tiny2"
|
|
57
|
+
),
|
|
58
|
+
"huggingface_all_mpnet_base_v2": LazyInit(
|
|
59
|
+
HuggingFaceEmbedding,
|
|
60
|
+
model_name="sentence-transformers/all-mpnet-base-v2",
|
|
61
|
+
max_length=512,
|
|
62
|
+
),
|
|
63
|
+
"huggingface_bge_m3": LazyInit(HuggingFaceEmbedding, model_name="BAAI/bge-m3"),
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
generator_models = {
|
|
67
|
+
"openai": OpenAI,
|
|
68
|
+
"huggingfacellm": HuggingFaceLLM,
|
|
69
|
+
"openailike": OpenAILike,
|
|
70
|
+
"ollama": Ollama,
|
|
71
|
+
"mock": MockLLM,
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
rich_format = "[%(filename)s:%(lineno)s] >> %(message)s"
|
|
75
|
+
logging.basicConfig(
|
|
76
|
+
level="INFO", format=rich_format, handlers=[RichHandler(rich_tracebacks=True)]
|
|
77
|
+
)
|
|
78
|
+
logger = logging.getLogger("AutoRAG")
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def handle_exception(exc_type, exc_value, exc_traceback):
|
|
82
|
+
logger = logging.getLogger("AutoRAG")
|
|
83
|
+
logger.error("Unexpected exception", exc_info=(exc_type, exc_value, exc_traceback))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
sys.excepthook = handle_exception
|
|
87
|
+
|
|
88
|
+
transformers.logging.set_verbosity_error()
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import importlib.resources
|
|
2
|
+
import logging
|
|
3
|
+
import os
|
|
4
|
+
import pathlib
|
|
5
|
+
import subprocess
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
from typing import Optional
|
|
8
|
+
|
|
9
|
+
import click
|
|
10
|
+
|
|
11
|
+
from autorag import dashboard
|
|
12
|
+
from autorag.deploy import Runner
|
|
13
|
+
from autorag.deploy import extract_best_config as original_extract_best_config
|
|
14
|
+
from autorag.evaluator import Evaluator
|
|
15
|
+
from autorag.validator import Validator
|
|
16
|
+
|
|
17
|
+
logger = logging.getLogger("AutoRAG")
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@click.group()
|
|
21
|
+
def cli():
|
|
22
|
+
pass
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@click.command()
|
|
26
|
+
@click.option(
|
|
27
|
+
"--config",
|
|
28
|
+
"-c",
|
|
29
|
+
help="Path to config yaml file. Must be yaml or yml file.",
|
|
30
|
+
type=str,
|
|
31
|
+
)
|
|
32
|
+
@click.option(
|
|
33
|
+
"--qa_data_path", help="Path to QA dataset. Must be parquet file.", type=str
|
|
34
|
+
)
|
|
35
|
+
@click.option(
|
|
36
|
+
"--corpus_data_path", help="Path to corpus dataset. Must be parquet file.", type=str
|
|
37
|
+
)
|
|
38
|
+
@click.option(
|
|
39
|
+
"--project_dir", help="Path to project directory.", type=str, default=None
|
|
40
|
+
)
|
|
41
|
+
def evaluate(config, qa_data_path, corpus_data_path, project_dir):
|
|
42
|
+
if not config.endswith(".yaml") and not config.endswith(".yml"):
|
|
43
|
+
raise ValueError(f"Config file {config} is not a parquet file.")
|
|
44
|
+
if not os.path.exists(config):
|
|
45
|
+
raise ValueError(f"Config file {config} does not exist.")
|
|
46
|
+
evaluator = Evaluator(qa_data_path, corpus_data_path, project_dir=project_dir)
|
|
47
|
+
evaluator.start_trial(config)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@click.command()
|
|
51
|
+
@click.option("--config_path", type=str, help="Path to extracted config yaml file.")
|
|
52
|
+
@click.option("--host", type=str, default="0.0.0.0", help="Host address")
|
|
53
|
+
@click.option("--port", type=int, default=8000, help="Port number")
|
|
54
|
+
@click.option(
|
|
55
|
+
"--project_dir", help="Path to project directory.", type=str, default=None
|
|
56
|
+
)
|
|
57
|
+
def run_api(config_path, host, port, project_dir):
|
|
58
|
+
runner = Runner.from_yaml(config_path, project_dir=project_dir)
|
|
59
|
+
logger.info(f"Running API server at {host}:{port}...")
|
|
60
|
+
runner.run_api_server(host, port)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
@click.command()
|
|
64
|
+
@click.option(
|
|
65
|
+
"--yaml_path", type=click.Path(path_type=Path), help="Path to the YAML file."
|
|
66
|
+
)
|
|
67
|
+
@click.option(
|
|
68
|
+
"--project_dir",
|
|
69
|
+
type=click.Path(path_type=Path),
|
|
70
|
+
help="Path to the project directory.",
|
|
71
|
+
)
|
|
72
|
+
@click.option(
|
|
73
|
+
"--trial_path", type=click.Path(path_type=Path), help="Path to the trial directory."
|
|
74
|
+
)
|
|
75
|
+
def run_web(
|
|
76
|
+
yaml_path: Optional[str], project_dir: Optional[str], trial_path: Optional[str]
|
|
77
|
+
):
|
|
78
|
+
try:
|
|
79
|
+
with importlib.resources.path("autorag", "web.py") as web_path:
|
|
80
|
+
web_py_path = str(web_path)
|
|
81
|
+
except ImportError:
|
|
82
|
+
raise ImportError(
|
|
83
|
+
"Could not locate the web.py file within the autorag package."
|
|
84
|
+
" Please ensure that autorag is correctly installed."
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
if not yaml_path and not trial_path:
|
|
88
|
+
raise ValueError("yaml_path or trial_path must be given.")
|
|
89
|
+
elif yaml_path and trial_path:
|
|
90
|
+
raise ValueError("yaml_path and trial_path cannot be given at the same time.")
|
|
91
|
+
elif yaml_path and not project_dir:
|
|
92
|
+
subprocess.run(
|
|
93
|
+
["streamlit", "run", web_py_path, "--", "--yaml_path", yaml_path]
|
|
94
|
+
)
|
|
95
|
+
elif yaml_path and project_dir:
|
|
96
|
+
subprocess.run(
|
|
97
|
+
[
|
|
98
|
+
"streamlit",
|
|
99
|
+
"run",
|
|
100
|
+
web_py_path,
|
|
101
|
+
"--",
|
|
102
|
+
"--yaml_path",
|
|
103
|
+
yaml_path,
|
|
104
|
+
"--project_dir",
|
|
105
|
+
project_dir,
|
|
106
|
+
]
|
|
107
|
+
)
|
|
108
|
+
elif trial_path:
|
|
109
|
+
subprocess.run(
|
|
110
|
+
["streamlit", "run", web_py_path, "--", "--trial_path", trial_path]
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
@click.command()
|
|
115
|
+
@click.option(
|
|
116
|
+
"--trial_dir",
|
|
117
|
+
type=click.Path(dir_okay=True, file_okay=False, exists=True),
|
|
118
|
+
required=True,
|
|
119
|
+
)
|
|
120
|
+
def run_dashboard(trial_dir: str):
|
|
121
|
+
dashboard.run(trial_dir)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
@click.command()
|
|
125
|
+
@click.option("--trial_path", type=click.Path(), help="Path to the trial directory.")
|
|
126
|
+
@click.option(
|
|
127
|
+
"--output_path",
|
|
128
|
+
type=click.Path(),
|
|
129
|
+
help="Path to the output directory." " Must be .yaml or .yml file.",
|
|
130
|
+
)
|
|
131
|
+
def extract_best_config(trial_path: str, output_path: str):
|
|
132
|
+
original_extract_best_config(trial_path, output_path)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
@click.command()
|
|
136
|
+
@click.option("--trial_path", help="Path to trial directory.", type=str)
|
|
137
|
+
def restart_evaluate(trial_path):
|
|
138
|
+
if not os.path.exists(trial_path):
|
|
139
|
+
raise ValueError(f"trial_path {trial_path} does not exist.")
|
|
140
|
+
project_dir = pathlib.PurePath(trial_path).parent
|
|
141
|
+
qa_data_path = os.path.join(project_dir, "data", "qa.parquet")
|
|
142
|
+
corpus_data_path = os.path.join(project_dir, "data", "corpus.parquet")
|
|
143
|
+
evaluator = Evaluator(qa_data_path, corpus_data_path, project_dir)
|
|
144
|
+
evaluator.restart_trial(trial_path)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
@click.command()
|
|
148
|
+
@click.option(
|
|
149
|
+
"--config",
|
|
150
|
+
"-c",
|
|
151
|
+
help="Path to config yaml file. Must be yaml or yml file.",
|
|
152
|
+
type=str,
|
|
153
|
+
)
|
|
154
|
+
@click.option(
|
|
155
|
+
"--qa_data_path", help="Path to QA dataset. Must be parquet file.", type=str
|
|
156
|
+
)
|
|
157
|
+
@click.option(
|
|
158
|
+
"--corpus_data_path", help="Path to corpus dataset. Must be parquet file.", type=str
|
|
159
|
+
)
|
|
160
|
+
def validate(config, qa_data_path, corpus_data_path):
|
|
161
|
+
if not config.endswith(".yaml") and not config.endswith(".yml"):
|
|
162
|
+
raise ValueError(f"Config file {config} is not a parquet file.")
|
|
163
|
+
if not os.path.exists(config):
|
|
164
|
+
raise ValueError(f"Config file {config} does not exist.")
|
|
165
|
+
validator = Validator(qa_data_path=qa_data_path, corpus_data_path=corpus_data_path)
|
|
166
|
+
validator.validate(config)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
cli.add_command(evaluate, "evaluate")
|
|
170
|
+
cli.add_command(run_api, "run_api")
|
|
171
|
+
cli.add_command(run_web, "run_web")
|
|
172
|
+
cli.add_command(run_dashboard, "dashboard")
|
|
173
|
+
cli.add_command(extract_best_config, "extract_best_config")
|
|
174
|
+
cli.add_command(restart_evaluate, "restart_evaluate")
|
|
175
|
+
cli.add_command(validate, "validate")
|
|
176
|
+
|
|
177
|
+
if __name__ == "__main__":
|
|
178
|
+
cli()
|