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

File metadata

File hashes

Hashes for llama_index_packs_query_understanding_agent-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9ad0a4b13ac162b30098726fbf7cc0c7a941fac19c4d08cebc46fe2e4b8221f5
MD5 4fba9a5f4aa59796d8d0ad995d2fbdf4
BLAKE2b-256 a1c66f1da48b2e71075a093ebda3236d7f1317d57c90fa4d9a7061ab74d5411b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_packs_query_understanding_agent-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb0c62695305f0708f249fe72eb6655b0557374f02759432394f53d807224abc
MD5 b25266ccdbf196936d9e0551d4582edf
BLAKE2b-256 c080dfd91472a2b11135c668e365ec015a3f0f8e740ce9b6e34a2fe304a9b8c6

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