📖 The AI Tool Bible

AI glossary

50 terms across retrieval, training, inference, safety, prompting, and agent architecture. Grouped by category.

agents

architecture

basics

eval

fine tuning

inference

prompting

reliability

retrieval

Approximate Nearest Neighbour (ANN)

Algorithms (HNSW, IVF, ScaNN) that trade a tiny amount of retrieval accuracy for orders-of-magnitude speedups over brute-force nearest-neighbour search.

Bi-encoder

A retrieval model that embeds queries and documents independently. Fast (embeddings can be precomputed) but less accurate than cross-encoders.

Cross-encoder

A retrieval model that processes query and document jointly for each candidate. Very accurate but slow — used as the second stage in rerankers.

Embedding

A dense vector representation of text (or image/audio) that captures semantic meaning. Similar meanings sit close together in vector space.

Hybrid Search

Combining vector (semantic) similarity with traditional keyword search (BM25) — vector search finds meaning-similar docs, keyword search catches exact-match queries the embeddings miss.

Reranking

A second-stage retrieval step where a smaller cross-encoder scores each candidate document against the query, boosting precision above vector similarity alone.

Retrieval-Augmented Generation

A pattern where an LLM is given relevant documents (retrieved from a vector or keyword index) at query time, so its response is grounded in real data rather than only what it memorised during training.

Semantic Search

Search where the query and documents are compared by embedding similarity rather than keyword overlap. Understands meaning across paraphrases.

Vector Database

A database optimised for storing embeddings and performing approximate-nearest-neighbour (ANN) search over millions to billions of vectors.

safety

sampling

tool use

training