AnyLearn
All lessons

rag

17 free lessons tagged rag across AI, Business, Programming. Each one is a short sequence of focused steps with narration and a five-question quiz at the end — take them in any order, no signup required.

AI
advanced

The Options Nobody Compares, and Changing Your Mind

The fine-tuning versus retrieval framing hides several options that are often better than either. This lesson covers long context and why it does not replace retrieval, prompt caching as a cost lever, agentic retrieval, continued pretraining, and how to revisit a decision that was right when you made it.

8 steps·~12 min
AI
advanced

Building Both: LoRA, Data, and the Retrieval Pipeline

The decision is only half the work. This lesson covers what building each actually involves: parameter-efficient fine-tuning with LoRA and why it made the technique accessible, the training data problem that stalls most projects, the retrieval pipeline end to end, and how to combine them into one system.

8 steps·~12 min
AI
advanced

What Each Technique Actually Changes

Fine-tuning and retrieval are usually presented as alternatives when they change different things. This lesson separates them precisely: fine-tuning adjusts weights and teaches behaviour, retrieval supplies context and teaches nothing, and the question that decides between them is whether your problem is knowledge or form.

8 steps·~12 min
AI
advanced

Hybrid Search, Tuning, and Running It in Production

Dense vectors miss exact terms, so production retrieval combines them with lexical search. This lesson covers hybrid retrieval and reciprocal rank fusion, a tuning method that starts from a stated recall target, capacity planning, the operational failures that catch teams, and how to choose between running your own index and buying a service.

7 steps·~11 min
AI
advanced

Why Exact Nearest Neighbour Search Does Not Scale

Vector search exists because exact nearest neighbour search is intractable at scale and the curse of dimensionality defeats the classical index structures. This lesson covers distance metrics and when each is right, why brute force costs what it does, why k-d trees fail above a few dozen dimensions, and the recall-latency trade that every approximate index makes.

8 steps·~12 min
AI
advanced

Grounding and Detection: Catching It Before the User Does

Since a model cannot judge its own output, detection has to compare it against something external. This lesson covers grounding through retrieval and why it reduces rather than eliminates the problem, then the detection methods that work: self-consistency sampling, entailment checking against sources, claim decomposition, and chain-of-verification.

9 steps·~14 min
Business
intermediate

Company Brain Architecture: Connectors, Permissions, and Freshness

The hard parts of an internal knowledge system are not the ones a public RAG tutorial covers. This lesson builds the architecture: connectors and the ingestion path, the permission problem and why early binding beats late binding, oversharing inherited from your existing access control, entity resolution across silos, and the staleness and conflicting-truth problems that break internal corpora.

11 steps·~17 min
AI
intermediate

RAG Evaluation in Production: Metrics, Tools, and Cadence

Learn how to systematically evaluate Retrieval-Augmented Generation systems in production using RAGAS, TruLens, and Phoenix — covering golden sets, retrieval drift, embedding drift, and cost-aware eval scheduling.

12 steps·~18 min
AI
advanced

Context Engineering for Long-Running Agents

How to manage, compress, and strategically fill the context window in long-horizon agents — covering summarization checkpoints, scratchpad memory, retrieval injection, prompt caching, and compaction triggers.

12 steps·~18 min
AI
advanced

Evaluating RAG Pipelines with RAGAS

A rigorous guide to measuring RAG quality using RAGAS metrics — faithfulness, answer relevancy, context precision, and context recall — plus how to build a golden dataset and recognize where automated metrics fall short.

12 steps·~18 min
AI
advanced

Agentic RAG: Self-RAG, CRAG, and Multi-Hop Reasoning

Go beyond naive RAG pipelines. Learn how Self-RAG, Corrective RAG, and retrieval-as-tool patterns let an LLM decide when, what, and how many times to retrieve — enabling reliable multi-hop reasoning over complex knowledge bases.

12 steps·~18 min
AI
advanced

HippoRAG and RAPTOR: Hierarchical and Memory-Style RAG

Deep dive into two advanced RAG architectures — HippoRAG's hippocampal-inspired knowledge graph indexing and RAPTOR's recursive summarization tree — and why both dramatically outperform flat vector retrieval on multi-hop questions.

12 steps·~18 min
AI
advanced

GraphRAG: Knowledge-Graph Augmented Retrieval

Go beyond dense-vector search: learn how Microsoft GraphRAG extracts entities, builds a knowledge graph, clusters it with the Leiden algorithm, and serves both local and global queries with community summaries — delivering answers that classic RAG cannot.

12 steps·~18 min
AI
advanced

RAG Query Rewriting: HyDE, Multi-Query, Decomposition, and Step-Back

Master four advanced query rewriting techniques that dramatically improve RAG retrieval quality: Hypothetical Document Embeddings, multi-query expansion, query decomposition, and step-back prompting. Learn when to reach for each and how to implement them.

12 steps·~18 min
AI
advanced

RAG Chunking Strategies: From Fixed-Size to Late Chunking

A deep dive into how you split documents for retrieval-augmented generation — fixed-size, recursive, semantic, hierarchical, and late chunking — with concrete trade-offs and code for each approach.

12 steps·~18 min
Business
advanced

The Data Foundation for Enterprise AI

The model is rarely the bottleneck. This lesson examines why data readiness — quality, governance, lineage, and access — is the primary constraint on enterprise AI value, with a practical scorecard, and a clear-eyed comparison of RAG versus fine-tuning economics.

8 steps·~12 min
Programming
intermediate

Vector Databases and Similarity Search: Unlocking Semantic Understanding

Dive into the world of vector databases, specialized systems designed to store and query high-dimensional vector embeddings efficiently. Learn how these databases power semantic search, recommendation systems, and large language model applications by finding semantically similar data points at scale.

10 steps·~15 min

Related topics