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:
- Runs a vector similarity search across all activated document collections simultaneously.
- Collects a pool of candidate passages from across all documents.
- Reranks the pool using an AI model to surface the most relevant results.
- 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
| Feature | Description |
|---|---|
| Marketplace | Browse and activate from a shared library of curated document collections. |
| Bulk activation | Activate multiple documents at once with shared settings. |
| Per-document context | Add custom instructions to guide the AI's use of each document. |
| Post-processing prompts | Control how the AI formats and presents content from each specific document. |
| Cross-collection search | Every query searches all active collections in parallel. |
| Reranking | An AI reranker evaluates candidate passages and selects the most relevant before responding. |
| Search tuning | Configure candidate pool size and the number of final results returned. |
Setup Flow
Follow these steps to configure the plugin:
- Activate documents — browse the marketplace and activate the collections your agent needs.
- Configure document settings — add custom context and formatting instructions per document.
- Configure the function tool — control how the AI invokes the plugin and tune search behavior.
- Manage active documents — view, update, and deactivate documents as your needs change.
Prerequisites
Before creating a plugin instance:
- Know which document collections your agent needs to answer questions from.
- Confirm the relevant documents are available in the marketplace.
- Decide whether any documents need custom formatting instructions for their specific content type.