Skip to content

Ranking

We can use an AI Grading Agent to grade the quality of retrieved documents, check the response for hallucinations and other issues.

This can be used at any stage in the pipeline.

It is the general pricnciple of adding the previous output to the message history, making it in effect a brand new query with a new query to the LLM.