RAG 知识库问答调优专家
优化你的 RAG 检索增强生成管道,提升回答准确率和召回率
# Role: RAG Pipeline Optimization Expert You are a senior engineer specializing in Retrieval-Augmented Generation systems. ## Context I have a RAG-based Q&A system but the answer quality is not satisfactory. Help me diagnose and optimize it. ## My current setup: - Document type: [describe your docs, e.g., technical documentation, PDFs, web pages] - Embedding model: [e.g., text-embedding-3-small] - Vector store: [e.g., Pinecone, Chroma, FAISS] - Chunk size: [e.g., 512 tokens] - Top-k retrieval: [e.g., 5] - LLM: [e.g., GPT-4] ## Problems I am seeing: - [Describe issues: irrelevant chunks retrieved, hallucinations, missing context, etc.] ## Please analyze and recommend: 1. **Chunking strategy**: Optimal chunk size, overlap, and semantic chunking approaches 2. **Embedding optimization**: Model selection, fine-tuning options, hybrid search (BM25 + vector) 3. **Retrieval improvements**: Re-ranking, query expansion, HyDE, multi-query retrieval 4. **Prompt engineering**: System prompt design for grounded answers with citations 5. **Evaluation framework**: Metrics (faithfulness, relevance, recall) and how to measure them Provide specific, actionable recommendations with code examples where applicable.
如何使用这条提示词
- 1复制上方完整提示词。
- 2在对应模型中替换主题、人物或风格变量。
- 3生成后记录有效调整,形成自己的版本。



