├── .gitignore ├── LICENSE ├── RAG比赛 └── 比赛.md ├── README.md ├── adavanced rag ├── chunk_enhancement │ ├── README.md │ ├── context_compression.ipynb │ ├── guess_query.ipynb │ ├── overlap.ipynb │ └── semantic.ipynb ├── query_enhancement │ ├── .ipynb_checkpoints │ │ └── query_enhancement-checkpoint.ipynb │ └── query_enhancement.ipynb ├── retrieval_enhancement │ └── hybird_retrieval.ipynb └── utils.py ├── agentic rag └── Agentic RAG.ipynb ├── chapter 2 └── 21_23_code.ipynb ├── chapter 4 ├── 42_43_code.ipynb ├── 44_code.ipynb └── 45_code.ipynb ├── chapter 5 ├── 51_53_code.ipynb └── 54_code.ipynb ├── chapter 7 ├── 7.2_RAG_demo.txt ├── 71_72_code.ipynb ├── 73_code.ipynb ├── hf_rag_demo.py └── test.txt ├── chapter 8 ├── finetune_qwen_llm.ipynb ├── make_qa_data.ipynb └── train_embedding_model.ipynb ├── graphrag ├── .gitignore ├── MANIFEST.in ├── benchmark-en.md ├── benchmark-zh.md ├── examples │ ├── using_deepseek_as_llm.py │ ├── using_local_embedding_model.py │ └── using_milvus_as_vectorDB.py ├── nano_graphrag │ ├── __init__.py │ ├── _llm.py │ ├── _op.py │ ├── _storage.py │ ├── _utils.py │ ├── base.py │ ├── graphrag.py │ ├── prompt.py │ └── prompt.pyb ├── readme.md ├── run.py ├── setup.py └── tests │ ├── __init__.py │ ├── fixtures │ └── mock_cache.json │ └── test_rag.py ├── memory rag └── memorag.ipynb └── rag blog ├── Agent+RAG+大纲驱动,AI创作新风暴_2024-09-23.md ├── BM25唱罢,BMX登场!_2024-09-06.md ├── DsRAG:新开源的高级RAG分块技巧!_2024-09-23.md ├── JinaAI提出Late Chunking,告别传统的文档切块!_2024-09-06.md ├── JinaAI提出Late Chunking,告别传统的文档切块!_2024-09-23.md ├── Medical GraphRAG:医疗领域的应用-_2024-09-06.md ├── Plan-based Retrieval,告别AI的胡言乱语_2024-09-06.md ├── README.md ├── awesome 文档解析!16款高质量pdf -_ markdown项目分享_2024-09-06.md ├── multi-head RAG:复杂问题的RAG召回方案_2024-09-06.md ├── 一篇RAG幻觉的综述_2024-09-06.md ├── 大模型RAG的下一形态,MAG_2024-09-06.md ├── 大模型RAG的风,从GraphRAG吹到了MemoryRAG_2024-09-23.md ├── 大模型的进化,map reduce是新方向_2024-09-06.md ├── 工业界Agentic RAG方案-Golden-Retriever_2024-09-06.md ├── 清华开源可连续输出万字长文的Agent flow项目_2024-09-06.md ├── 英伟达开源OP-RAG,打响RAG翻身仗,超越长上下文模型_2024-09-23.md ├── 长上下文 还是 RAG? 我全都要!_2024-09-06.md └── 首篇GrahpRAG的综述出炉!_2024-09-06.md /.gitignore: -------------------------------------------------------------------------------- 1 | bge-small-zh-v1.5 2 | .ipynb_checkpoints -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/LICENSE -------------------------------------------------------------------------------- /RAG比赛/比赛.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/RAG比赛/比赛.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/README.md -------------------------------------------------------------------------------- /adavanced rag/chunk_enhancement/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/adavanced rag/chunk_enhancement/README.md -------------------------------------------------------------------------------- /adavanced rag/chunk_enhancement/context_compression.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/adavanced rag/chunk_enhancement/context_compression.ipynb -------------------------------------------------------------------------------- /adavanced rag/chunk_enhancement/guess_query.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/adavanced rag/chunk_enhancement/guess_query.ipynb -------------------------------------------------------------------------------- /adavanced rag/chunk_enhancement/overlap.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/adavanced rag/chunk_enhancement/overlap.ipynb -------------------------------------------------------------------------------- /adavanced rag/chunk_enhancement/semantic.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/adavanced rag/chunk_enhancement/semantic.ipynb -------------------------------------------------------------------------------- /adavanced rag/query_enhancement/.ipynb_checkpoints/query_enhancement-checkpoint.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/adavanced rag/query_enhancement/.ipynb_checkpoints/query_enhancement-checkpoint.ipynb -------------------------------------------------------------------------------- /adavanced rag/query_enhancement/query_enhancement.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/adavanced rag/query_enhancement/query_enhancement.ipynb -------------------------------------------------------------------------------- /adavanced rag/retrieval_enhancement/hybird_retrieval.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/adavanced rag/retrieval_enhancement/hybird_retrieval.ipynb -------------------------------------------------------------------------------- /adavanced rag/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/adavanced rag/utils.py -------------------------------------------------------------------------------- /agentic rag/Agentic RAG.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/agentic rag/Agentic RAG.ipynb -------------------------------------------------------------------------------- /chapter 2/21_23_code.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/chapter 2/21_23_code.ipynb -------------------------------------------------------------------------------- /chapter 4/42_43_code.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/chapter 4/42_43_code.ipynb -------------------------------------------------------------------------------- /chapter 4/44_code.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/chapter 4/44_code.ipynb -------------------------------------------------------------------------------- /chapter 4/45_code.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/chapter 4/45_code.ipynb -------------------------------------------------------------------------------- /chapter 5/51_53_code.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/chapter 5/51_53_code.ipynb -------------------------------------------------------------------------------- /chapter 5/54_code.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/chapter 5/54_code.ipynb -------------------------------------------------------------------------------- /chapter 7/7.2_RAG_demo.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/chapter 7/7.2_RAG_demo.txt -------------------------------------------------------------------------------- /chapter 7/71_72_code.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/chapter 7/71_72_code.ipynb -------------------------------------------------------------------------------- /chapter 7/73_code.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/chapter 7/73_code.ipynb -------------------------------------------------------------------------------- /chapter 7/hf_rag_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/chapter 7/hf_rag_demo.py -------------------------------------------------------------------------------- /chapter 7/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/chapter 7/test.txt -------------------------------------------------------------------------------- /chapter 8/finetune_qwen_llm.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/chapter 8/finetune_qwen_llm.ipynb -------------------------------------------------------------------------------- /chapter 8/make_qa_data.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/chapter 8/make_qa_data.ipynb -------------------------------------------------------------------------------- /chapter 8/train_embedding_model.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/chapter 8/train_embedding_model.ipynb -------------------------------------------------------------------------------- /graphrag/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/.gitignore -------------------------------------------------------------------------------- /graphrag/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include readme.md 2 | -------------------------------------------------------------------------------- /graphrag/benchmark-en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/benchmark-en.md -------------------------------------------------------------------------------- /graphrag/benchmark-zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/benchmark-zh.md -------------------------------------------------------------------------------- /graphrag/examples/using_deepseek_as_llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/examples/using_deepseek_as_llm.py -------------------------------------------------------------------------------- /graphrag/examples/using_local_embedding_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/examples/using_local_embedding_model.py -------------------------------------------------------------------------------- /graphrag/examples/using_milvus_as_vectorDB.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/examples/using_milvus_as_vectorDB.py -------------------------------------------------------------------------------- /graphrag/nano_graphrag/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/nano_graphrag/__init__.py -------------------------------------------------------------------------------- /graphrag/nano_graphrag/_llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/nano_graphrag/_llm.py -------------------------------------------------------------------------------- /graphrag/nano_graphrag/_op.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/nano_graphrag/_op.py -------------------------------------------------------------------------------- /graphrag/nano_graphrag/_storage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/nano_graphrag/_storage.py -------------------------------------------------------------------------------- /graphrag/nano_graphrag/_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/nano_graphrag/_utils.py -------------------------------------------------------------------------------- /graphrag/nano_graphrag/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/nano_graphrag/base.py -------------------------------------------------------------------------------- /graphrag/nano_graphrag/graphrag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/nano_graphrag/graphrag.py -------------------------------------------------------------------------------- /graphrag/nano_graphrag/prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/nano_graphrag/prompt.py -------------------------------------------------------------------------------- /graphrag/nano_graphrag/prompt.pyb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/nano_graphrag/prompt.pyb -------------------------------------------------------------------------------- /graphrag/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/readme.md -------------------------------------------------------------------------------- /graphrag/run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/run.py -------------------------------------------------------------------------------- /graphrag/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/setup.py -------------------------------------------------------------------------------- /graphrag/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/tests/__init__.py -------------------------------------------------------------------------------- /graphrag/tests/fixtures/mock_cache.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/tests/fixtures/mock_cache.json -------------------------------------------------------------------------------- /graphrag/tests/test_rag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/graphrag/tests/test_rag.py -------------------------------------------------------------------------------- /memory rag/memorag.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/memory rag/memorag.ipynb -------------------------------------------------------------------------------- /rag blog/Agent+RAG+大纲驱动,AI创作新风暴_2024-09-23.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/Agent+RAG+大纲驱动,AI创作新风暴_2024-09-23.md -------------------------------------------------------------------------------- /rag blog/BM25唱罢,BMX登场!_2024-09-06.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/BM25唱罢,BMX登场!_2024-09-06.md -------------------------------------------------------------------------------- /rag blog/DsRAG:新开源的高级RAG分块技巧!_2024-09-23.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/DsRAG:新开源的高级RAG分块技巧!_2024-09-23.md -------------------------------------------------------------------------------- /rag blog/JinaAI提出Late Chunking,告别传统的文档切块!_2024-09-06.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/JinaAI提出Late Chunking,告别传统的文档切块!_2024-09-06.md -------------------------------------------------------------------------------- /rag blog/JinaAI提出Late Chunking,告别传统的文档切块!_2024-09-23.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/JinaAI提出Late Chunking,告别传统的文档切块!_2024-09-23.md -------------------------------------------------------------------------------- /rag blog/Medical GraphRAG:医疗领域的应用-_2024-09-06.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/Medical GraphRAG:医疗领域的应用-_2024-09-06.md -------------------------------------------------------------------------------- /rag blog/Plan-based Retrieval,告别AI的胡言乱语_2024-09-06.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/Plan-based Retrieval,告别AI的胡言乱语_2024-09-06.md -------------------------------------------------------------------------------- /rag blog/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/README.md -------------------------------------------------------------------------------- /rag blog/awesome 文档解析!16款高质量pdf -_ markdown项目分享_2024-09-06.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/awesome 文档解析!16款高质量pdf -_ markdown项目分享_2024-09-06.md -------------------------------------------------------------------------------- /rag blog/multi-head RAG:复杂问题的RAG召回方案_2024-09-06.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/multi-head RAG:复杂问题的RAG召回方案_2024-09-06.md -------------------------------------------------------------------------------- /rag blog/一篇RAG幻觉的综述_2024-09-06.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/一篇RAG幻觉的综述_2024-09-06.md -------------------------------------------------------------------------------- /rag blog/大模型RAG的下一形态,MAG_2024-09-06.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/大模型RAG的下一形态,MAG_2024-09-06.md -------------------------------------------------------------------------------- /rag blog/大模型RAG的风,从GraphRAG吹到了MemoryRAG_2024-09-23.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/大模型RAG的风,从GraphRAG吹到了MemoryRAG_2024-09-23.md -------------------------------------------------------------------------------- /rag blog/大模型的进化,map reduce是新方向_2024-09-06.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/大模型的进化,map reduce是新方向_2024-09-06.md -------------------------------------------------------------------------------- /rag blog/工业界Agentic RAG方案-Golden-Retriever_2024-09-06.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/工业界Agentic RAG方案-Golden-Retriever_2024-09-06.md -------------------------------------------------------------------------------- /rag blog/清华开源可连续输出万字长文的Agent flow项目_2024-09-06.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/清华开源可连续输出万字长文的Agent flow项目_2024-09-06.md -------------------------------------------------------------------------------- /rag blog/英伟达开源OP-RAG,打响RAG翻身仗,超越长上下文模型_2024-09-23.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/英伟达开源OP-RAG,打响RAG翻身仗,超越长上下文模型_2024-09-23.md -------------------------------------------------------------------------------- /rag blog/长上下文 还是 RAG? 我全都要!_2024-09-06.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/长上下文 还是 RAG? 我全都要!_2024-09-06.md -------------------------------------------------------------------------------- /rag blog/首篇GrahpRAG的综述出炉!_2024-09-06.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Nipi64310/RAG-Book/HEAD/rag blog/首篇GrahpRAG的综述出炉!_2024-09-06.md --------------------------------------------------------------------------------