Skip to main content

llama-index tools vectara query integration

Project description

Vectara Query Tool

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

Usage

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

To use this tool, you'll need the following information in your environment:

  • VECTARA_CUSTOMER_ID: The customer id for your Vectara account. If you don't have an account, you can create one here.
  • VECTARA_CORPUS_ID: The corpus id 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.agent.openai import OpenAIAgent

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

agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())

agent.chat("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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_tools_vectara_query-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_tools_vectara_query-0.1.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_vectara_query-0.1.0.tar.gz
Algorithm Hash digest
SHA256 db5d2d8d1151adf96ffd38835f0363f1da309882f9d07c7f82ad229fe76e9333
MD5 ba79dae457ac9171887c0c7333772a08
BLAKE2b-256 9839cc161048237e2cf0f2583c14bdda6730ae8dcd7ae590b70d7852d1149f3c

See more details on using hashes here.

File details

Details for the file llama_index_tools_vectara_query-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_vectara_query-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbd5512e89eef04d305e88c05d4e8e4b28197c9eee272c2ef85541aebb9d36c4
MD5 62982a4cd202e8205b594e4fe596f5a0
BLAKE2b-256 f707d37e4a85f61c371f97d59c89e3c857fc7220f64fc77c14fc0d14dc6ffa0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page