Change the limit from 2 to 1. Which document disappears?
ranked = ["faq", "guide", "notes"]
print(ranked[:2]) Line notes
- The documents are already in search order.
- Print the first two documents in the list.
Question 4 of 5
The relevant document is among ten candidates, but only the first two reach the answer stage. You can improve their order without changing the corpus.
Search picks five manuals and the one for your software version ends up last. A second pass can compare the question more closely with each of those five texts and move the right version up. If that manual never made the shortlist, sorting the shortlisted results again cannot bring it back.
WHERE TO START
The right document ranked fourth. At what point could you still move it up?
Change the limit from 2 to 1. Which document disappears?
ranked = ["faq", "guide", "notes"]
print(ranked[:2])