Index Ai Academy
Glossary · Phase 1 · Building with LLMs

Citations

Pointers in an answer to the passages it came from, so a reader can check the claim.

Try it now

When an answer is wrong, first ask which of the two failed. The fixes are completely different.

Learn it properly

Making RAG good · Hybrid search, reranking and citations. About 30 minutes.

Other terms from the same lesson

  • BM25: The standard keyword-search score: it rewards documents that use the question's words, especially rare words, without over-rewarding repeats.
  • hit rate: The share of test questions where the right document appears in the top k results.
  • hybrid search: Combining keyword search with embedding search, so you get both exact-word matches and matches in meaning.
  • IDF: Inverse document frequency: a weight that grows as a word appears in fewer documents, so rare words count for more in keyword search.
  • keyword search: Finding documents that contain the words in the question. It catches exact names and codes that meaning-based search can miss.
  • mean reciprocal rank: A search score: for each test question, 1 ÷ the rank of the first right document, averaged. 1 means the right one always comes first.
  • reciprocal rank fusion: A simple way to merge two ranked lists: each document scores 1 ÷ (60 + its rank) in each list, and the scores are added.
  • reranker: A slower, more careful model that re-orders the top search results by how well each one actually answers the question.
  • stopwords: Very common words such as "the" and "a" that keyword search ignores because they say little about what a document is about.
Keep learning

More in plain English.

1286 terms in the glossary, each with the lesson that teaches it.

1286 terms

The glossary

Every word you'll meet in AI and machine learning, explained in everyday language.

Phase 1 · lesson 30 min

Making RAG good

Hybrid search, reranking and citations.

Never trained an AI? Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account. Teach it to write