Skip to main content

Vectara Query Tool

This tool connects to a Vectara corpus and allows agents to make semantic search or retrieval augmented generation (RAG) queries.

Usage

Please note that this usage example relies on version >=0.3.0.

This tool has a more extensive example usage documented in a Jupyter notebook here

To use this tool, you'll need a Vectara account (If you don't have an account, you can create one here) and the following information in your environment:

  • VECTARA_CORPUS_KEY: The corpus key for the Vectara corpus that you want your tool to search for information. If you need help creating a corpus with your data, follow this Quick Start guide.
  • VECTARA_API_KEY: An API key that can perform queries on this corpus.

Here's an example usage of the VectaraQueryToolSpec.

from llama_index.tools.vectara_query import VectaraQueryToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

# Connecting to a Vectara corpus about Electric Vehicles
tool_spec = VectaraQueryToolSpec()

agent = FunctionAgent(
    tools=tool_spec.to_tool_list(),
    llm=OpenAI(model="gpt-4.1"),
)

print(await agent.run("What are the different types of electric vehicles?"))

The available tools are:

semantic_search: A tool that accepts a query and uses semantic search to obtain the top search results.

rag_query: A tool that accepts a query and uses RAG to obtain a generative response grounded in the search results.

Metadata

Release files for llama-index-tools-vectara-query 0.7.0

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

Source distribution (sdist)

Source distribution for llama-index-tools-vectara-query 0.7.0
File Size Uploaded Provenance Actions
llama_index_tools_vectara_query-0.7.0.tar.gz 6.3 kB Without provenance Details for llama_index_tools_vectara_query-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-tools-vectara-query 0.7.0
File Interpreter ABI Platform Actions
llama_index_tools_vectara_query-0.7.0-py3-none-any.whl Python 3 none any Details for llama_index_tools_vectara_query-0.7.0-py3-none-any.whl

Total release size: 12.4 kB

Release files / llama_index_tools_vectara_query-0.7.0.tar.gz

Download URL llama_index_tools_vectara_query-0.7.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
48df69bd7f4d4493570d242cb657019b2e7ed0cbf4835be80b04de7627562bad
BLAKE2b-256 checksum
How to use checksums
86a0aef32bdb15c0983b4d6e49a51623bd24bc23c91c3b48ef378aa73b1701fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_tools_vectara_query-0.7.0-py3-none-any.whl

Download URL llama_index_tools_vectara_query-0.7.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48389d8975cc37a9e77421ba9306371db9c5dd6a3413051a2e6bba6f0bd75131
BLAKE2b-256 checksum
How to use checksums
9b5038eb7bd4ea845e9af7edaeec7a3f9b3890bf4b6eabb455f115288263bbdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for llama-index-tools-vectara-query 0.7.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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