Documentation
¶
Overview ¶
Command rag shows bring-your-own retrieval: a trivial in-memory Retriever wired two ways. WithRetrieval is classic RAG (top-k auto-injected as context on each user turn); RetrievalTool is agentic RAG (the model decides when to search and with what query). Bide ships no vector store or embedder: you implement Retrieve against your own infrastructure. This example uses naive substring matching to stay offline-runnable.
OPENROUTER_API_KEY=sk-... go run ./examples/rag
Click to show internal directories.
Click to hide internal directories.