QuestionQ100

VerifiedData Preparation

A Generative AI Engineer at a financial services company has built a RAG system that ingests quarterly reports, compliance documents, and customer information. These documents are very long. The system currently splits every document into fixed-size chunks and embeds those chunks directly. It works well for specific, isolated facts, but has difficulty answering questions that require understanding relationships among different document sections or retaining context across related information. The engineer needs to try to improve this by changing the chunking method.

Which change should they choose?

Explanation

Enriching each embedded chunk with a summary of its entire parent document supplies document-level context alongside the chunk’s local details. This improves semantic retrieval and enables the model to relate a passage to information in other sections of the same long document. AWS guidance notes that summaries increase semantic coverage and improve similarity-search accuracy, while hierarchical parent context provides more comprehensive context during retrieval.

Learn more

Community Discussion

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