Skip to main content

Overview

Data Foundry Knowledge connects an agent to collections held in data-foundry. The agent can search for passages, ask for a cited answer, or quote the exact text of a passage. budprompt proxies data-foundry’s MCP surface ({DATA_FOUNDRY_BASE_URL}/v1alpha/mcp) to the model, so retrieval itself is not implemented in Bud.
The tool is off by default. Each deployment must turn it on. See Deployment.

What the Agent Sees

The model sees the tools with a df_ prefix, so they cannot clash with another toolset’s search: Only these four tools can be exposed. data-foundry’s other MCP tools, which manage threads, notebooks, rebuilds and generations, are never shown to the agent, whatever its configuration says.

Configuration

These fields are not in the configuration on purpose:
  • No endpoint or credential. The data-foundry URL and credential are deployment-wide budprompt settings, because a prompt configuration is stored unencrypted.
  • No scopes. budprompt removes scopes from every call.

Collections

Each entry names a collection by its identifiers:
budapp accepts at most 50 entries and removes duplicates. It refuses NAME entries (a match on a display name), because a display-name match cannot be turned into a hodor scope. Set them with the native-tools endpoint:
If a save does not include collections, budapp keeps the collections that are already stored. Thus a save from the configuration form does not delete them. To clear them, send an empty list.
The server never adds collections for you. If no collections are set, the tool is saved but stays inactive, and the agent runs without it. An empty namedCollections would mean every collection the credential can read, so budprompt does not load the tool in that case.

Confinement

  • budprompt forces the configured collections as namedCollections on every df_search, df_answer and df_snip-by-query call, and replaces anything the model sent. Named collections can only narrow what the credential can see. They cannot widen it.
  • A df_snip by locator cannot carry namedCollections. budprompt checks the locator’s sync and collection against the configured collections, and refuses a locator outside them before it calls data-foundry.
  • df_list_collections is not confined. namedCollections cannot narrow it, so it shows the model every collection that the deployment’s data-foundry credential can read, not only this agent’s. This is why it is off by default.

Stateless Answers

budprompt calls data-foundry as a service principal that all users of an agent share. A stored conversation thread would thus be readable by all of them. For this reason df_answer never stores a thread: budprompt forces temporary to true, and removes thread, store, searchResultsRef and requestId from every call and from the schema that the model sees. Each answer stands alone.

Deployment

Two flags must be on, one for each service: budprompt also needs DATA_FOUNDRY_BASE_URL and a credential. DATA_FOUNDRY_AUTH_MODE selects the credential:
  • hodor exchanges DATA_FOUNDRY_HODOR_KEY at HODOR_URL for a short-lived assertion for tenant DATA_FOUNDRY_HODOR_TENANT, before each call.
  • static sends DATA_FOUNDRY_API_KEY as the bearer. Use it only for development.
If you do not set the mode, budprompt uses hodor when HODOR_URL is set, and static if not. Keep the keys in the environment’s SOPS-encrypted secrets file. If a setting is missing, budprompt loads the agent without the tool and logs why. It does not fail the run.