QuestionQ36

VerifiedData Preparation

A Generative AI Engineer has built a RAG application to find answers to questions about a series of fantasy novels posed on the author’s web forum. The fantasy-novel text is chunked and embedded in a vector store with metadata (page number, chapter number, book title), retrieved using the user’s query, and supplied to an LLM to generate a response. The Generative AI Engineer used intuition to select the chunking strategy and its associated configurations, but now wants to choose the best values more methodically.

Which TWO strategies should the Generative AI Engineer use to optimize the chunking strategy and parameters?

Choose two
Explanation

A representative set of queries and relevant passages can be used with retrieval metrics such as recall or NDCG to compare chunk boundaries and sizes objectively. LLM-as-a-judge evaluation can also score the relevance and quality of RAG outputs or retrieved context for known queries, enabling chunking parameters to be tuned against a defined metric. Amazon Bedrock RAG evaluations support measuring retrieval and response-generation performance, including LLM-based metrics using ground-truth expected text and responses.

Learn more

Community Discussion

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