RAG on Sparse Database Seeking Help

Desperate-Vast-4899 · reddit · 2026-07-10

The author is building a RAG pipeline with Ollama and Qwen2.5, aiming to let the model access a risk register database via SQL queries and semantic retrieval to answer questions about risks, incidents, and mitigation measures. The current problem is that the database is too sparse, with many empty tables and columns, leading to retrieval results lacking context and low answer efficiency. The author has tried chunking by rows and embedding, but hasn't used more advanced methods like hybrid search or RRF, and is seeking improvement advice.

Related event: Help Needed: Building RAG Pipelines on Sparse SQL Databases(2 posts)→

Original post →

More from coding & agent

coding & agent channel →