You are troubleshooting hallucinations in a RAG system. The retriever returns plausible but incorrect passages. You suspect embedding mismatch and chunking issues. Which adjustment most directly targets retrieval quality rather than prompt behavior?
Answer
Change chunking strategy and embedding configuration, and improve retrieval evaluation with relevance metrics
Explanation
If incorrect context is retrieved, stronger prompting alone cannot fix grounding. Chunking and embedding configuration directly affect semantic match and retrieval precision.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You must choose between fine-tuning and prompt engineering for an LLM feature that depends on consistent output formatting and complex domain terminology. What is the best decision criterion?
View question →
You need to design an end-to-end generative AI workflow that includes retrieval and model output validation. Which AWS service combination best supports implementing a RAG pipeline with managed ingestion, vector search, and safe LLM invocation patterns?
View question →
A team uses Amazon SageMaker Canvas and wants guardrails and auditability for model calls across multiple environments. Which approach most closely aligns with AWS-managed AI governance and explainable traceability?
View question →
A customer has strict requirements: generated outputs must cite retrieved sources, and the system must fail closed if citations are missing or confidence is low. Which combination best implements a robust “verify-before-respond” pattern in AWS?
View question →
A workload needs near-real-time streaming inputs to update an embedding index and serve low-latency semantic search. Which AWS architecture best addresses the latency and operational needs while keeping the embedding pipeline manageable?
View question →
A content moderation pipeline must classify user text for policy categories before it reaches a generative model. Which approach most improves safety without harming user experience?
View question →