Skip to main content

01 — Basic RAG

Set up a knowledge base, add content, and search.

02 — Document Management

Add, remove, and manage documents in a knowledge base.

03 — Chunking Strategies

Compare TextChunker and RecursiveChunker on the same content.

04 — Custom Embedder

Use different embedding providers.
Requires VOYAGE_API_KEY for the Voyage AI embedder.

05 — Vector Databases

Compare InMemoryVectorDB and PgVector.

06 — Agent with Knowledge

Connect a knowledge base to an agent by passing a Knowledge instance directly.

07 — Reranking

Improve search results with Cohere reranking.
Requires COHERE_API_KEY for reranking.