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

File details

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

File metadata

File hashes

Hashes for llama_index_packs_gradio_react_agent_chatbot-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6de4f645236ca3f93cc6ca395e0b0cc1372607660c2f7acecb135611eaf163bd
MD5 ce038ff30e24c9f94de40cfee47e2aca
BLAKE2b-256 031e6706c31b48075bbb8f359e178c99f1ecc54bc6fa062037d31432bc6b04cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_packs_gradio_react_agent_chatbot-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46f13a9a5c72f160407300088b044b70c7bf514868d3a6975b8f31e5629f56d8
MD5 c32a1f7efddefc43dcdd3d8e9fcd3ab9
BLAKE2b-256 e8e14dc5fd771921ab0b7b98b4a4251b3649cd69a56a008796f6e9c17f706ace

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