Question 3 of 5

When should you compare lexical, vector and hybrid search?

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?

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