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

These methods await Weaviate client I/O. In Agno v3.0.4, PDF parsing and embedding still run synchronously and can block the event loop. Offload large ingestion jobs or slow embedding calls to a worker.

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

Weaviate Params