Tuning vector store chunk size and overlap for long clauses

OAI-SE Responses API & Vector Stores Hard Question 10 of 24

Sundridge Legal retrieves statutes from a vector store built with the default chunking settings. Clauses that straddle a chunk boundary come back missing their second half.

Which chunking settings give retrieval the most cross-boundary context?

Show answer and explanation

Amax_chunk_size_tokens 1,600 with chunk_overlap_tokens 800, twice the default chunk

The defaults are max_chunk_size_tokens 800 with chunk_overlap_tokens 400, already the ceiling because chunk_overlap_tokens must not exceed max_chunk_size_tokens / 2. More cross-boundary context therefore means raising both together, inside the 100-to-4,096-token range. Overlap of 600 against an 800-token chunk is rejected outright, keeping overlap at 400 while doubling the chunk lowers the ratio, and halving both produces more boundaries than the default did.

Source: developers.openai.com/api/docs/guides/retrieval

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

Next question Start 5 timed questions Browse all 24 original OAI-SE practice questions