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.
Check out the full notebook here.
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
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_packs_query_understanding_agent-0.3.1.tar.gz.
File metadata
- Download URL: llama_index_packs_query_understanding_agent-0.3.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36b383379eab0cb023e278f9660d8fbbebd516176170f2e1be343ce3f64eee17
|
|
| MD5 |
667d0f95abb07dfecbe3f410e252ebe3
|
|
| BLAKE2b-256 |
e3a698a4eb1d3732ba541b842b31277c8449fb5df8631f67fb392c5a5e33f375
|
File details
Details for the file llama_index_packs_query_understanding_agent-0.3.1-py3-none-any.whl.
File metadata
- Download URL: llama_index_packs_query_understanding_agent-0.3.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b64fdf29d3c2d9690aa170817c178ff435c17bfe9d60203a8a672fed70d97f31
|
|
| MD5 |
98e6416214b4d64e4274aaffd61d8323
|
|
| BLAKE2b-256 |
e25fca875eb82df7aebe672cd2000e5cd7afba279da1f831df56da82acc896ed
|