AI development
Data quality in RAG systems
A bigger model doesn't solve every problem. A short look at how retrieval, context and evaluation relate.
, Sahir Gur
Starting note
RAG lets a language model look up relevant sources before it answers. The quality of the answer depends not only on the model but on the accuracy of the context it finds.
Start with the sources
Outdated documents, documents that contradict each other and documents with unclear access rights don't make a reliable knowledge layer. Data cleaning and source tracking come before vector search.
Evaluating the context
Chunking strategy, result ranking and the context passed to the model should be tested together. Finding the source that answers the question and using that source correctly are two separate measurements.
Accepting uncertainty
When no relevant source is found, the system should say so plainly. Design citing sources and declining to answer as deliberately as a successful answer.
Have a question or a different perspective? Let's talk