The real reason 80% of RAG chatbots fail in production isn't the vector DB—it's dirty PDF tables and broken document chunking
Every week an engineering team asks: "Our RAG system is hallucinating numbers from our financial PDFs—should we switch from pgvector to Pinecone or change our embedding model?"
Then you inspect the actual text chunks stored in their vector DB—and find that their naive pypdf / pdfminer script extracted a 4-column balance sheet like this:
"Revenue 2025 2026 Q1 Q2 $14.2M $19.8M Operating Margin 18% 22%"
Columns merged, headers detached from values, and a 500-token fixed-size splitter chopped the table right down the middle! No embedding model or HNSW index in the world can rescue corrupted input text.
Garbage In, Hallucination Out
Before touching vector DB hyperparameters:
- Use Layout-Aware Parsers: Tools like Docling, Marker, or VLM-based Markdown extraction preserve multi-column reading order and convert PDF tables into clean Markdown (
| Metric | Q1 | Q2 |). - Never Split Inside Tables or Code Blocks: Keep tables intact as atomic chunks with their parent section heading prepended.
80% of RAG quality lives in the ETL & parsing layer, not the vector store.