Skip to main content

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

File details

Details for the file llama_index_packs_query_understanding_agent-0.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_packs_query_understanding_agent-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d9a37d2eca6f109655be4461b684a2165eed5a920da8dd207be6f41228742895
MD5 ee7266dec68741ea4547d5ea96717b92
BLAKE2b-256 ef3d808c5974a748375b4d6af219d0b429a1f20469ac453c9b5ab90446bc0ba8

See more details on using hashes here.

File details

Details for the file llama_index_packs_query_understanding_agent-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_packs_query_understanding_agent-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e30c124bab849f5dc8311c8753dc53154c8f0f576d4d1bf34ce5214f84d348f
MD5 5a1a4b7f911f4669fbb5a3684b6b0612
BLAKE2b-256 ef43a4cc84194d6ad1e10cac7806705280ac9aa837c6fb965d2b1840bb236faa

See more details on using hashes here.

Supported by

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