Repeated disclaimers crowding out content in retrieved chunks

GenAI Engineer Data Preparation Medium Question 1 of 45

A Generative AI Engineer indexes 9,000 safety bulletins whose every page carries a 120-word legal disclaimer and a navigation menu. Retrieved chunks are often dominated by that repeated text, and the LLM answers with the disclaimer instead of the procedure.

Which change to the data pipeline addresses this?

Show answer and explanation

AStrip the disclaimer and menu text during parsing, before chunking

The RAG data pipeline calls for preprocessing extracted text to remove irrelevant or noisy information such as headers and footers, before chunking, so the boilerplate never reaches the embedding. Stripping it after retrieval cleans the prompt but leaves the vectors built from disclaimer-heavy text, so the right chunk still ranks badly and is often never retrieved to clean. Larger chunks carry the same disclaimer alongside more procedure, and near-duplicate removal misses boilerplate sitting inside otherwise distinct chunks.

Source: docs.databricks.com/aws/en/agents/tutorials/ai-cookbook/qua…

Anonymous, no account needed. Your tally stays in this browser.

Next question Start 5 timed questions Browse all 45 original GenAI Engineer practice questions