A developer uses a RAG approach. Which strategy most directly improves retrieval quality before generation?
Answer
Use embedding-based indexing and apply appropriate query rewriting or filtering
Explanation
RAG quality depends heavily on selecting relevant context. Retrieval enhancements like query rewriting, embeddings, and filtering directly improve what the model sees.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You need to implement a structured output format for an LLM response so downstream services can parse it reliably. What is the best practice?
View question →
Which AWS security control is most relevant when you want to restrict who can invoke specific foundation models in Bedrock?
View question →
Which design best supports scalable, low-latency inference for a generative AI application on AWS?
View question →
You want to reduce prompt leakage when using a managed LLM. Which approach is most appropriate?
View question →
In a Bedrock agent setup, what is a key role of orchestration resources?
View question →
In a RAG pipeline, why would you store both embeddings and original text chunks in a vector-enabled datastore?
View question →