llama-index packs query understanding agent integration
Project description
LlamaIndex Packs Integration: Query Understanding Agent
This LlamaPack implements Query Understanding Agent
Taking inspiration from Humans - when asked a query, humans would clarify what the query means before proceeding if the human sensed the query is unclear. This LlamaPack implements this.
Installation
pip install llama-index
CLI Usage
You can download llamapacks directly using llamaindex-cli
, which comes installed with the llama-index
python package:
llamaindex-cli download-llamapack QueryUnderstandingAgent --download-dir ./query_understanding_agent
You can then inspect the files at ./query_understanding_agent
and use them as a template for your own project.
Code Usage
You can download the pack to a the ./query_understanding_agent
directory:
from llama_index.core.llama_pack import download_llama_pack
# download and install dependencies
QueryUnderstandingAgentPack = download_llama_pack(
"QueryUnderstandingAgent", "./query_understanding_agent"
)
# You can use any llama-hub loader to get documents!
From here, you can use the pack, or inspect and modify the pack in ./query_understanding_agent
.
See example notebook for usage.
Project details
Release history Release notifications | RSS feed
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
Hashes for llama_index_packs_query_understanding_agent-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 732121872057aa18631bbd98b38e88ffc02a1b77bbbc0264f01f379fe758c025 |
|
MD5 | eec454c83f21938feb511982938200b2 |
|
BLAKE2b-256 | 31816d86e828c38e47b8753c52172702957996057474d4b62a924c490a5be5d2 |
Hashes for llama_index_packs_query_understanding_agent-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fb829a0dfdd88abbe8805f387c6f6fc06de9525d441afcb71901bf6968a8ec2 |
|
MD5 | 626704979666ba2ee4d68f4cecafa1c9 |
|
BLAKE2b-256 | c02b18c12670e3e0163416cd89b71764991414f3b77e67d93929ee6e3d5f5907 |