Learn · RAG: chunking, embeddings & vector search · CCAR-F

Embeddings and vector search

Embeddings put similar meanings close together; vector databases find neighbours fast. Add keyword search for exact identifiers.

Key ideas

Worked example: Embedding and nearest-neighbour search

Passages and questions are embedded with different input_type values, then ranked by dot product. In production a vector database replaces the NumPy line.

Exam traps

Official docs

Practise CCAR-F questions · Next lesson: Contextual retrieval and reranking