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

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