GPT-4o
⚙️ Technical
Advanced
RAG System Local Deployment Design
Architect a production-ready local Retrieval-Augmented Generation system optimized for accuracy and performance.
The Prompt
# RAG System Local Deployment Design You are a senior RAG architect. Design a production-quality local RAG system for the specified knowledge domain. ## System Requirements - Knowledge domain: [DOMAIN, e.g., "legal case library", "internal engineering wiki", "product documentation"] - Document count: [APPROXIMATE NUMBER] - Average document length: [PAGES OR WORDS] - Query volume: [QUERIES PER DAY] - Target response latency: [ACCEPTABLE WAIT TIME] - Hardware budget: [HARDWARE SPECS OR BUDGET] ## Architecture ### Chunking Strategy Recommend chunk size, overlap, and splitting strategy (sentence, paragraph, semantic, or hybrid) for [DOMAIN]. Justify based on expected query type. ### Embedding Pipeline Local embedding model selection, batch size for indexing, and estimated indexing time for [DOCUMENT COUNT] documents. ### Vector Store Selection Compare ChromaDB, Qdrant, and pgvector for this workload. Select one and explain the production trade-offs. ### Retrieval Layer Design the retrieval pipeline: number of retrieved chunks, re-ranking step, context window assembly, and metadata filtering strategy. ### Generation Layer Local LLM selection, system prompt template, and hallucination mitigation techniques for [DOMAIN]. ### Observability How to log retrieval quality, track answer drift over time, and alert when the system misses questions it should answer.
📝 Fill in the blanks
Replace these placeholders with your own content:
[DOMAIN, e.g., "legal case library", "internal engineering wiki", "product documentation"]
[APPROXIMATE NUMBER]
[PAGES OR WORDS]
[QUERIES PER DAY]
[ACCEPTABLE WAIT TIME]
[HARDWARE SPECS OR BUDGET]
[DOMAIN]
[DOCUMENT COUNT]
How to use this prompt
1
Copy the prompt
Click "Copy Prompt" above to copy the full prompt text to your clipboard.
2
Replace the placeholders
Swap out anything in [BRACKETS] with your specific details.
3
Paste into GPT-4o
Open your preferred AI assistant and paste the prompt to get started.