Build permission-aware document answers with versioned chunks, measured retrieval, grounded responses and safe index updates.
Learning path
- Retrieval corpus contracts: identity, permissions and document lifecycle
- Chunking documents: preserve section identity and answer boundaries
- Retrieval design: compare lexical, semantic and reranked candidates
- Grounded answers: require passage support and a no-answer path
- RAG evaluation: separate retrieval recall from answer support
- Retrieved text as untrusted data: keep instructions and tools separate
- Index freshness: publish complete revisions and remove stale chunks
- Project: answer support-policy questions with permission-aware evidence
Connected foundations
Use the earlier data and model boundaries as prerequisites.
Practice
Continue into another subject: Recommendation Systems Tutorial.
Continue the workflow: Cross-modal retrieval: candidate pools, ranking and versioned indexes.
Continue the workflow: Graph-grounded retrieval: candidate recall and unsupported claims.
For the full track and its related lessons, open Retrieval-based AI.
Extraction, routing and index contracts
- Retrieval query routing: preserve exact constraints before search
- Document extraction: preserve passage provenance through OCR and parsing
- Embedding migrations: keep query and document vectors in one space
- Filtered vector search: measure ANN recall inside the permitted set
Ranking, context and answer support
- Hybrid retrieval: fuse exact terms and semantic candidates by rank
- Reranking: spend model budget on a bounded candidate window
- Context packing: retain independent evidence under a token cap
- Claim-level citations: verify each answer against its passage
Operations and release gates
- Retrieval caches and conversation turns: recheck access every time
- Retrieval release gates: evaluate slices before changing an index
Evidence beyond plain passages
- Multi-hop retrieval: build evidence chains with bounded searches
- Table retrieval: keep numeric cells attached to their labels
- Multimodal retrieval: connect images, OCR and text to one asset identity
- Incremental retrieval ingestion: replay events without reviving deleted passages
- Retrieval traces: locate the stage that lost the answer
- Query expansion: add recall terms without changing the user's question
Graph, correction and evaluation
- Knowledge graph retrieval: prove every edge in the path
- Corrective retrieval: retry only when evidence is insufficient
- Retrieval evaluation labels: build a trustworthy judged set
- Federated retrieval: search multiple stores without losing policy or time budgets
Structure, ranking and time
- Hierarchical retrieval: find a section before selecting its evidence
- Late-interaction retrieval: score token matches without one-vector blur
- Temporal retrieval: answer as-of questions from valid evidence
- Near-duplicate retrieval: collapse copies without hiding independent evidence
Language, code, media and training data
- Multilingual retrieval without losing names, units or permissions
- Code repository retrieval by symbol, call site and commit
- Audio and video retrieval with timecoded evidence
- Hard-negative mining without training against true answers
Scans, geography, records and dialogue
- OCR retrieval: preserve reading order, page regions and uncertainty
- Geospatial retrieval: combine meaning, distance and jurisdiction
- Database retrieval: link a question to schema and trace the rows
- Conversational retrieval: rewrite the follow-up without changing its scope
Visual evidence, event windows and test probes
- Image-region retrieval: cite the object, not merely the image
- Event-window retrieval: answer from complete time slices
- Entity linking for retrieval: resolve aliases before searching facts
- Counterfactual retrieval tests: change one fact and trace the failure
Lexical scoring, compression, snapshots and trust
- Lexical retrieval: analyzers, fields and exact identifiers
- Vector compression: spend memory without losing the answer
- Snapshot-consistent retrieval across changing indexes
- Corpus poisoning: admit evidence before ranking it
Score calibration, feedback, consent and freshness
- Score normalization: combine retrievers without inventing certainty
- Click feedback: correct exposure bias before tuning retrieval
- Personalized retrieval: preferences never grant access
- Index watermarks: measure what the retriever has actually seen
Sparse search, sharding, stable paging and chunk boundaries
- Learned sparse retrieval: weighted terms without dense-vector search
- Retrieval shards: fanout, replica lag and incomplete top-K results
- Stable search pagination: point-in-time views and safe cursors
- Chunk boundaries: test whether the answer survives the split
Query safety, snippets, index cutovers and drift
- Safe search query parsing: operators, filters and literal identifiers
- Search snippets: highlighting, offsets and safe evidence previews
- Index alias cutovers: switch retrieval generations without mixed results
- Retrieval drift: monitor query slices and shadow a candidate safely
Facets, tenant isolation, suggestions and graph search
- Faceted retrieval: trustworthy counts under permission filters
- Multi-tenant retrieval: isolate indexes, routes and noisy neighbors
- Retrieval autocomplete: useful suggestions without query leaks
- HNSW retrieval: candidate budgets, graph cost and recall curves
Vector metrics, spelling, compaction and deadlines
- Vector similarity metrics: normalization changes the ranking
- Spelling correction in retrieval: suggest a fix, preserve the original
- Retrieval tombstones: compact indexes without reviving deleted evidence
- Retrieval deadlines: cancel optional work and label incomplete evidence
Lexical ranking, result grouping and recovery
- BM25 ranking: tune term saturation and document length by field
- Phrase and proximity retrieval need a token-position contract
- Collapse retrieval results by document without losing the best passage
- Restore a retrieval index with schema, deletion and relevance proofs
IVF search, lexical coverage and claim conflicts
- IVF vector search: train centroids, budget probes, measure misses
- Lexical term coverage: require enough words without losing valid hits
- Conflicting retrieved claims: compare scope before choosing an answer
