AutoRAG 0.2.15__tar.gz → 0.2.17__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 → autorag-0.2.17}/.github/workflows/test.yml +14 -0
- {autorag-0.2.15 → autorag-0.2.17}/AutoRAG.egg-info/PKG-INFO +15 -4
- {autorag-0.2.15 → autorag-0.2.17}/AutoRAG.egg-info/SOURCES.txt +96 -0
- {autorag-0.2.15 → autorag-0.2.17}/AutoRAG.egg-info/requires.txt +15 -3
- {autorag-0.2.15 → autorag-0.2.17}/CONTRIBUTING.md +1 -1
- {autorag-0.2.15 → autorag-0.2.17}/PKG-INFO +15 -4
- autorag-0.2.17/autorag/VERSION +1 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/__init__.py +15 -0
- autorag-0.2.17/autorag/chunker.py +81 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/dashboard.py +1 -1
- autorag-0.2.17/autorag/data/__init__.py +100 -0
- autorag-0.2.17/autorag/data/beta/__init__.py +3 -0
- autorag-0.2.17/autorag/data/beta/extract_evidence.py +1 -0
- autorag-0.2.17/autorag/data/beta/filter/dontknow.py +107 -0
- autorag-0.2.17/autorag/data/beta/filter/prompt.py +20 -0
- autorag-0.2.17/autorag/data/beta/generation_gt/base.py +16 -0
- autorag-0.2.17/autorag/data/beta/generation_gt/llama_index_gen_gt.py +37 -0
- autorag-0.2.17/autorag/data/beta/generation_gt/openai_gen_gt.py +84 -0
- autorag-0.2.17/autorag/data/beta/generation_gt/prompt.py +19 -0
- autorag-0.2.17/autorag/data/beta/query/llama_gen_query.py +64 -0
- autorag-0.2.17/autorag/data/beta/query/openai_gen_query.py +95 -0
- autorag-0.2.17/autorag/data/beta/query/prompt.py +123 -0
- autorag-0.2.17/autorag/data/beta/sample.py +26 -0
- autorag-0.2.17/autorag/data/beta/schema.py +301 -0
- autorag-0.2.17/autorag/data/chunk/__init__.py +2 -0
- autorag-0.2.17/autorag/data/chunk/base.py +121 -0
- autorag-0.2.17/autorag/data/chunk/langchain_chunk.py +76 -0
- autorag-0.2.17/autorag/data/chunk/llama_index_chunk.py +96 -0
- autorag-0.2.17/autorag/data/chunk/run.py +38 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/data/corpus/llama_index.py +6 -22
- autorag-0.2.17/autorag/data/parse/__init__.py +4 -0
- autorag-0.2.17/autorag/data/parse/base.py +54 -0
- autorag-0.2.17/autorag/data/parse/clova.py +189 -0
- autorag-0.2.17/autorag/data/parse/langchain_parse.py +79 -0
- autorag-0.2.17/autorag/data/parse/llamaparse.py +44 -0
- autorag-0.2.17/autorag/data/parse/run.py +38 -0
- autorag-0.2.17/autorag/data/parse/table_hybrid_parse.py +134 -0
- autorag-0.2.17/autorag/data/utils/util.py +103 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/deploy.py +9 -11
- {autorag-0.2.15 → autorag-0.2.17}/autorag/evaluation/generation.py +6 -3
- {autorag-0.2.15 → autorag-0.2.17}/autorag/evaluation/metric/generation.py +37 -76
- {autorag-0.2.15 → autorag-0.2.17}/autorag/evaluation/metric/retrieval.py +27 -38
- {autorag-0.2.15 → autorag-0.2.17}/autorag/evaluation/metric/retrieval_contents.py +18 -26
- autorag-0.2.17/autorag/evaluation/metric/util.py +73 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/evaluation/retrieval.py +7 -23
- {autorag-0.2.15 → autorag-0.2.17}/autorag/evaluation/retrieval_contents.py +8 -4
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/generator/base.py +10 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/generator/run.py +10 -4
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/generator/vllm.py +20 -13
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passageaugmenter/run.py +4 -3
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagecompressor/run.py +9 -9
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagefilter/run.py +5 -3
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/run.py +5 -3
- autorag-0.2.17/autorag/nodes/passagereranker/tart/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/promptmaker/run.py +8 -5
- autorag-0.2.17/autorag/nodes/queryexpansion/run.py +267 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/retrieval/run.py +13 -21
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/retrieval/vectordb.py +4 -3
- autorag-0.2.17/autorag/parser.py +66 -0
- autorag-0.2.17/autorag/schema/metricinput.py +93 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/support.py +8 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/utils/util.py +6 -2
- {autorag-0.2.15 → autorag-0.2.17}/autorag/web.py +0 -3
- autorag-0.2.17/docs/source/_static/data_creation.png +0 -0
- autorag-0.2.17/docs/source/api_spec/autorag.data.beta.generation_gt.rst +45 -0
- autorag-0.2.17/docs/source/api_spec/autorag.data.beta.query.rst +37 -0
- autorag-0.2.17/docs/source/api_spec/autorag.data.beta.rst +39 -0
- autorag-0.2.17/docs/source/api_spec/autorag.data.beta.schema.rst +21 -0
- autorag-0.2.17/docs/source/api_spec/autorag.data.parse.rst +61 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.data.rst +3 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.rst +16 -0
- autorag-0.2.17/docs/source/data_creation/beta/chunk/chunk.md +168 -0
- autorag-0.2.17/docs/source/data_creation/beta/chunk/langchain_chunk.md +47 -0
- autorag-0.2.17/docs/source/data_creation/beta/chunk/llama_index_chunk.md +57 -0
- autorag-0.2.17/docs/source/data_creation/beta/data_creation.md +35 -0
- autorag-0.2.17/docs/source/data_creation/beta/parse/clova.md +30 -0
- autorag-0.2.17/docs/source/data_creation/beta/parse/langchain_parse.md +123 -0
- autorag-0.2.17/docs/source/data_creation/beta/parse/llama_parse.md +29 -0
- autorag-0.2.17/docs/source/data_creation/beta/parse/parse.md +108 -0
- autorag-0.2.17/docs/source/data_creation/beta/parse/table_hybrid_parse.md +52 -0
- autorag-0.2.17/docs/source/data_creation/beta/qa_creation/answer_gen.md +66 -0
- autorag-0.2.17/docs/source/data_creation/beta/qa_creation/filter.md +74 -0
- autorag-0.2.17/docs/source/data_creation/beta/qa_creation/qa_creation.md +165 -0
- autorag-0.2.17/docs/source/data_creation/beta/qa_creation/query_gen.md +132 -0
- autorag-0.2.17/docs/source/data_creation/beta/tutorial.md +152 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/deploy/api_endpoint.md +2 -2
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/index.rst +2 -2
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/generator/vllm.md +26 -1
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/troubleshooting.md +15 -1
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/tutorial.md +1 -1
- {autorag-0.2.15 → autorag-0.2.17}/pyproject.toml +4 -2
- {autorag-0.2.15 → autorag-0.2.17}/requirements.txt +3 -2
- autorag-0.2.17/sample_config/chunk/chunk_full.yaml +23 -0
- autorag-0.2.17/sample_config/parse/parse_full.yaml +20 -0
- autorag-0.2.17/sample_config/parse/parse_hybird.yaml +8 -0
- {autorag-0.2.15 → autorag-0.2.17}/sample_config/simple_ollama.yaml +1 -0
- autorag-0.2.17/tests/autorag/data/beta/filter/test_dontknow.py +143 -0
- autorag-0.2.17/tests/autorag/data/beta/generation_gt/base_test_generation_gt.py +32 -0
- autorag-0.2.17/tests/autorag/data/beta/generation_gt/test_llama_index_gen_gt.py +40 -0
- autorag-0.2.17/tests/autorag/data/beta/generation_gt/test_openai_gen_gt.py +91 -0
- autorag-0.2.17/tests/autorag/data/beta/query/base_test_query_gen.py +32 -0
- autorag-0.2.17/tests/autorag/data/beta/query/test_llama_gen_query.py +60 -0
- autorag-0.2.17/tests/autorag/data/beta/query/test_openai_gen_query.py +116 -0
- autorag-0.2.17/tests/autorag/data/beta/test_data_creation_piepline.py +82 -0
- autorag-0.2.17/tests/autorag/data/beta/test_sample.py +31 -0
- autorag-0.2.17/tests/autorag/data/beta/test_schema.py +186 -0
- autorag-0.2.17/tests/autorag/data/chunk/test_chunk_base.py +174 -0
- autorag-0.2.17/tests/autorag/data/chunk/test_chunk_run.py +19 -0
- autorag-0.2.17/tests/autorag/data/chunk/test_langchain_chunk.py +88 -0
- autorag-0.2.17/tests/autorag/data/chunk/test_llama_index_chunk.py +138 -0
- autorag-0.2.17/tests/autorag/data/parse/test_clova.py +132 -0
- autorag-0.2.17/tests/autorag/data/parse/test_langchain_parse.py +192 -0
- autorag-0.2.17/tests/autorag/data/parse/test_llamaparse.py +65 -0
- autorag-0.2.17/tests/autorag/data/parse/test_parse_base.py +94 -0
- autorag-0.2.17/tests/autorag/data/parse/test_parse_run.py +21 -0
- autorag-0.2.17/tests/autorag/data/parse/test_table_hybrid_parse.py +111 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/data/qacreation/test_base_qacreation.py +22 -1
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/evaluate/metric/test_generation_metric.py +20 -5
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/evaluate/metric/test_retrieval_contents_metric.py +13 -11
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/evaluate/metric/test_retrieval_metric.py +11 -8
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/evaluate/test_generation_evaluate.py +14 -3
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/evaluate/test_retrieval_contents_evaluate.py +4 -3
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/evaluate/test_retrieval_evaluate.py +6 -7
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/generator/test_openai.py +4 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passageaugmenter/test_prev_next_augmenter.py +10 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passageaugmenter/test_run_passage_augmenter.py +8 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagefilter/test_passage_filter_run.py +8 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagefilter/test_similarity_percentile_cutoff.py +15 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagefilter/test_similarity_threshold_cutoff.py +15 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_cohere_reranker.py +2 -2
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_jina_reranker.py +2 -2
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_passage_reranker_base.py +5 -5
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_rankgpt.py +28 -1
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_time_reranker.py +3 -3
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/promptmaker/test_prompt_maker_run.py +5 -2
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/queryexpansion/test_hyde.py +1 -2
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/queryexpansion/test_multi_query_expansion.py +1 -2
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/queryexpansion/test_query_decompose.py +1 -2
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/queryexpansion/test_query_expansion_run.py +5 -2
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/retrieval/test_hybrid_base.py +2 -2
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/retrieval/test_hybrid_rrf.py +9 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/retrieval/test_run_retrieval_node.py +14 -1
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/retrieval/test_vectordb.py +41 -6
- autorag-0.2.17/tests/autorag/schema/test_metricinput_schema.py +57 -0
- autorag-0.2.17/tests/autorag/test_chunker.py +61 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/test_cli.py +2 -3
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/test_deploy.py +8 -13
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/test_evaluator.py +13 -5
- autorag-0.2.17/tests/autorag/test_parser.py +66 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/test_validator.py +1 -1
- {autorag-0.2.15 → autorag-0.2.17}/tests/mock.py +12 -1
- autorag-0.2.17/tests/resources/chunk_data/sample_parsed.parquet +0 -0
- autorag-0.2.17/tests/resources/parse_data/all_files/baseball_1.pdf +0 -0
- autorag-0.2.17/tests/resources/parse_data/all_files/csv_sample.csv +6 -0
- autorag-0.2.17/tests/resources/parse_data/clova_data/result_sample.json +4513 -0
- autorag-0.2.17/tests/resources/parse_data/clova_data/result_table.txt +31 -0
- autorag-0.2.17/tests/resources/parse_data/clova_data/result_text.txt +18 -0
- autorag-0.2.17/tests/resources/parse_data/csv_data/csv_sample.csv +6 -0
- autorag-0.2.17/tests/resources/parse_data/eng_text/baseball_1.pdf +0 -0
- autorag-0.2.17/tests/resources/parse_data/eng_text/baseball_2.pdf +0 -0
- autorag-0.2.17/tests/resources/parse_data/html_data/html_sample.html +38 -0
- autorag-0.2.17/tests/resources/parse_data/hybrid_data/nfl_rulebook_both.pdf +0 -0
- autorag-0.2.17/tests/resources/parse_data/json_data/json_sample.json +7 -0
- autorag-0.2.17/tests/resources/parse_data/korean_table/only_table/kbo_only_table.pdf +0 -0
- autorag-0.2.17/tests/resources/parse_data/korean_table/table_text/kbo_table_text.pdf +0 -0
- autorag-0.2.17/tests/resources/parse_data/korean_text/korean_texts_two_page.pdf +0 -0
- autorag-0.2.17/tests/resources/parse_data/markdown_data/markdown_sample.md +49 -0
- autorag-0.2.17/tests/resources/parse_data/xml_data/xml_sample.xml +132 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/3/config.yaml +1 -1
- autorag-0.2.17/tests/resources/result_project/resources/chroma/6595d304-5270-4d9f-a267-c191366804ce/link_lists.bin +0 -0
- autorag-0.2.17/tests/resources/simple_chunk.yaml +3 -0
- autorag-0.2.17/tests/resources/simple_mock.yaml +15 -0
- autorag-0.2.17/tests/resources/simple_parse.yaml +3 -0
- autorag-0.2.15/autorag/VERSION +0 -1
- autorag-0.2.15/autorag/data/utils/util.py +0 -49
- autorag-0.2.15/autorag/evaluation/metric/util.py +0 -9
- autorag-0.2.15/autorag/nodes/queryexpansion/run.py +0 -262
- autorag-0.2.15/docs/source/_static/data_creation.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/.github/FUNDING.yml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/.github/dependabot.yml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/.github/workflows/publish.yml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/.github/workflows/sphinx.yml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/.gitignore +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/.pre-commit-config.yaml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/AutoRAG.egg-info/dependency_links.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/AutoRAG.egg-info/entry_points.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/AutoRAG.egg-info/top_level.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/CODE_OF_CONDUCT.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/LICENSE +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/README.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/cli.py +0 -0
- {autorag-0.2.15/autorag/data → autorag-0.2.17/autorag/data/beta/filter}/__init__.py +0 -0
- {autorag-0.2.15/autorag/data/utils → autorag-0.2.17/autorag/data/beta/generation_gt}/__init__.py +0 -0
- {autorag-0.2.15/autorag/nodes → autorag-0.2.17/autorag/data/beta/query}/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/data/corpus/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/data/corpus/langchain.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/data/qacreation/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/data/qacreation/base.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/data/qacreation/llama_index.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/data/qacreation/llama_index_default_prompt.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/data/qacreation/ragas.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/data/qacreation/simple.py +0 -0
- {autorag-0.2.15/autorag/nodes/passagereranker/tart → autorag-0.2.17/autorag/data/utils}/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/evaluation/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/evaluation/metric/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/evaluation/metric/g_eval_prompts/coh_detailed.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/evaluation/metric/g_eval_prompts/con_detailed.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/evaluation/metric/g_eval_prompts/flu_detailed.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/evaluation/metric/g_eval_prompts/rel_detailed.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/evaluation/util.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/evaluator.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/node_line.py +0 -0
- /autorag-0.2.15/tests/resources/result_project/resources/chroma/6595d304-5270-4d9f-a267-c191366804ce/link_lists.bin → /autorag-0.2.17/autorag/nodes/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/generator/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/generator/llama_index_llm.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/generator/openai_llm.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passageaugmenter/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passageaugmenter/base.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passageaugmenter/pass_passage_augmenter.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passageaugmenter/prev_next_augmenter.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagecompressor/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagecompressor/base.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagecompressor/longllmlingua.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagecompressor/pass_compressor.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagecompressor/refine.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagecompressor/tree_summarize.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagefilter/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagefilter/base.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagefilter/pass_passage_filter.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagefilter/percentile_cutoff.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagefilter/recency.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagefilter/similarity_percentile_cutoff.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagefilter/similarity_threshold_cutoff.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagefilter/threshold_cutoff.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/base.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/cohere.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/colbert.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/flag_embedding.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/flag_embedding_llm.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/jina.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/koreranker.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/monot5.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/pass_reranker.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/rankgpt.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/sentence_transformer.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/tart/modeling_enc_t5.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/tart/tart.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/tart/tokenization_enc_t5.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/time_reranker.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/passagereranker/upr.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/promptmaker/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/promptmaker/base.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/promptmaker/fstring.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/promptmaker/long_context_reorder.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/promptmaker/window_replacement.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/queryexpansion/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/queryexpansion/base.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/queryexpansion/hyde.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/queryexpansion/multi_query_expansion.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/queryexpansion/pass_query_expansion.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/queryexpansion/query_decompose.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/retrieval/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/retrieval/base.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/retrieval/bm25.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/retrieval/hybrid_cc.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/nodes/retrieval/hybrid_rrf.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/schema/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/schema/module.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/schema/node.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/strategy.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/utils/__init__.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/utils/preprocess.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/autorag/validator.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/Makefile +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/make.bat +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/requirements.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/CNAME +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/data_folder.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/dcg.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/f1_score.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/map.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/mrr.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/ndcg.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/ndcg_formula.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/node_folder.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/node_line_folder.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/node_line_summary.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/node_lines.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/node_summary.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/normal_distribution.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/project_folder_example.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/project_folders.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/resources_folder.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/roadmap/RAG_paradigms.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/roadmap/advanced_RAG.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/roadmap/cycle.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/roadmap/merger.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/roadmap/node_line_modular.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/roadmap/policy.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/samsung_sundae.jpeg +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/score_fusion.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/trial_folder.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/trial_json.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/trial_summary.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/web_interface.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/_static/web_interface_gradio.png +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.data.corpus.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.data.qacreation.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.data.utils.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.evaluation.metric.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.evaluation.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.nodes.generator.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.nodes.passageaugmenter.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.nodes.passagecompressor.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.nodes.passagefilter.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.nodes.passagereranker.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.nodes.passagereranker.tart.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.nodes.promptmaker.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.nodes.queryexpansion.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.nodes.retrieval.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.nodes.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.schema.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/autorag.utils.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/api_spec/modules.rst +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/conf.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/data_creation/data_format.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/data_creation/ragas.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/data_creation/tutorial.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/deploy/web.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/evaluate_metrics/generation.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/evaluate_metrics/retrieval.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/evaluate_metrics/retrieval_contents.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/install.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/local_model.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/generator/generator.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/generator/llama_index_llm.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/generator/openai_llm.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/index.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_augmenter/passage_augmenter.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_augmenter/prev_next_augmenter.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_compressor/longllmlingua.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_compressor/passage_compressor.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_compressor/refine.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_compressor/tree_summarize.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_filter/passage_filter.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_filter/percentile_cutoff.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_filter/recency_filter.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_filter/similarity_percentile_cutoff.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_filter/similarity_threshold_cutoff.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_filter/threshold_cutoff.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_reranker/cohere.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_reranker/colbert.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_reranker/flag_embedding_llm_reranker.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_reranker/flag_embedding_reranker.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_reranker/jina_reranker.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_reranker/koreranker.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_reranker/monot5.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_reranker/passage_reranker.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_reranker/rankgpt.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_reranker/sentence_transformer_reranker.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_reranker/tart.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_reranker/time_reranker.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/passage_reranker/upr.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/prompt_maker/fstring.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/prompt_maker/long_context_reorder.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/prompt_maker/prompt_maker.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/prompt_maker/window_replacement.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/query_expansion/hyde.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/query_expansion/multi_query_expansion.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/query_expansion/query_decompose.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/query_expansion/query_expansion.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/retrieval/bm25.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/retrieval/hybrid_cc.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/retrieval/hybrid_rrf.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/retrieval/retrieval.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/nodes/retrieval/vectordb.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/optimization/custom_config.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/optimization/folder_structure.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/optimization/optimization.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/optimization/strategies.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/roadmap/modular_rag.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/docs/source/structure.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/sample_config/compact_local.yaml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/sample_config/compact_openai.yaml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/sample_config/config_korean.yaml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/sample_config/extracted_sample.yaml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/sample_config/full.yaml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/sample_config/simple_local.yaml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/sample_config/simple_openai.yaml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/sample_dataset/README.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/sample_dataset/eli5/load_eli5_dataset.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/sample_dataset/hotpotqa/load_hotpotqa_dataset.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/sample_dataset/msmarco/load_msmarco_dataset.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/sample_dataset/triviaqa/load_triviaqa_dataset.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/setup.cfg +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/data/corpus/test_base.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/data/corpus/test_langchain.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/data/corpus/test_llama_index_corpus.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/data/qacreation/test_llama_index_qacreation.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/data/qacreation/test_ragas_qa_creation.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/data/qacreation/test_simple.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/evaluate/test_evaluate_util.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/generator/test_generator_base.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/generator/test_llama_index_llm.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/generator/test_run_generator_node.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/generator/test_vllm.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passageaugmenter/test_base_passage_augmenter.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passageaugmenter/test_pass_passage_augmenter.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagecompressor/test_base_passage_compressor.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagecompressor/test_longllmlingua.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagecompressor/test_pass_compressor.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagecompressor/test_refine.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagecompressor/test_run_passage_compressor_node.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagecompressor/test_tree_summarize.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagefilter/test_pass_passage_filter.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagefilter/test_passage_filter_base.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagefilter/test_percentile_cutoff.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagefilter/test_recency_filter.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagefilter/test_threshold_cutoff.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_colbert_reranker.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_flag_embedding.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_flag_embedding_llm.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_koreranker.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_monot5.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_pass_reranker.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_passage_reranker_run.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_sentence_transformer.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_tart.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/passagereranker/test_upr.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/promptmaker/test_fstring.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/promptmaker/test_long_context_reorder.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/promptmaker/test_prompt_maker_base.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/promptmaker/test_window_replacement.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/queryexpansion/test_pass_query_expansion.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/queryexpansion/test_query_expansion_base.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/retrieval/test_bm25.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/retrieval/test_hybrid_cc.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/nodes/retrieval/test_retrieval_base.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/schema/test_module_schema.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/schema/test_node_schema.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/test_dashboard.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/test_strategy.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/test_support.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/test_web.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/utils/test_preprocess.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/autorag/utils/test_util.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/conftest.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/delete_tests.py +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/requirements.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/README.md +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/corpus_data_sample.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/data_creation/raw_dir/sample1.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/data_creation/raw_dir/sample2.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/data_creation/raw_dir/sample3.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/full.yaml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/qa_data_sample.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/qa_gen_prompts/prompt1.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/qa_gen_prompts/prompt2.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/qa_gen_prompts/prompt3.txt +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/qa_test_data_sample.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/config.yaml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/post_retrieve_node_line/generator/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/post_retrieve_node_line/generator/1.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/post_retrieve_node_line/generator/2.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/post_retrieve_node_line/generator/3.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/post_retrieve_node_line/generator/4.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/post_retrieve_node_line/generator/5.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/post_retrieve_node_line/generator/best_5.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/post_retrieve_node_line/generator/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/post_retrieve_node_line/prompt_maker/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/post_retrieve_node_line/prompt_maker/1.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/post_retrieve_node_line/prompt_maker/best_0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/post_retrieve_node_line/prompt_maker/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/post_retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/1.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/2.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/best_0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/pre_retrieve_node_line/query_expansion/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/pre_retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/retrieve_node_line/passage_compressor/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/retrieve_node_line/passage_compressor/best_0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/retrieve_node_line/passage_compressor/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/retrieve_node_line/passage_reranker/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/retrieve_node_line/passage_reranker/1.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/retrieve_node_line/passage_reranker/best_0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/retrieve_node_line/passage_reranker/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/retrieve_node_line/retrieval/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/retrieve_node_line/retrieval/1.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/retrieve_node_line/retrieval/best_0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/retrieve_node_line/retrieval/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/0/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/config.yaml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/1.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/2.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/best_0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/pre_retrieve_node_line/query_expansion/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/pre_retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/retrieve_node_line/passage_filter/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/retrieve_node_line/passage_reranker/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/retrieve_node_line/passage_reranker/1.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/retrieve_node_line/passage_reranker/best_0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/retrieve_node_line/passage_reranker/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/retrieve_node_line/retrieval/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/retrieve_node_line/retrieval/1.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/retrieve_node_line/retrieval/best_0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/1/retrieve_node_line/retrieval/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/config.yaml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/post_retrieve_node_line/prompt_maker/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/1.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/2.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/best_0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/pre_retrieve_node_line/query_expansion/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/pre_retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/retrieve_node_line/passage_compressor/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/retrieve_node_line/passage_compressor/best_0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/retrieve_node_line/passage_compressor/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/retrieve_node_line/passage_reranker/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/retrieve_node_line/passage_reranker/1.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/retrieve_node_line/passage_reranker/best_0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/retrieve_node_line/passage_reranker/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/retrieve_node_line/retrieval/0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/retrieve_node_line/retrieval/1.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/retrieve_node_line/retrieval/best_0.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/retrieve_node_line/retrieval/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/2/retrieve_node_line/summary.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/best.yaml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/data/corpus.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/data/qa.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/resources/bm25_porter_stemmer.pkl +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/resources/chroma/6595d304-5270-4d9f-a267-c191366804ce/data_level0.bin +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/resources/chroma/6595d304-5270-4d9f-a267-c191366804ce/header.bin +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/resources/chroma/6595d304-5270-4d9f-a267-c191366804ce/length.bin +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/resources/chroma/chroma.sqlite3 +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/result_project/trial.json +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/sample_contents_nqa.csv +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/sample_project/data/corpus.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/sample_project/data/qa.parquet +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/sample_project/resources/bm25_gpt2.pkl +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/sample_project/resources/bm25_porter_stemmer.pkl +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/simple.yaml +0 -0
- {autorag-0.2.15 → autorag-0.2.17}/tests/resources/test_bm25_retrieval.pkl +0 -0
|
@@ -26,12 +26,26 @@ jobs:
|
|
|
26
26
|
- name: Install gcc
|
|
27
27
|
run: |
|
|
28
28
|
sudo apt-get install gcc
|
|
29
|
+
- name: Install poppler-utils
|
|
30
|
+
run: |
|
|
31
|
+
sudo apt-get install poppler-utils
|
|
32
|
+
- name: Install tesseract
|
|
33
|
+
run: |
|
|
34
|
+
sudo apt-get install tesseract-ocr
|
|
29
35
|
- name: Install AutoRAG
|
|
30
36
|
run: |
|
|
31
37
|
pip install -e '.[all]'
|
|
32
38
|
- name: Install dependencies
|
|
33
39
|
run: |
|
|
34
40
|
pip install -r tests/requirements.txt
|
|
41
|
+
- name: Upgrade pyOpenSSL
|
|
42
|
+
run: |
|
|
43
|
+
pip install --upgrade pyOpenSSL
|
|
44
|
+
- name: Install NLTK and download model
|
|
45
|
+
run: |
|
|
46
|
+
pip install nltk
|
|
47
|
+
python3 -c "import nltk; nltk.download('punkt_tab')"
|
|
48
|
+
python3 -c "import nltk; nltk.download('averaged_perceptron_tagger_eng')"
|
|
35
49
|
- name: delete tests package
|
|
36
50
|
run: python3 tests/delete_tests.py
|
|
37
51
|
- name: Run tests
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: AutoRAG
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.17
|
|
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
|
|
@@ -236,8 +236,7 @@ Requires-Dist: rouge_score
|
|
|
236
236
|
Requires-Dist: rich
|
|
237
237
|
Requires-Dist: chromadb>=0.5.0
|
|
238
238
|
Requires-Dist: click
|
|
239
|
-
Requires-Dist:
|
|
240
|
-
Requires-Dist: uvicorn
|
|
239
|
+
Requires-Dist: Flask
|
|
241
240
|
Requires-Dist: torch
|
|
242
241
|
Requires-Dist: sentencepiece
|
|
243
242
|
Requires-Dist: guidance
|
|
@@ -263,20 +262,32 @@ Requires-Dist: llama-index-retrievers-bm25
|
|
|
263
262
|
Requires-Dist: streamlit
|
|
264
263
|
Requires-Dist: gradio
|
|
265
264
|
Requires-Dist: langchain-core>=0.1.6
|
|
265
|
+
Requires-Dist: langchain_unstructured
|
|
266
|
+
Requires-Dist: langchain-upstage
|
|
266
267
|
Requires-Dist: panel
|
|
267
268
|
Requires-Dist: seaborn
|
|
268
269
|
Requires-Dist: ipykernel
|
|
269
270
|
Requires-Dist: ipywidgets
|
|
270
271
|
Requires-Dist: ipywidgets_bokeh
|
|
271
272
|
Provides-Extra: ko
|
|
272
|
-
Requires-Dist: kiwipiepy; extra == "ko"
|
|
273
|
+
Requires-Dist: kiwipiepy>=0.18.0; extra == "ko"
|
|
273
274
|
Requires-Dist: konlpy; extra == "ko"
|
|
274
275
|
Provides-Extra: dev
|
|
275
276
|
Requires-Dist: ruff; extra == "dev"
|
|
276
277
|
Requires-Dist: pre-commit; extra == "dev"
|
|
278
|
+
Provides-Extra: parse
|
|
279
|
+
Requires-Dist: PyMuPDF; extra == "parse"
|
|
280
|
+
Requires-Dist: pdfminer.six; extra == "parse"
|
|
281
|
+
Requires-Dist: pdfplumber; extra == "parse"
|
|
282
|
+
Requires-Dist: unstructured; extra == "parse"
|
|
283
|
+
Requires-Dist: jq; extra == "parse"
|
|
284
|
+
Requires-Dist: unstructured[pdf]; extra == "parse"
|
|
285
|
+
Requires-Dist: PyPDF2<3.0; extra == "parse"
|
|
286
|
+
Requires-Dist: pdf2image; extra == "parse"
|
|
277
287
|
Provides-Extra: all
|
|
278
288
|
Requires-Dist: AutoRAG[ko]; extra == "all"
|
|
279
289
|
Requires-Dist: AutoRAG[dev]; extra == "all"
|
|
290
|
+
Requires-Dist: AutoRAG[parse]; extra == "all"
|
|
280
291
|
|
|
281
292
|
# AutoRAG
|
|
282
293
|
|
|
@@ -21,19 +21,49 @@ AutoRAG.egg-info/requires.txt
|
|
|
21
21
|
AutoRAG.egg-info/top_level.txt
|
|
22
22
|
autorag/VERSION
|
|
23
23
|
autorag/__init__.py
|
|
24
|
+
autorag/chunker.py
|
|
24
25
|
autorag/cli.py
|
|
25
26
|
autorag/dashboard.py
|
|
26
27
|
autorag/deploy.py
|
|
27
28
|
autorag/evaluator.py
|
|
28
29
|
autorag/node_line.py
|
|
30
|
+
autorag/parser.py
|
|
29
31
|
autorag/strategy.py
|
|
30
32
|
autorag/support.py
|
|
31
33
|
autorag/validator.py
|
|
32
34
|
autorag/web.py
|
|
33
35
|
autorag/data/__init__.py
|
|
36
|
+
autorag/data/beta/__init__.py
|
|
37
|
+
autorag/data/beta/extract_evidence.py
|
|
38
|
+
autorag/data/beta/sample.py
|
|
39
|
+
autorag/data/beta/schema.py
|
|
40
|
+
autorag/data/beta/filter/__init__.py
|
|
41
|
+
autorag/data/beta/filter/dontknow.py
|
|
42
|
+
autorag/data/beta/filter/prompt.py
|
|
43
|
+
autorag/data/beta/generation_gt/__init__.py
|
|
44
|
+
autorag/data/beta/generation_gt/base.py
|
|
45
|
+
autorag/data/beta/generation_gt/llama_index_gen_gt.py
|
|
46
|
+
autorag/data/beta/generation_gt/openai_gen_gt.py
|
|
47
|
+
autorag/data/beta/generation_gt/prompt.py
|
|
48
|
+
autorag/data/beta/query/__init__.py
|
|
49
|
+
autorag/data/beta/query/llama_gen_query.py
|
|
50
|
+
autorag/data/beta/query/openai_gen_query.py
|
|
51
|
+
autorag/data/beta/query/prompt.py
|
|
52
|
+
autorag/data/chunk/__init__.py
|
|
53
|
+
autorag/data/chunk/base.py
|
|
54
|
+
autorag/data/chunk/langchain_chunk.py
|
|
55
|
+
autorag/data/chunk/llama_index_chunk.py
|
|
56
|
+
autorag/data/chunk/run.py
|
|
34
57
|
autorag/data/corpus/__init__.py
|
|
35
58
|
autorag/data/corpus/langchain.py
|
|
36
59
|
autorag/data/corpus/llama_index.py
|
|
60
|
+
autorag/data/parse/__init__.py
|
|
61
|
+
autorag/data/parse/base.py
|
|
62
|
+
autorag/data/parse/clova.py
|
|
63
|
+
autorag/data/parse/langchain_parse.py
|
|
64
|
+
autorag/data/parse/llamaparse.py
|
|
65
|
+
autorag/data/parse/run.py
|
|
66
|
+
autorag/data/parse/table_hybrid_parse.py
|
|
37
67
|
autorag/data/qacreation/__init__.py
|
|
38
68
|
autorag/data/qacreation/base.py
|
|
39
69
|
autorag/data/qacreation/llama_index.py
|
|
@@ -124,6 +154,7 @@ autorag/nodes/retrieval/hybrid_rrf.py
|
|
|
124
154
|
autorag/nodes/retrieval/run.py
|
|
125
155
|
autorag/nodes/retrieval/vectordb.py
|
|
126
156
|
autorag/schema/__init__.py
|
|
157
|
+
autorag/schema/metricinput.py
|
|
127
158
|
autorag/schema/module.py
|
|
128
159
|
autorag/schema/node.py
|
|
129
160
|
autorag/utils/__init__.py
|
|
@@ -170,7 +201,12 @@ docs/source/_static/roadmap/cycle.png
|
|
|
170
201
|
docs/source/_static/roadmap/merger.png
|
|
171
202
|
docs/source/_static/roadmap/node_line_modular.png
|
|
172
203
|
docs/source/_static/roadmap/policy.png
|
|
204
|
+
docs/source/api_spec/autorag.data.beta.generation_gt.rst
|
|
205
|
+
docs/source/api_spec/autorag.data.beta.query.rst
|
|
206
|
+
docs/source/api_spec/autorag.data.beta.rst
|
|
207
|
+
docs/source/api_spec/autorag.data.beta.schema.rst
|
|
173
208
|
docs/source/api_spec/autorag.data.corpus.rst
|
|
209
|
+
docs/source/api_spec/autorag.data.parse.rst
|
|
174
210
|
docs/source/api_spec/autorag.data.qacreation.rst
|
|
175
211
|
docs/source/api_spec/autorag.data.rst
|
|
176
212
|
docs/source/api_spec/autorag.data.utils.rst
|
|
@@ -193,6 +229,20 @@ docs/source/api_spec/modules.rst
|
|
|
193
229
|
docs/source/data_creation/data_format.md
|
|
194
230
|
docs/source/data_creation/ragas.md
|
|
195
231
|
docs/source/data_creation/tutorial.md
|
|
232
|
+
docs/source/data_creation/beta/data_creation.md
|
|
233
|
+
docs/source/data_creation/beta/tutorial.md
|
|
234
|
+
docs/source/data_creation/beta/chunk/chunk.md
|
|
235
|
+
docs/source/data_creation/beta/chunk/langchain_chunk.md
|
|
236
|
+
docs/source/data_creation/beta/chunk/llama_index_chunk.md
|
|
237
|
+
docs/source/data_creation/beta/parse/clova.md
|
|
238
|
+
docs/source/data_creation/beta/parse/langchain_parse.md
|
|
239
|
+
docs/source/data_creation/beta/parse/llama_parse.md
|
|
240
|
+
docs/source/data_creation/beta/parse/parse.md
|
|
241
|
+
docs/source/data_creation/beta/parse/table_hybrid_parse.md
|
|
242
|
+
docs/source/data_creation/beta/qa_creation/answer_gen.md
|
|
243
|
+
docs/source/data_creation/beta/qa_creation/filter.md
|
|
244
|
+
docs/source/data_creation/beta/qa_creation/qa_creation.md
|
|
245
|
+
docs/source/data_creation/beta/qa_creation/query_gen.md
|
|
196
246
|
docs/source/deploy/api_endpoint.md
|
|
197
247
|
docs/source/deploy/web.md
|
|
198
248
|
docs/source/evaluate_metrics/generation.md
|
|
@@ -254,6 +304,9 @@ sample_config/full.yaml
|
|
|
254
304
|
sample_config/simple_local.yaml
|
|
255
305
|
sample_config/simple_ollama.yaml
|
|
256
306
|
sample_config/simple_openai.yaml
|
|
307
|
+
sample_config/chunk/chunk_full.yaml
|
|
308
|
+
sample_config/parse/parse_full.yaml
|
|
309
|
+
sample_config/parse/parse_hybird.yaml
|
|
257
310
|
sample_dataset/README.md
|
|
258
311
|
sample_dataset/eli5/load_eli5_dataset.py
|
|
259
312
|
sample_dataset/hotpotqa/load_hotpotqa_dataset.py
|
|
@@ -263,17 +316,39 @@ tests/conftest.py
|
|
|
263
316
|
tests/delete_tests.py
|
|
264
317
|
tests/mock.py
|
|
265
318
|
tests/requirements.txt
|
|
319
|
+
tests/autorag/test_chunker.py
|
|
266
320
|
tests/autorag/test_cli.py
|
|
267
321
|
tests/autorag/test_dashboard.py
|
|
268
322
|
tests/autorag/test_deploy.py
|
|
269
323
|
tests/autorag/test_evaluator.py
|
|
324
|
+
tests/autorag/test_parser.py
|
|
270
325
|
tests/autorag/test_strategy.py
|
|
271
326
|
tests/autorag/test_support.py
|
|
272
327
|
tests/autorag/test_validator.py
|
|
273
328
|
tests/autorag/test_web.py
|
|
329
|
+
tests/autorag/data/beta/test_data_creation_piepline.py
|
|
330
|
+
tests/autorag/data/beta/test_sample.py
|
|
331
|
+
tests/autorag/data/beta/test_schema.py
|
|
332
|
+
tests/autorag/data/beta/filter/test_dontknow.py
|
|
333
|
+
tests/autorag/data/beta/generation_gt/base_test_generation_gt.py
|
|
334
|
+
tests/autorag/data/beta/generation_gt/test_llama_index_gen_gt.py
|
|
335
|
+
tests/autorag/data/beta/generation_gt/test_openai_gen_gt.py
|
|
336
|
+
tests/autorag/data/beta/query/base_test_query_gen.py
|
|
337
|
+
tests/autorag/data/beta/query/test_llama_gen_query.py
|
|
338
|
+
tests/autorag/data/beta/query/test_openai_gen_query.py
|
|
339
|
+
tests/autorag/data/chunk/test_chunk_base.py
|
|
340
|
+
tests/autorag/data/chunk/test_chunk_run.py
|
|
341
|
+
tests/autorag/data/chunk/test_langchain_chunk.py
|
|
342
|
+
tests/autorag/data/chunk/test_llama_index_chunk.py
|
|
274
343
|
tests/autorag/data/corpus/test_base.py
|
|
275
344
|
tests/autorag/data/corpus/test_langchain.py
|
|
276
345
|
tests/autorag/data/corpus/test_llama_index_corpus.py
|
|
346
|
+
tests/autorag/data/parse/test_clova.py
|
|
347
|
+
tests/autorag/data/parse/test_langchain_parse.py
|
|
348
|
+
tests/autorag/data/parse/test_llamaparse.py
|
|
349
|
+
tests/autorag/data/parse/test_parse_base.py
|
|
350
|
+
tests/autorag/data/parse/test_parse_run.py
|
|
351
|
+
tests/autorag/data/parse/test_table_hybrid_parse.py
|
|
277
352
|
tests/autorag/data/qacreation/test_base_qacreation.py
|
|
278
353
|
tests/autorag/data/qacreation/test_llama_index_qacreation.py
|
|
279
354
|
tests/autorag/data/qacreation/test_ragas_qa_creation.py
|
|
@@ -341,6 +416,7 @@ tests/autorag/nodes/retrieval/test_hybrid_rrf.py
|
|
|
341
416
|
tests/autorag/nodes/retrieval/test_retrieval_base.py
|
|
342
417
|
tests/autorag/nodes/retrieval/test_run_retrieval_node.py
|
|
343
418
|
tests/autorag/nodes/retrieval/test_vectordb.py
|
|
419
|
+
tests/autorag/schema/test_metricinput_schema.py
|
|
344
420
|
tests/autorag/schema/test_module_schema.py
|
|
345
421
|
tests/autorag/schema/test_node_schema.py
|
|
346
422
|
tests/autorag/utils/test_preprocess.py
|
|
@@ -352,10 +428,30 @@ tests/resources/qa_data_sample.parquet
|
|
|
352
428
|
tests/resources/qa_test_data_sample.parquet
|
|
353
429
|
tests/resources/sample_contents_nqa.csv
|
|
354
430
|
tests/resources/simple.yaml
|
|
431
|
+
tests/resources/simple_chunk.yaml
|
|
432
|
+
tests/resources/simple_mock.yaml
|
|
433
|
+
tests/resources/simple_parse.yaml
|
|
355
434
|
tests/resources/test_bm25_retrieval.pkl
|
|
435
|
+
tests/resources/chunk_data/sample_parsed.parquet
|
|
356
436
|
tests/resources/data_creation/raw_dir/sample1.txt
|
|
357
437
|
tests/resources/data_creation/raw_dir/sample2.txt
|
|
358
438
|
tests/resources/data_creation/raw_dir/sample3.txt
|
|
439
|
+
tests/resources/parse_data/all_files/baseball_1.pdf
|
|
440
|
+
tests/resources/parse_data/all_files/csv_sample.csv
|
|
441
|
+
tests/resources/parse_data/clova_data/result_sample.json
|
|
442
|
+
tests/resources/parse_data/clova_data/result_table.txt
|
|
443
|
+
tests/resources/parse_data/clova_data/result_text.txt
|
|
444
|
+
tests/resources/parse_data/csv_data/csv_sample.csv
|
|
445
|
+
tests/resources/parse_data/eng_text/baseball_1.pdf
|
|
446
|
+
tests/resources/parse_data/eng_text/baseball_2.pdf
|
|
447
|
+
tests/resources/parse_data/html_data/html_sample.html
|
|
448
|
+
tests/resources/parse_data/hybrid_data/nfl_rulebook_both.pdf
|
|
449
|
+
tests/resources/parse_data/json_data/json_sample.json
|
|
450
|
+
tests/resources/parse_data/korean_table/only_table/kbo_only_table.pdf
|
|
451
|
+
tests/resources/parse_data/korean_table/table_text/kbo_table_text.pdf
|
|
452
|
+
tests/resources/parse_data/korean_text/korean_texts_two_page.pdf
|
|
453
|
+
tests/resources/parse_data/markdown_data/markdown_sample.md
|
|
454
|
+
tests/resources/parse_data/xml_data/xml_sample.xml
|
|
359
455
|
tests/resources/qa_gen_prompts/prompt1.txt
|
|
360
456
|
tests/resources/qa_gen_prompts/prompt2.txt
|
|
361
457
|
tests/resources/qa_gen_prompts/prompt3.txt
|
|
@@ -14,8 +14,7 @@ rouge_score
|
|
|
14
14
|
rich
|
|
15
15
|
chromadb>=0.5.0
|
|
16
16
|
click
|
|
17
|
-
|
|
18
|
-
uvicorn
|
|
17
|
+
Flask
|
|
19
18
|
torch
|
|
20
19
|
sentencepiece
|
|
21
20
|
guidance
|
|
@@ -41,6 +40,8 @@ llama-index-retrievers-bm25
|
|
|
41
40
|
streamlit
|
|
42
41
|
gradio
|
|
43
42
|
langchain-core>=0.1.6
|
|
43
|
+
langchain_unstructured
|
|
44
|
+
langchain-upstage
|
|
44
45
|
panel
|
|
45
46
|
seaborn
|
|
46
47
|
ipykernel
|
|
@@ -50,11 +51,22 @@ ipywidgets_bokeh
|
|
|
50
51
|
[all]
|
|
51
52
|
AutoRAG[ko]
|
|
52
53
|
AutoRAG[dev]
|
|
54
|
+
AutoRAG[parse]
|
|
53
55
|
|
|
54
56
|
[dev]
|
|
55
57
|
ruff
|
|
56
58
|
pre-commit
|
|
57
59
|
|
|
58
60
|
[ko]
|
|
59
|
-
kiwipiepy
|
|
61
|
+
kiwipiepy>=0.18.0
|
|
60
62
|
konlpy
|
|
63
|
+
|
|
64
|
+
[parse]
|
|
65
|
+
PyMuPDF
|
|
66
|
+
pdfminer.six
|
|
67
|
+
pdfplumber
|
|
68
|
+
unstructured
|
|
69
|
+
jq
|
|
70
|
+
unstructured[pdf]
|
|
71
|
+
PyPDF2<3.0
|
|
72
|
+
pdf2image
|
|
@@ -50,7 +50,7 @@ Here's a guide to set environment.
|
|
|
50
50
|
4. Make a new virtual environment (Highly Recommended)
|
|
51
51
|
5. Install AutoRAG as development version. `pip install -e '.[all]'`
|
|
52
52
|
6. Install test dependencies `pip install -r tests/requirements.txt`
|
|
53
|
-
7. Write `pytest.ini` file and add env variable for running tests.
|
|
53
|
+
7. Write `pytest.ini` file and add env variable for running tests. (We do not need OPENAI_API_KEY at GitHub actions)
|
|
54
54
|
```ini
|
|
55
55
|
[pytest]
|
|
56
56
|
env =
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: AutoRAG
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.17
|
|
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
|
|
@@ -236,8 +236,7 @@ Requires-Dist: rouge_score
|
|
|
236
236
|
Requires-Dist: rich
|
|
237
237
|
Requires-Dist: chromadb>=0.5.0
|
|
238
238
|
Requires-Dist: click
|
|
239
|
-
Requires-Dist:
|
|
240
|
-
Requires-Dist: uvicorn
|
|
239
|
+
Requires-Dist: Flask
|
|
241
240
|
Requires-Dist: torch
|
|
242
241
|
Requires-Dist: sentencepiece
|
|
243
242
|
Requires-Dist: guidance
|
|
@@ -263,20 +262,32 @@ Requires-Dist: llama-index-retrievers-bm25
|
|
|
263
262
|
Requires-Dist: streamlit
|
|
264
263
|
Requires-Dist: gradio
|
|
265
264
|
Requires-Dist: langchain-core>=0.1.6
|
|
265
|
+
Requires-Dist: langchain_unstructured
|
|
266
|
+
Requires-Dist: langchain-upstage
|
|
266
267
|
Requires-Dist: panel
|
|
267
268
|
Requires-Dist: seaborn
|
|
268
269
|
Requires-Dist: ipykernel
|
|
269
270
|
Requires-Dist: ipywidgets
|
|
270
271
|
Requires-Dist: ipywidgets_bokeh
|
|
271
272
|
Provides-Extra: ko
|
|
272
|
-
Requires-Dist: kiwipiepy; extra == "ko"
|
|
273
|
+
Requires-Dist: kiwipiepy>=0.18.0; extra == "ko"
|
|
273
274
|
Requires-Dist: konlpy; extra == "ko"
|
|
274
275
|
Provides-Extra: dev
|
|
275
276
|
Requires-Dist: ruff; extra == "dev"
|
|
276
277
|
Requires-Dist: pre-commit; extra == "dev"
|
|
278
|
+
Provides-Extra: parse
|
|
279
|
+
Requires-Dist: PyMuPDF; extra == "parse"
|
|
280
|
+
Requires-Dist: pdfminer.six; extra == "parse"
|
|
281
|
+
Requires-Dist: pdfplumber; extra == "parse"
|
|
282
|
+
Requires-Dist: unstructured; extra == "parse"
|
|
283
|
+
Requires-Dist: jq; extra == "parse"
|
|
284
|
+
Requires-Dist: unstructured[pdf]; extra == "parse"
|
|
285
|
+
Requires-Dist: PyPDF2<3.0; extra == "parse"
|
|
286
|
+
Requires-Dist: pdf2image; extra == "parse"
|
|
277
287
|
Provides-Extra: all
|
|
278
288
|
Requires-Dist: AutoRAG[ko]; extra == "all"
|
|
279
289
|
Requires-Dist: AutoRAG[dev]; extra == "all"
|
|
290
|
+
Requires-Dist: AutoRAG[parse]; extra == "all"
|
|
280
291
|
|
|
281
292
|
# AutoRAG
|
|
282
293
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.2.17
|
|
@@ -2,8 +2,11 @@ import logging
|
|
|
2
2
|
import logging.config
|
|
3
3
|
import os
|
|
4
4
|
import sys
|
|
5
|
+
from random import random
|
|
6
|
+
from typing import List
|
|
5
7
|
|
|
6
8
|
import transformers
|
|
9
|
+
from llama_index.core import MockEmbedding
|
|
7
10
|
from llama_index.core.llms.mock import MockLLM
|
|
8
11
|
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
|
9
12
|
from llama_index.embeddings.openai import OpenAIEmbedding
|
|
@@ -12,6 +15,7 @@ from llama_index.llms.huggingface import HuggingFaceLLM
|
|
|
12
15
|
from llama_index.llms.ollama import Ollama
|
|
13
16
|
from llama_index.llms.openai import OpenAI
|
|
14
17
|
from llama_index.llms.openai_like import OpenAILike
|
|
18
|
+
from langchain.embeddings import OpenAIEmbeddings
|
|
15
19
|
from rich.logging import RichHandler
|
|
16
20
|
|
|
17
21
|
version_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "VERSION")
|
|
@@ -38,7 +42,15 @@ class LazyInit:
|
|
|
38
42
|
return getattr(self._instance, name)
|
|
39
43
|
|
|
40
44
|
|
|
45
|
+
class MockEmbeddingRandom(MockEmbedding):
|
|
46
|
+
"""Mock embedding with random vectors."""
|
|
47
|
+
|
|
48
|
+
def _get_vector(self) -> List[float]:
|
|
49
|
+
return [random() for _ in range(self.embed_dim)]
|
|
50
|
+
|
|
51
|
+
|
|
41
52
|
embedding_models = {
|
|
53
|
+
# llama index
|
|
42
54
|
"openai": LazyInit(
|
|
43
55
|
OpenAIEmbedding
|
|
44
56
|
), # default model is OpenAIEmbeddingModelType.TEXT_EMBED_ADA_002
|
|
@@ -61,6 +73,9 @@ embedding_models = {
|
|
|
61
73
|
max_length=512,
|
|
62
74
|
),
|
|
63
75
|
"huggingface_bge_m3": LazyInit(HuggingFaceEmbedding, model_name="BAAI/bge-m3"),
|
|
76
|
+
"mock": LazyInit(MockEmbeddingRandom, embed_dim=768),
|
|
77
|
+
# langchain
|
|
78
|
+
"openai_langchain": LazyInit(OpenAIEmbeddings),
|
|
64
79
|
}
|
|
65
80
|
|
|
66
81
|
generator_models = {
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import logging
|
|
3
|
+
import os
|
|
4
|
+
import shutil
|
|
5
|
+
from datetime import datetime
|
|
6
|
+
from typing import Optional
|
|
7
|
+
|
|
8
|
+
import pandas as pd
|
|
9
|
+
|
|
10
|
+
from autorag.data.chunk.run import run_chunker
|
|
11
|
+
from autorag.data.utils.util import load_yaml, get_param_combinations
|
|
12
|
+
|
|
13
|
+
logger = logging.getLogger("AutoRAG")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class Chunker:
|
|
17
|
+
def __init__(self, raw_df: pd.DataFrame, project_dir: Optional[str] = None):
|
|
18
|
+
self.parsed_raw = raw_df
|
|
19
|
+
self.project_dir = project_dir if project_dir is not None else os.getcwd()
|
|
20
|
+
|
|
21
|
+
@classmethod
|
|
22
|
+
def from_parquet(
|
|
23
|
+
cls, parsed_data_path: str, project_dir: Optional[str] = None
|
|
24
|
+
) -> "Chunker":
|
|
25
|
+
if not os.path.exists(parsed_data_path):
|
|
26
|
+
raise ValueError(f"parsed_data_path {parsed_data_path} does not exist.")
|
|
27
|
+
if not parsed_data_path.endswith("parquet"):
|
|
28
|
+
raise ValueError(
|
|
29
|
+
f"parsed_data_path {parsed_data_path} is not a parquet file."
|
|
30
|
+
)
|
|
31
|
+
parsed_result = pd.read_parquet(parsed_data_path, engine="pyarrow")
|
|
32
|
+
return cls(parsed_result, project_dir)
|
|
33
|
+
|
|
34
|
+
def start_chunking(self, yaml_path: str):
|
|
35
|
+
trial_name = self.__get_new_trial_name()
|
|
36
|
+
self.__make_trial_dir(trial_name)
|
|
37
|
+
|
|
38
|
+
# Copy YAML file to the trial directory
|
|
39
|
+
shutil.copy(
|
|
40
|
+
yaml_path, os.path.join(self.project_dir, trial_name, "chunk_config.yaml")
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
# load yaml file
|
|
44
|
+
modules = load_yaml(yaml_path)
|
|
45
|
+
|
|
46
|
+
input_modules, input_params = get_param_combinations(modules)
|
|
47
|
+
|
|
48
|
+
logger.info("Chunking Start...")
|
|
49
|
+
run_chunker(
|
|
50
|
+
modules=input_modules,
|
|
51
|
+
module_params=input_params,
|
|
52
|
+
parsed_result=self.parsed_raw,
|
|
53
|
+
trial_path=os.path.join(self.project_dir, trial_name),
|
|
54
|
+
)
|
|
55
|
+
logger.info("Chunking Done!")
|
|
56
|
+
|
|
57
|
+
def __get_new_trial_name(self) -> str:
|
|
58
|
+
trial_json_path = os.path.join(self.project_dir, "trial.json")
|
|
59
|
+
if not os.path.exists(trial_json_path):
|
|
60
|
+
return "0"
|
|
61
|
+
with open(trial_json_path, "r") as f:
|
|
62
|
+
trial_json = json.load(f)
|
|
63
|
+
return str(int(trial_json[-1]["trial_name"]) + 1)
|
|
64
|
+
|
|
65
|
+
def __make_trial_dir(self, trial_name: str):
|
|
66
|
+
trial_json_path = os.path.join(self.project_dir, "trial.json")
|
|
67
|
+
if os.path.exists(trial_json_path):
|
|
68
|
+
with open(trial_json_path, "r") as f:
|
|
69
|
+
trial_json = json.load(f)
|
|
70
|
+
else:
|
|
71
|
+
trial_json = []
|
|
72
|
+
|
|
73
|
+
trial_json.append(
|
|
74
|
+
{
|
|
75
|
+
"trial_name": trial_name,
|
|
76
|
+
"start_time": datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
os.makedirs(os.path.join(self.project_dir, trial_name))
|
|
80
|
+
with open(trial_json_path, "w") as f:
|
|
81
|
+
json.dump(trial_json, f, indent=4)
|
|
@@ -167,7 +167,7 @@ def yaml_to_markdown(yaml_filepath):
|
|
|
167
167
|
with open(yaml_filepath, "r", encoding="utf-8") as file:
|
|
168
168
|
try:
|
|
169
169
|
content = yaml.safe_load(file)
|
|
170
|
-
markdown_content += f"## {os.path.basename(yaml_filepath)}\n```yaml\n{yaml.
|
|
170
|
+
markdown_content += f"## {os.path.basename(yaml_filepath)}\n```yaml\n{yaml.safe_dump(content, allow_unicode=True)}\n```\n\n"
|
|
171
171
|
except yaml.YAMLError as exc:
|
|
172
172
|
print(f"Error in {yaml_filepath}: {exc}")
|
|
173
173
|
return markdown_content
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
from typing import List, Callable
|
|
2
|
+
|
|
3
|
+
from langchain_community.document_loaders import (
|
|
4
|
+
PDFMinerLoader,
|
|
5
|
+
PDFPlumberLoader,
|
|
6
|
+
PyPDFium2Loader,
|
|
7
|
+
PyPDFLoader,
|
|
8
|
+
PyMuPDFLoader,
|
|
9
|
+
UnstructuredPDFLoader,
|
|
10
|
+
CSVLoader,
|
|
11
|
+
JSONLoader,
|
|
12
|
+
UnstructuredMarkdownLoader,
|
|
13
|
+
BSHTMLLoader,
|
|
14
|
+
UnstructuredXMLLoader,
|
|
15
|
+
DirectoryLoader,
|
|
16
|
+
)
|
|
17
|
+
from langchain_unstructured import UnstructuredLoader
|
|
18
|
+
from langchain_upstage import UpstageLayoutAnalysisLoader
|
|
19
|
+
|
|
20
|
+
from llama_index.core.node_parser import (
|
|
21
|
+
TokenTextSplitter,
|
|
22
|
+
SentenceSplitter,
|
|
23
|
+
SentenceWindowNodeParser,
|
|
24
|
+
SemanticSplitterNodeParser,
|
|
25
|
+
SemanticDoubleMergingSplitterNodeParser,
|
|
26
|
+
SimpleFileNodeParser,
|
|
27
|
+
)
|
|
28
|
+
from langchain.text_splitter import (
|
|
29
|
+
RecursiveCharacterTextSplitter,
|
|
30
|
+
CharacterTextSplitter,
|
|
31
|
+
KonlpyTextSplitter,
|
|
32
|
+
SentenceTransformersTokenTextSplitter,
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
from autorag import LazyInit
|
|
36
|
+
|
|
37
|
+
parse_modules = {
|
|
38
|
+
# PDF
|
|
39
|
+
"pdfminer": PDFMinerLoader,
|
|
40
|
+
"pdfplumber": PDFPlumberLoader,
|
|
41
|
+
"pypdfium2": PyPDFium2Loader,
|
|
42
|
+
"pypdf": PyPDFLoader,
|
|
43
|
+
"pymupdf": PyMuPDFLoader,
|
|
44
|
+
"unstructuredpdf": UnstructuredPDFLoader,
|
|
45
|
+
# Common File Types
|
|
46
|
+
# 1. CSV
|
|
47
|
+
"csv": CSVLoader,
|
|
48
|
+
# 2. JSON
|
|
49
|
+
"json": JSONLoader,
|
|
50
|
+
# 3. Markdown
|
|
51
|
+
"unstructuredmarkdown": UnstructuredMarkdownLoader,
|
|
52
|
+
# 4. HTML
|
|
53
|
+
"bshtml": BSHTMLLoader,
|
|
54
|
+
# 5. XML
|
|
55
|
+
"unstructuredxml": UnstructuredXMLLoader,
|
|
56
|
+
# 6. All files
|
|
57
|
+
"directory": DirectoryLoader,
|
|
58
|
+
"unstructured": UnstructuredLoader,
|
|
59
|
+
"upstagelayoutanalysis": UpstageLayoutAnalysisLoader,
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
chunk_modules = {
|
|
63
|
+
# Llama Index
|
|
64
|
+
# Token
|
|
65
|
+
"token": TokenTextSplitter,
|
|
66
|
+
# Sentence
|
|
67
|
+
"sentence": SentenceSplitter,
|
|
68
|
+
# window
|
|
69
|
+
"sentencewindow": SentenceWindowNodeParser,
|
|
70
|
+
# Semantic
|
|
71
|
+
"semantic_llama_index": SemanticSplitterNodeParser,
|
|
72
|
+
"semanticdoublemerging": SemanticDoubleMergingSplitterNodeParser,
|
|
73
|
+
# Simple
|
|
74
|
+
"simplefile": SimpleFileNodeParser,
|
|
75
|
+
# LangChain
|
|
76
|
+
# Token
|
|
77
|
+
"sentencetransformerstoken": SentenceTransformersTokenTextSplitter,
|
|
78
|
+
# Character
|
|
79
|
+
"recursivecharacter": RecursiveCharacterTextSplitter,
|
|
80
|
+
"character": CharacterTextSplitter,
|
|
81
|
+
# Sentence
|
|
82
|
+
"konlpy": KonlpyTextSplitter,
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def split_by_sentence_kiwi() -> Callable[[str], List[str]]:
|
|
87
|
+
from kiwipiepy import Kiwi
|
|
88
|
+
|
|
89
|
+
kiwi = Kiwi()
|
|
90
|
+
|
|
91
|
+
def split(text: str) -> List[str]:
|
|
92
|
+
kiwi_result = kiwi.split_into_sents(text)
|
|
93
|
+
sentences = list(map(lambda x: x.text, kiwi_result))
|
|
94
|
+
|
|
95
|
+
return sentences
|
|
96
|
+
|
|
97
|
+
return split
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
sentence_splitter_modules = {"kiwi": LazyInit(split_by_sentence_kiwi)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# This module is about extracting evidence from the given retrieval gt passage
|