Skip to content
Truffl.
Browse chapters

MCP documentation Workflows

Knowledge and retrieval

Connect approved sources to an agent and prove which published knowledge revision retrieval uses.

Create a base and add a source

  1. In Workspace Settings MCP, list or create the knowledge base in the selected workspace.
  2. Use add_knowledge_source for up to 32,000 UTF-8 bytes of text, a file up to 64 KiB, or one public web page. Reuse the same request ID when retrying. Use the upload link for larger files, OCR, or crawling multiple pages. Inspect the source and its latest ingestion job before relying on it.
  3. Review and publish the intended source or index in Truffl. Keep the base ID and published revision so you can compare later runs.

Preview and attach retrieval

  1. Ask Settings to preview a query against the exact knowledge base and published revision. Compare source references and returned snippets against Truffl.
  2. Use Builder to stage the knowledge bindings, retrieval settings and turn budget on the intended agent draft. Test the candidate and check the index revision shown in Evals.
  3. After a controlled call, use Evals to inspect the actual retrieval decision and the index revision used for that call. A newer published index has its own revision.
Example prompt
Preview retrieval for ‘Can I return an unopened item?’ against <knowledge base ID> and its selected published revision. List the source references and ask before changing configuration.