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.

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

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