├── .gitignore ├── LICENSE ├── README-zh.md ├── README.md ├── assets ├── ExperimentalResults.png ├── LevelRAG-ch.png └── LevelRAG.png ├── scripts ├── build_dense_wiki.sh ├── build_elastic_wiki.sh ├── run_highlevel.sh ├── run_highlevel_gui.sh ├── run_simple.sh └── run_simple_gui.sh └── searchers ├── __init__.py ├── dense_searcher.py ├── high_level_searcher.py ├── hybrid_searcher.py ├── keyword_searcher.py ├── prompts ├── bm25_refine_emphasize_prompt.json ├── bm25_refine_extend_prompt.json ├── bm25_refine_filter_prompt.json ├── bm25_rewrite_prompt.json ├── decompose_with_context_prompt.json ├── decompose_without_context_prompt.json ├── dense_rewrite_prompt.json ├── lucene_rewrite_prompt.json ├── rewrite_by_answer_with_context_prompt.json ├── rewrite_by_answer_without_context_prompt.json ├── summarize_by_answer_prompt.json ├── verify_prompt.json └── web_rewrite_prompt.json ├── searcher.py └── web_searcher.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/LICENSE -------------------------------------------------------------------------------- /README-zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/README-zh.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/README.md -------------------------------------------------------------------------------- /assets/ExperimentalResults.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/assets/ExperimentalResults.png -------------------------------------------------------------------------------- /assets/LevelRAG-ch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/assets/LevelRAG-ch.png -------------------------------------------------------------------------------- /assets/LevelRAG.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/assets/LevelRAG.png -------------------------------------------------------------------------------- /scripts/build_dense_wiki.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/scripts/build_dense_wiki.sh -------------------------------------------------------------------------------- /scripts/build_elastic_wiki.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/scripts/build_elastic_wiki.sh -------------------------------------------------------------------------------- /scripts/run_highlevel.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/scripts/run_highlevel.sh -------------------------------------------------------------------------------- /scripts/run_highlevel_gui.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/scripts/run_highlevel_gui.sh -------------------------------------------------------------------------------- /scripts/run_simple.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/scripts/run_simple.sh -------------------------------------------------------------------------------- /scripts/run_simple_gui.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/scripts/run_simple_gui.sh -------------------------------------------------------------------------------- /searchers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/__init__.py -------------------------------------------------------------------------------- /searchers/dense_searcher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/dense_searcher.py -------------------------------------------------------------------------------- /searchers/high_level_searcher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/high_level_searcher.py -------------------------------------------------------------------------------- /searchers/hybrid_searcher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/hybrid_searcher.py -------------------------------------------------------------------------------- /searchers/keyword_searcher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/keyword_searcher.py -------------------------------------------------------------------------------- /searchers/prompts/bm25_refine_emphasize_prompt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/prompts/bm25_refine_emphasize_prompt.json -------------------------------------------------------------------------------- /searchers/prompts/bm25_refine_extend_prompt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/prompts/bm25_refine_extend_prompt.json -------------------------------------------------------------------------------- /searchers/prompts/bm25_refine_filter_prompt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/prompts/bm25_refine_filter_prompt.json -------------------------------------------------------------------------------- /searchers/prompts/bm25_rewrite_prompt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/prompts/bm25_rewrite_prompt.json -------------------------------------------------------------------------------- /searchers/prompts/decompose_with_context_prompt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/prompts/decompose_with_context_prompt.json -------------------------------------------------------------------------------- /searchers/prompts/decompose_without_context_prompt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/prompts/decompose_without_context_prompt.json -------------------------------------------------------------------------------- /searchers/prompts/dense_rewrite_prompt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/prompts/dense_rewrite_prompt.json -------------------------------------------------------------------------------- /searchers/prompts/lucene_rewrite_prompt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/prompts/lucene_rewrite_prompt.json -------------------------------------------------------------------------------- /searchers/prompts/rewrite_by_answer_with_context_prompt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/prompts/rewrite_by_answer_with_context_prompt.json -------------------------------------------------------------------------------- /searchers/prompts/rewrite_by_answer_without_context_prompt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/prompts/rewrite_by_answer_without_context_prompt.json -------------------------------------------------------------------------------- /searchers/prompts/summarize_by_answer_prompt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/prompts/summarize_by_answer_prompt.json -------------------------------------------------------------------------------- /searchers/prompts/verify_prompt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/prompts/verify_prompt.json -------------------------------------------------------------------------------- /searchers/prompts/web_rewrite_prompt.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/prompts/web_rewrite_prompt.json -------------------------------------------------------------------------------- /searchers/searcher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/searcher.py -------------------------------------------------------------------------------- /searchers/web_searcher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ictnlp/LevelRAG/HEAD/searchers/web_searcher.py --------------------------------------------------------------------------------