GENERATIVE-AI-ENGINEER-ASSOCIATE · Question #87
Generative AI Engineer at an electronics company just deployed a RAG application for customers to ask questions about products that the company carries. However, they received feedback that the RAG…
The correct answer is A. Assess the quality of the retrieved context. When a RAG system returns irrelevant product information, the root cause is poor retrieval quality, so assessing and improving the retrieved context is the correct first step.
Question
Generative AI Engineer at an electronics company just deployed a RAG application for customers to ask questions about products that the company carries. However, they received feedback that the RAG response often returns information about an irrelevant product. What can the engineer do to improve the relevance of the RAG’s response?
Options
- AAssess the quality of the retrieved context
- BImplement caching for frequently asked questions
- CUse a different LLM to improve the generated response
- DUse a different semantic similarity search algorithm
How the community answered
(40 responses)- A45% (18)
- B15% (6)
- C33% (13)
- D8% (3)
Why each option
When a RAG system returns irrelevant product information, the root cause is poor retrieval quality, so assessing and improving the retrieved context is the correct first step.
Assessing the quality of retrieved context identifies whether the vector search is surfacing semantically similar but topically incorrect chunks, allowing the engineer to tune embedding models, similarity thresholds, or chunking strategies to fix the retrieval stage - where the actual problem lies.
Caching addresses latency for repeated queries but does nothing to fix the underlying relevance problem in the retrieval pipeline.
Switching the LLM improves generation quality but cannot compensate for the retrieval stage returning the wrong product context in the first place.
Changing the similarity search algorithm is a potential downstream fix, but without first assessing retrieved context quality you cannot determine whether the algorithm is even the cause of the irrelevance.
Concept tested: RAG retrieval quality assessment and debugging
Source: https://docs.databricks.com/en/generative-ai/retrieval-augmented-generation.html
Topics
Community Discussion
No community discussion yet for this question.