Ollama Web Search
Ollama Web Search searches the internet with Ollama’s web search service and returns the results it finds. It can run a single search or one search for each item in a list.
You can use it as a step in a flow, with the search in Search Query, or as a tool for an agent: connect its Tool output to the agent’s Tools input and the agent decides when to search and what to type.
When to use it
- You already use Ollama cloud models and want your agent to search the internet with the same account.
- You need to look up a list of companies, products or people, one search per item.
- An agent has to check current facts before answering.
- You want to collect a few relevant results to summarise with AI.
Configuration
You need an Ollama Cloud API credential with a key from your Ollama account. See Credentials.
| Field | What it does |
|---|---|
| Search Query (required) | What you want to search for. When the component is used as a tool, the agent writes the search. |
| Ollama API Key (required) | Your Ollama account key. |
Processing a list
| Field | What it does |
|---|---|
| Batch Input | A list of items, for example company names. One search is run for each. |
| Batch Mode | When on and there is a list in Batch Input, a search runs for each item and all results come out together in one list. On by default. |
| Parallel Executions | How many searches from the list run at the same time, from 1 to 5. Default: 3. |
| Skip if Empty Batch Input | When on and the list arrives empty, the component doesn’t run and neither do the following steps. On by default. |
| Skip Branch if Empty Output | When on and the search returns nothing, the following steps don’t run. On by default. |
Advanced options
| Field | What it does |
|---|---|
| Limit | How many results each search returns, from 1 to 10. Default: 3. |
| Tool Name | The name the agent sees for the tool. |
| Tool Description | What the agent reads to know when to search. |
| Tool response mode | How the result is handed to the agent. Leave Standard. |
Output
- Data: a list with one item per result found. If the key isn’t valid or your account’s search limit is exceeded, the run stops with a message explaining why.
- Tool: the search ready for an agent. Connect it to the agent’s Tools input.
Example
A sales team wants a quick profile of each company on its prospect list.
- Connect the list of companies to the Batch Input of Ollama Web Search.
- In Search Query, switch to Mapped and choose the field with the company name.
- Leave Limit at
3. - Connect the Data output to an agent that writes a profile of each company from what was found.
Related components
- DuckDuckGo Search: web search without a credential.
- Serp Search API: Google results through SerpApi.