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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_packs_gradio_react_agent_chatbot-0.3.1.tar.gz.
File metadata
- Download URL: llama_index_packs_gradio_react_agent_chatbot-0.3.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8a0cbd7af250cbf47ff79e64a8395ad278c680da07b3b2f0e9a05f22f1c66d3
|
|
| MD5 |
a750606ba5b836362b9c7a5dd7f70bd0
|
|
| BLAKE2b-256 |
11d2db975563462cb0e837d6823d54a4ed333dad5c2049d92260a25aa17c095e
|
File details
Details for the file llama_index_packs_gradio_react_agent_chatbot-0.3.1-py3-none-any.whl.
File metadata
- Download URL: llama_index_packs_gradio_react_agent_chatbot-0.3.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78059d7d9109d86459353c31b710b7448fee827dca94b20cf2755d1f90cb21c8
|
|
| MD5 |
6059d0a329f248e141e364d09c58eece
|
|
| BLAKE2b-256 |
7a1708a4efcedf4d60de48b50c46e358344dfc3b8e133aebba72d03e572a1fe3
|