Two ways to bring your data
You can either stuff the relevant text into the prompt or retrieve it on demand. Stuffing is simpler — paste the doc and ask. Retrieval is leaner — embed the corpus, fetch the top-k chunks, paste only those. Both are valid; the right answer depends on how big and how variable your knowledge base is.
The decision rule
If the knowledge base fits comfortably in context AND the same content feeds most queries, stuff with prompt caching — the cache makes repeated reads cheap. If the knowledge base is much larger than context OR queries vary widely, retrieve. cwkPippa stuffs the persona + vault index (stable, ~30KB cached) and retrieves specific files on demand via the Read tool.
What good RAG looks like
Quality embedding model (the SDK does not ship one — pair with Ollama bge-m3, OpenAI text-embedding-3, or similar), reasonable chunk size (512-1024 tokens with overlap), a re-ranker if you have many candidates, and provenance preserved through to the answer so you can cite.