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 3 of 5
A question contains the exact code ERR-42, while another user describes the problem as “I cannot sign in.” Different queries need different retrieval checks.
A log reports E173. An exact text match can find the page containing that code. A person might describe the same problem as “the screen went blank after an update”. A search based on meaning can help with that wording. Try both queries and see whether each search method returns the relevant guide.
WHERE TO START
How would you look up an exact error code? What if someone described it in other words?
Change the limit from 2 to 1. Which document disappears?
ranked = ["faq", "guide", "notes"]
print(ranked[:2])