Chunks longer than the embedding model's 512-token limit
GenAI Engineer
Data Preparation
Medium
Question 41 of 45
A Generative AI Engineer chunks lab protocols at 1,600 tokens and embeds them with a model whose maximum input is 512 tokens. Questions about steps near the end of each protocol return nothing relevant, while questions about the opening steps work.
What should the engineer change in the pipeline?
Show answer and explanation
BRe-chunk the protocols at 400 tokens and embed them again at that size
Chunks longer than the embedding model's maximum token limit are truncated, so text past 512 tokens never enters a vector and cannot be retrieved at any depth, which is why only the ends of protocols are unreachable. Chunking at 400 tokens puts every chunk inside the limit so the whole protocol gets embedded. Embedding dimension sets vector width, not how much input the model reads. Overlap still submits 1,600-token chunks. Truncating each protocol to 512 tokens discards the later steps outright.
Source: docs.databricks.com/
Anonymous, no account needed. Your tally stays in this browser.
Practice by topic: RAG questions