QuestionQ48

VerifiedEvaluation and Monitoring

A team uses Mosaic AI Vector Search to retrieve documents for its Retrieval-Augmented Generation (RAG) pipeline. A search query returns five relevant documents, with the first three included in the prompt as context. An Agent Evaluation performance assessment shows that certain lower-ranked retrieved documents receive higher context-relevancy scores than documents ranked above them.

Which option should the team consider to optimize this workflow?

Explanation

A reranker performs a second-pass relevance assessment of the retrieved documents in the context of the query, producing a more accurate ordering. This allows the highest-relevance documents to be selected for the limited prompt context; Databricks recommends reranking for RAG use cases when retrieval quality is important.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!