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
Please note that this usage example relies on version >=0.3.0.
This tool has a more extensive example usage documented in a Jupyter notebok 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.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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_tools_vectara_query-0.3.1.tar.gz.
File metadata
- Download URL: llama_index_tools_vectara_query-0.3.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
407e906aa5b45c102cea48ae9fc1f4a95a340a6a13eaec6617439b01832995fd
|
|
| MD5 |
01f7c4a2f5179ddf30f50adedf3f7bd2
|
|
| BLAKE2b-256 |
69d0cd4cade15ad03b05526e54ce060918a7e75215e53856f9793458c08cda36
|
File details
Details for the file llama_index_tools_vectara_query-0.3.1-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_vectara_query-0.3.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
539e547232f8a353edbd04f380751c70b4a381a8040b30f4dfde318b2e4bac9e
|
|
| MD5 |
2f7ec85cdb85aae0a7c4700c4c3cbdc6
|
|
| BLAKE2b-256 |
c4806b55a95cc800f996f2e9410d71257967830be00ea3dacf2fe846c04894f7
|