Notebooks
W
Weaviate
Agno Weaviate Query Agent

Agno Weaviate Query Agent

vector-searchvector-databaseretrieval-augmented-generationllm-frameworksfunction-callingweaviate-recipesintegrationsagnoPythongenerative-aillm-agent-frameworks

Open In Colab

Weaviate Query Agent with Agno

This notebook will show you how to define the Weaviate Query Agent as a tool through Agno.

Requirements

  1. Weaviate Cloud instance (WCD): The Weaviate Query Agent is only accessible through WCD at the moment. You can create a serverless cluster or a free 14-day sandbox here.
  2. Install Agno with pip install agno. We're using version 1.1.8 for this notebook
  3. Install the Weaviate Agents package with pip install weaviate-agents
  4. You'll need a Weaviate cluster with data. If you don't have one, check out this notebook to import the Weaviate Blogs.

Agno Resources

Learn more about Agno and how to build multimodal agents here!

Import libraries and keys

[1]
[2]

Define Query Agent function

[3]

Define agent

[9]

Query time

[11]
Output()

None
sys:1: ResourceWarning: Unclosed socket <zmq.Socket(zmq.PUSH) at 0x11921f150>
ResourceWarning: Enable tracemalloc to get the object allocation traceback