Skip to main content

Setup

Install Agno, the Weaviate client, the OpenAI client, and the PDF reader:
Set your OpenAI API key for the default embedder and agent model:
Start Weaviate locally:
See Weaviate’s local Docker quickstart for other deployment options.

Example

agent_with_knowledge.py

Async Support

Use asynchronous operations when knowledge loading or search must not block the event loop.

async_weaviate_db.py
The async methods use WeaviateAsyncClient for non-blocking vector operations.

Weaviate Params