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.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_packs_query_understanding_agent-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b3ada6e431de6148ffa4f580ab048885ff7fa48ea224f52d424fa312f835126d
MD5 62f02ef07422f6b2cbf1c5f702f8e544
BLAKE2b-256 10606b8faf49a6ec947529361eb2a17ee89988e697fec21cceb5a20537f72715

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_packs_query_understanding_agent-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 56c487a918c224a857826c9749d1c4b14cc63fdf5eb5f216968ec8e66f8c49aa
MD5 c9502326aec9e0ec56c9264b0e7b5f5f
BLAKE2b-256 7eb7c03cad7e3529aad5b8b3f996e66a61b7eedf4bfbb1b2c277a0761870463c

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