← Back to hub
RAG / retrieval
In one line
Feed the model your own docs so it answers from facts, not guesses.
The flow
- Load docs.
- Split into chunks.
- Embed with
init_embeddings. - Store vectors (pgvector, Chroma).
- Retrieve closest chunks and pass to the model.
Agent style: wrap retrieval as a tool so the agent searches only when needed. More flexible than a fixed chain.
Links
My notes
Add your own findings here as you learn.