Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Weaviate Agents

Docs • Reference Guide • Weaviate

Main Branch PyPI version

Weaviate Agents allow you to automatically interface with your Weaviate collections without writing any complex code.

Installation

This package is a sub-package to be used in conjunction with the Weaviate Python Client. Rather than installing this package directly, you should install it as an optional extra when installing the Weaviate Python Client.

pip install -U "weaviate-client[agents]"

If you are having trouble, try to explicitly install/upgrade the agents package via pip install -U weaviate-agents.

Requires Python 3.9+ and a Weaviate Cloud cluster.

Query Agent

The Query Agent turns natural-language questions into precise database operations, making full use of:

  • dynamic filters
  • cross-collection routing
  • query optimization
  • aggregations

It returns accurate and relevant results with source citations. It replaces manual query construction and ad-hoc logic with runtime, context-aware planning that optimizes and executes queries across user collections.

Ask Mode

Ask mode is natural-language in and natural-language out. It searches or aggregates your data, depending on the user's query, and then answers the question with respect to the retrieved data. This can be accessed using the ask() or ask_stream() methods, depending on whether your application needs streaming tokens and progress messages.

import weaviate
from weaviate.agents.query import QueryAgent

client = weaviate.connect_to_weaviate_cloud(cluster_url=..., auth_credentials=...)

qa = QueryAgent(
    client=client,
    collections=["FinancialContracts"],
)

res = qa.ask("Find all contracts signed in 2025")

Ask mode can be additionally be customized with:

  • Output formats for structured outputs
  • LLM-based evaluation of retrieved sources

An async version of ask mode is also available with the async client.

Learn more about ask mode in the official documentation.

Search Mode

Search mode is designed for high quality information retrieval with strong recall and controlled precision, without the final-answer generation. This can be accessed using the search() method.

from weaviate.agents.query import QueryAgent

qa = QueryAgent(
    client=client,
    collections=["ECommerce"],
)
search_response = qa.search(
    query="Find me some vintage shoes under $70",
    limit=10,
    effort="medium",
)

Search mode can be optionally customized with:

  • Different filtering strategies for recall or precision based search priorities
  • Effort level to control search quality versus latency
  • Diversity weights to improve diversity amongst results
  • Pagination of the results set

An async version of search mode is also available with the async client.

Learn more about search mode in the official documentation.

Documentation

Support

Citation

If you use the Query Agent in your research, please consider citing our paper:

@article{query-agent,
  title={Querying databases with function calling},
  author={Shorten, Connor and Pierse, Charles and Smith, Thomas Benjamin and D'Oosterlinck, Karel and Celik, Tuana and Cardenas, Erika and Monigatti, Leonie and Hasan, Mohd Shukri and Schmuhl, Edward and Williams, Daniel and others},
  journal={arXiv preprint arXiv:2502.00032},
  year={2025}
}

License

BSD 3-Clause

Metadata

Release files for weaviate-agents 1.10.1rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for weaviate-agents 1.10.1rc1
File Size Uploaded Provenance Actions
weaviate_agents-1.10.1rc1.tar.gz 273.0 kB With provenance Details for weaviate_agents-1.10.1rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for weaviate-agents 1.10.1rc1
File Interpreter ABI Platform Actions
weaviate_agents-1.10.1rc1-py3-none-any.whl Python 3 none any Details for weaviate_agents-1.10.1rc1-py3-none-any.whl

Total release size: 331.1 kB

Release files / weaviate_agents-1.10.1rc1.tar.gz

Download URL weaviate_agents-1.10.1rc1.tar.gz
Size 273.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c09df1fdc4e46b130e3c437957f72f295c651bed7f31351b50ebcfd19f3bce0e
BLAKE2b-256 checksum
How to use checksums
5c67e31594bb9bcaa7258f8bf606e5d42ec55cfbb66fb7d7ce944687bebe7827
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / weaviate_agents-1.10.1rc1-py3-none-any.whl

Download URL weaviate_agents-1.10.1rc1-py3-none-any.whl
Size 58.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6d9508056c071ea9d92e1d74f6d3b77e422be935db30bd3bce11b2e013598f1
BLAKE2b-256 checksum
How to use checksums
e9ecb4c084713d7413b9f405b2aae91469d576a2a9a1d1446c3ce439322dfb56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for weaviate-agents 1.10.1rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for weaviate_agents-1.10.1rc1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page