Help us shape the future of Go! Take the 2026 Go Developer Survey

rag

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL