Prompt
0 copies · 0 said it worked
Engineering principles for building accurate retrieval-augmented generation pipelines
A checklist of practices for building RAG systems, covering evaluation sets, chunking, metadata, hybrid search, reranking and access control, delivered as a list of recommendations with confidence scores.
People use this for
- rag pipeline retrieval evaluation
- how to build rag system
- chunking strategy for retrieval augmented generation
- make rag answers accurate and cited
Imported on Nov 29, 2026 from RAG Pipeline taste . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Prompt
# RAG Pipeline taste of an engineer who ships retrieval systems that stay accurate - Build an evaluation set of real user questions with expected sources before tuning chunking, embeddings or prompts. Confidence: 0.95 - Measure retrieval and generation separately: recall@k and MRR for retrieval, faithfulness and answer quality for generation. Confidence: 0.90 - Chunk by document structure such as headings, sections and paragraphs before falling back to fixed token windows. Confidence: 0.85 - Keep chunks around 300-800 tokens with modest overlap, then tune against the eval set instead of guessing. Confidence: 0.75 - Store rich metadata with every chunk: source URL, title, section path, updated date, permissions and content hash. Confidence: 0.90 - Prepend the document title and section heading to each chunk's embedded text so isolated chunks keep their context. Confidence: 0.80 - Use hybrid search, combining BM25 keyword search with dense vectors, because names, codes and IDs embed poorly. Confidence: 0.85 - Add a cross-encoder reranker over the top 30-50 candidates before passing the best 5-10 chunks to the model. Confidence: 0.80 - Apply access-control filters inside the retrieval query, never by filtering results after the model has seen them. Confidence: 0.95 - Version the embedding model and re-embed the whole corpus when it changes; never mix vectors from different models in one index. Confidence: 0.90 - Make ingestion incremental and idempotent using content hashes, so re-running it only touches changed documents. Confidence: 0.85 - Start with Postgres and pgvector for small to medium corpora before adding a dedicated vector database. Confidence: 0.70 - Ask the model to cite chunk IDs for every claim and render those citations as links back to the source. Confidence: 0.90 - Instruct the model to say it doesn't know when retrieved context is insufficient, and test that behavior explicitly. Confidence: 0.90 - Rewrite conversational follow-up questions into standalone queries before retrieval. Confidence: 0.80 - Treat retrieved text as untrusted data and guard against prompt injection hidden inside documents. Confidence: 0.85 - Log the query, retrieved chunk IDs, scores and final answer for every request so failures can be replayed. Confidence: 0.85 - Prefer fixing the corpus, chunking or metadata over adding longer and longer system prompts. Confidence: 0.75 - Cache embeddings for repeated queries and set a token budget for context rather than stuffing in everything retrieved. Confidence: 0.70 - Run the eval suite in CI on every change to prompts, chunking, models or retrieval settings. Confidence: 0.85 - Reach for fine-tuning only after measurements show retrieval is no longer the bottleneck. Confidence: 0.65
No result recorded for this import yet. Tried it? File a report so the next person knows how it went.
Tried it
Structured reports from people who ran this prompt. They roll up into the per-model badges above.
No one has filed a report yet. Try the prompt and be the first.
Related prompts
- Simulate ATS resume scanning with a practical human-reviewer perspective
A detailed system-style prompt that makes the model simulate legacy, modern, and AI-driven applicant tracking system parsing, scoring, and keyword matching on a resume, with remediation advice. The result is an ATS-behaviour report with scores and fixes.
Coding · @thanos0000
- Autonomous coding agent that builds a verified app-builder harness
Master system prompt that directs an autonomous senior Python engineer to build a spec-driven, evidence-traced app-builder harness milestone by milestone without asking questions.
Coding · @mahfuzahmedog
- Sales prospect research methodology skill for company and contact profiling
A Claude Code skill giving methodology and checklists for researching sales prospects: company basics, recent developments, tech stack, buying signals, and contact background, influence, and engagement hooks.
Sales · @tomstools11
- Master prompt for building a district campaign field operations platform
A long master development prompt asking an AI to build a full-stack government district campaign management, field data collection, verification, and payment platform.
Coding · @maarifkhatri91
- Deep research agent role for systematic, evidence-based investigations
A role prompt that makes the model a senior research methodology expert, guiding query decomposition, source credibility evaluation, multi-hop evidence synthesis, bias detection, and confidence-rated reporting into a TODO_deep-research-agent.md checklist.
Research & Analysis · @wkaandemir
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.