> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fetchhive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Vector Search

> Add Vector Search to an agent so it can search your workspace Knowledge Base

Vector Search lets your agent search your workspace Knowledge Base from the Fetch Hive editor.

## What it does

This tool connects an agent to the Knowledge Base in your workspace. Use it when you want the agent to retrieve information from your Knowledge Base before it answers.

## Adding the tool to an agent

1. Open an agent in the editor.
2. Click the button with the tooltip **Add MCP Tool or Sub Agent**.
3. In **MCP Tools**, click **Vector Search**.
4. Select the Knowledge Base this tool should search, then add the tool.

The tool is created only after a Knowledge Base is selected. If no active Knowledge Base exists yet, create one first.

## Configuration

Vector Search uses the **Knowledge Base** field in the settings sheet to choose which Knowledge Base content the agent searches.

| Option             | Description                                                                    |
| ------------------ | ------------------------------------------------------------------------------ |
| **Knowledge Base** | Chooses which Knowledge Base content the agent searches when it uses this tool |

1. Select the **Vector Search** node in the editor.
2. In the settings sheet, open **Knowledge Base**.
3. Choose the Knowledge Base content you want this agent to search.

The selected item appears on the tool node summary in the canvas. Existing Vector Search tools without a Knowledge Base stay disabled until you select one.

If a Vector Search tool somehow has no active Knowledge Base at run time, the agent run stops with a configuration error instead of silently continuing without search.

## Use cases

* Answer questions from internal documents or product docs.
* Build support or ops agents that search a curated Knowledge Base.
* Retrieve source material before the agent writes a response.

## Notes

* Vector Search depends on content in your Knowledge Base. See [Knowledge Bases](../../knowledge-base/overview) and [Creating & Editing](../../knowledge-base/creating-and-editing).
* To test how retrieval changes an answer, use [Testing with Chat](../testing-with-chat).
* To add or remove tools from an agent, see [Creating and Configuring](../creating-and-configuring).
