Help Needed: RAG for Sparse SQL Databases

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

The author is building a RAG pipeline using Ollama's Qwen2.5, aiming to let the LLM read a risk register database via SQL and semantic search to answer questions about risks, incidents, and mitigation measures. They are encountering the same core issue as a previous post: the database is highly sparse with many empty tables and columns, leading to a lack of retrieval context and unstable model answers. So far, the author has only implemented row-level chunking and embedding, and has yet to introduce solutions like hybrid search or RRF.

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

Original post →

More from coding & agent

coding & agent channel →