Retrieve by an exact rare identifier

Read identifiers and quoted passages in short groups. · 186 words

An exact rare identifier is a distinctive string, such as an order number or catalog code. Exact retrieval looks for that complete string in the document collection, often through an inverted index that maps each string to the documents containing it. If the query is "M-1042", records for "M-1042" and "M-1043" are different keys. A system should not treat one as the other merely because they look alike. Rare identifiers are useful because a common word may occur in thousands of records, while a precise code usually points to very few.

Suppose four museum-shop records are indexed. The record for "M-1042" says, "The blue mug labeled M-1042 is on shelf 4. It costs 18 dollars. The handle points right." Another record describes mug "M-1043" on shelf 2 for 15 dollars. Searching exactly for "M-1042" retrieves the first record, not its similar neighbor. A grounded generator can then answer, "M-1042 is a blue mug on shelf 4, and it costs 18 dollars." Every part comes from the retrieved record. If the identifier were absent, the generator should say it could not verify the details instead of guessing.

Check your recall

What does exact retrieval return for "M-1042," and what grounded answer can be generated from it?

Check your answer

It returns the record for mug M-1042. The grounded answer is that M-1042 is a blue mug on shelf 4, costs 18 dollars, and has its handle pointing right.

Sources and credits

Original KeyTouch lesson. Background reading · Lewis et al. · Retrieval-Augmented Generation.