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
Hashes for llama_index_packs_gradio_react_agent_chatbot-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 608758eb83918be39d63d2eb6fba4e55bd93162926e3b273f06e539dc0aeb0b9 |
|
MD5 | 6b9f3d0c114738407b3843c736f96a48 |
|
BLAKE2b-256 | ba95dc576f892b9d8026a22c16546bb26b3b592c3838a396b2a22e89abbef945 |
Hashes for llama_index_packs_gradio_react_agent_chatbot-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 015ab00e20e2e1100bcd49308c952f679b95d9dbc2e35affa282e2196ffa64d9 |
|
MD5 | 5f73f720dd8f7239dc921be36c0620ae |
|
BLAKE2b-256 | 71bb2e67a8d3fea55ad5e585fc6375fe2875f18dead7f003a880169a4b652f6d |