Question 2 of 5

Why is there no single best chunk size?

A service name and its setting ended up in different passages. Retrieval found the number but lost its meaning.

A rental policy says “Bikes can be returned until 21:00.” The next line reads “On Sundays, until 18:00.” If the lines are stored separately, a Sunday question might retrieve only the general rule. Keep both lines in one passage and read it again as someone planning a Sunday return.

WHERE TO START

If a rule and its exception fall into separate passages, which will the reader see?

What to know before this question
Topic example · The first search results

Change the limit from 2 to 1. Which document disappears?

ranked = ["faq", "guide", "notes"]
print(ranked[:2])
Line notes
  1. The documents are already in search order.
  2. Print the first two documents in the list.

How would you rate your understanding?

This is your self-assessment. Progress is saved in this browser.

Not rated yet

← Back to Retrieval and RAG