Skip to main content

llama-index packs gradio_react_agent_chatbot integration

Project description

Gradio ReActAgent Chatbot Pack

Create a ReActAgent Chatbot equipped with two LlamaHub tools, namely: ArxivToolSpec and Wikipedia tool and WikipediaToolSpec.

This pack's Gradio app is built using Gradio Blocks. User messages are submitted via a TextBox Block, which are then handled by a LlamaIndex ReActAgent to generate a response (calling required tools). The result is then sent to a Chatbot Block — additionally the agent's thoughts are captured in an HTML Block.

CLI Usage

You can download llamapacks directly using llamaindex-cli, which comes installed with the llama-index python package:

llamaindex-cli download-llamapack GradioReActAgentPack --download-dir ./gradio_react_agent_chatbot

You can then inspect the files at ./gradio_react_agent_chatbot and use them as a template for your own project!

To run the app directly, use in your terminal:

export OPENAI_API_KEY="sk-...
python ./gradio_react_agent_pack/base.py

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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_packs_gradio_react_agent_chatbot-0.3.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_packs_gradio_react_agent_chatbot-0.3.1.tar.gz
Algorithm Hash digest
SHA256 b8a0cbd7af250cbf47ff79e64a8395ad278c680da07b3b2f0e9a05f22f1c66d3
MD5 a750606ba5b836362b9c7a5dd7f70bd0
BLAKE2b-256 11d2db975563462cb0e837d6823d54a4ed333dad5c2049d92260a25aa17c095e

See more details on using hashes here.

File details

Details for the file llama_index_packs_gradio_react_agent_chatbot-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_packs_gradio_react_agent_chatbot-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78059d7d9109d86459353c31b710b7448fee827dca94b20cf2755d1f90cb21c8
MD5 6059d0a329f248e141e364d09c58eece
BLAKE2b-256 7a1708a4efcedf4d60de48b50c46e358344dfc3b8e133aebba72d03e572a1fe3

See more details on using hashes here.

Supported by

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