Production-grade RAG assistant: hybrid search, RRF, parent-child chunking, Promptfoo evals

Alternative_Yak_1367 · reddit · 2026-10-17

A developer shares an end-to-end enterprise RAG assistant over 10-K filings and legal contracts (Python/FastAPI/Postgres): table-aware parsing with pdfplumber, parent-child chunking (200/700 tokens), hybrid pgvector + full-text search fused via RRF and reranked by bge-reranker-base, custom guaranteed slots for short fragments, Recall@K/MRR retrieval evals plus 20 Promptfoo assertions, and multi-tenant isolation with PII redaction. Seeking feedback on cross-encoder latency, table edge cases, and code organization.

Original post →

More from coding & agent

coding & agent channel →