Docs/Using Plugins/Public Documents

Public Documents

The Public Documents plugin connects your agent to a curated library of searchable document collections. When a user asks a question, the agent runs a semantic search across all activated documents, reranks the results by relevance, and uses the most relevant passages to compose a grounded answer.


How It Works

When a user asks a question, the plugin:

  1. Runs a vector similarity search across all activated document collections simultaneously.
  2. Collects a pool of candidate passages from across all documents.
  3. Reranks the pool using an AI model to surface the most relevant results.
  4. Returns the top results to the agent, which uses them to answer the question.

The agent is configured to always call this plugin before responding — your documents take priority over the AI's general knowledge.


Key Features

FeatureDescription
MarketplaceBrowse and activate from a shared library of curated document collections.
Bulk activationActivate multiple documents at once with shared settings.
Per-document contextAdd custom instructions to guide the AI's use of each document.
Post-processing promptsControl how the AI formats and presents content from each specific document.
Cross-collection searchEvery query searches all active collections in parallel.
RerankingAn AI reranker evaluates candidate passages and selects the most relevant before responding.
Search tuningConfigure candidate pool size and the number of final results returned.

Setup Flow

Follow these steps to configure the plugin:

  1. Activate documents — browse the marketplace and activate the collections your agent needs.
  2. Configure document settings — add custom context and formatting instructions per document.
  3. Configure the function tool — control how the AI invokes the plugin and tune search behavior.
  4. Manage active documents — view, update, and deactivate documents as your needs change.

Prerequisites

Before creating a plugin instance:

  1. Know which document collections your agent needs to answer questions from.
  2. Confirm the relevant documents are available in the marketplace.
  3. Decide whether any documents need custom formatting instructions for their specific content type.