When a RAG application gives a weak answer, changing the system prompt is tempting. Often, the real problem occurred before the model saw any context.

01

Inspect retrieval before generation

Check whether the correct source entered the index, whether the chunk preserved the relevant idea, and whether search ranked it high enough to reach the model.

Generation quality cannot recover information that retrieval never supplied.

02

Create a small evaluation set

A practical evaluation can begin with a few dozen representative questions, expected sources, and notes about what a satisfactory answer must contain. Run the same set whenever chunking, embeddings, prompts, or models change.

03

Make uncertainty visible

A grounded system should be able to say that the available sources do not support an answer. That boundary is a feature, especially when the user may act on the result.