The llama-index-tools-airweave package currently uses the legacy search API. It will be updated to support the new three-tier search API (instant, classic, agentic) in a future release. The methods and parameters documented below still work but do not expose the new search tiers.
The llama-index-tools-airweave package provides an AirweaveToolSpec that gives your LlamaIndex agents access to Airweave’s search capabilities.
Before you start you’ll need:
The AirweaveToolSpec provides five tools that your agent can use:
search_collectionSimple search in a collection with default settings (most common use case).
advanced_search_collectionAdvanced search with full control over retrieval parameters.
Returns a dictionary with documents list and optional answer field.
search_and_generate_answerConvenience method that searches and returns a direct natural language answer (RAG-style).
list_collectionsList all collections in your organization.
get_collection_infoGet detailed information about a specific collection.
You can use the tools directly without an agent:
Weight recent documents higher in results:
If you’re self-hosting Airweave: