RAG
检索增强生成:将模型答案建立在查询时获取的文档之上。
概览
检索增强生成通过先从知识源中检索相关段落,再让语言模型基于这些段落组织答案来回答问题。它同时解决了两个问题:模型无法知晓训练数据之外的事实,而针对新事实进行微调既昂贵,又必须在事实变化时反复进行。它之所以存在,是因为大多数事实性答案查比记更省事。代价是引入了一条新的依赖链——嵌入、向量存储、重排序和生成步骤——这正是它成为本图中连接最为密集的节点的原因。
技术图谱
RAG 如何与技术栈的其他部分相连。
使用与依赖
- Embedding concept Techniques RAG uses Embedding High ✓ source
- LLM concept Models RAG uses LLM High ✓ source
- Reranking technique Techniques RAG uses Reranking Medium ✓ source
- GraphRAG technique Techniques GraphRAG based on RAG High ✓ source
- Grounding technique Techniques Grounding based on RAG High ✓ source
- Self-RAG technique Techniques Self-RAG based on RAG High ✓ source
被用于
应用于
- AI Search application Applications RAG used for AI Search High ✓ source
- Agent Memory technique AI Agents Agent Memory used for RAG High ✓ source
- BGE model Embedding Models BGE used for RAG High ✓ source
- Chatbot application Applications RAG used for Chatbot High ✓ source
- Chroma database Vector Databases Chroma used for RAG High ✓ source
- Chunking technique Techniques Chunking used for RAG High ✓ source
- Cohere Embed model Embedding Models Cohere Embed used for RAG High ✓ source
- Command R model Models Command R used for RAG High ✓ source
- Context Engineering technique Prompting Context Engineering used for RAG High ✓ source
- Context Window concept Models Context Window used for RAG High ✓ source
- DeepEval library Evaluation DeepEval used for RAG High ✓ source
- GTE model Embedding Models GTE used for RAG High ✓ source
- Haystack framework LLM Frameworks Haystack used for RAG High ✓ source
- HyDE technique Techniques HyDE used for RAG High ✓ source
- Instructor model Embedding Models Instructor used for RAG Medium ✓ source
- Jina Embeddings model Embedding Models Jina Embeddings used for RAG High ✓ source
- LangChain framework LLM Frameworks LangChain used for RAG High ✓ source
- LlamaIndex framework LLM Frameworks LlamaIndex used for RAG High ✓ source
- Nomic Embed model Embedding Models Nomic Embed used for RAG High ✓ source
- OpenAI Text Embedding 3 model Embedding Models OpenAI Text Embedding 3 used for RAG High ✓ source
- PostgreSQL database Databases PostgreSQL used for RAG High ✓ source
- Prompt Caching technique Infrastructure Prompt Caching used for RAG High ✓ source
- Qdrant database Vector Databases Qdrant used for RAG High ✓ source
- Query Rewriting technique Techniques Query Rewriting used for RAG High ✓ source
- Ragas tool Evaluation Ragas used for RAG High ✓ source
- SQuAD dataset Datasets SQuAD used for RAG High ✓ source
- TruLens library Evaluation TruLens used for RAG High ✓ source
- Typesense database Search Engines Typesense used for RAG High ✓ source
- Hallucination concept Models RAG solves Hallucination Medium ✓ source
工具
实现或集成 RAG 的软件。
LLM Frameworks
替代方案
-
Fine-tuning
technique
RAG 的替代方案 · source
对比
与上述替代方案的逐项对比。