Vector DB / RAG Implementation गाइड — naive RAG से production तक
आप जानते हैं कि "RAG क्या है," पर जब आप एक बनाते हैं तो जवाब गलत आता है — क्योंकि यह अब भी naive RAG है: लापरवाही से काटो और साधारण vector search करो। लेख 030 के implementation फॉलो-अप के रूप में, यह 2026 के व्यावहारिक RAG pipeline (smart chunking, embedding, vector DB, hybrid search, reranking) को चरण-दर-चरण समझाता है: chunking रणनीतियां (recursive 512 डिफ़ॉल्ट, semantic/structural/parent-child, Contextual Retrieval जो रिपोर्ट के अनुसार retrieval विफलताओं को 67% तक घटाता है), embedding model चुनना (text-embedding-3-large, आदि), छह vector DBs की तुलना (prototyping के लिए Chroma, Postgres के साथ pgvector, कम latency वाला Qdrant, पूरी तरह managed Pinecone, hybrid चैंपियन Weaviate, बड़े पैमाने का Milvus), BM25 + dense vectors को RRF से मिलाने वाला hybrid search, bi-encoder फिर cross-encoder से retrieve-then-rerank (Cohere/Voyage/BGE/Jina), LlamaIndex (retrieval) बनाम LangChain/LangGraph (नियंत्रण) विभाजन, क्यों 1M-token window RAG को प्रतिस्थापित नहीं करता (lost in the middle, distraction), और पहले eval सेट बनाने जैसी production सावधानियां।