Research Agent

x

x

Build a simple Research Agent ..

You will need a Brave Search account for the API key.

  1. Let's create a new Agent. Click on: '+ Add New' blue button in top right.

  2. Save as: 'Research Agent'.

Research Agent
  1. Add a Tool Agent. Click on the blue + sign and select Agents > Tool Agent.

  2. Drag & drop onto the canvas.

Add Agents > Tool Agent
  1. Next add a Chat Model. Again, Click on the blue + sign and select Chat Models > ChatOllama.

Add Ollama Model

Use the options at the bottom to resize canvas.

  1. Connect the ChatOllama to the Tool Agent, by dragging a connector from ChatOllama to Tool Calling Chat Model.

  2. Configure the model as illustrated.

Add ChatOllama
  1. Add a buffer - memory to hold the chat context. Increase the size to 20 - so it holds the last 20 messages.

  2. Before we progress any further, lets Save.

Save ..
  1. Bring up the Chat & say 'hello' .. however our Agent can't respond with up-to-date information, as the knowledge is based on when the model was trained.

Limited by the model training date.
  1. Lets add some Tools - Calculator and BraveSearch API .

  2. Select Tools > Calculator and then BraveSearch API

  3. Enter the credentials for BraveSearch API.

Enter your BraveSearch API key
  1. Test with a few questions.

Test Agent

The icons displayed in the response indicates that for the maths question the calculator tool was used and brave-search for my goats cheese and onion recipe ..


Embed or API

  1. Click on the </> menu option in the top right.

Embed or API
  1. Give it a go ..!

API call

Last updated