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.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64867f07c0edd54296826442a294604bac0670d6943c9b685e2ce4061a1bdfd9 |
|
MD5 | 56a70cc1cf4eebbce7a9e9b1ee0bee34 |
|
BLAKE2b-256 | 44775d825509c115e5dcfe5b81dc54a0014ba49e9a115e756b5beb7df2ebbe33 |
Hashes for llama_index_packs_gradio_react_agent_chatbot-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83b0a67758c624cafde51daebe4cbb23f997f551c377522bafdcbf0b0e721121 |
|
MD5 | 344c28a4927e7195795e6b37631f4844 |
|
BLAKE2b-256 | 62417b9eb9477c085667abf730bd9ef9a208897a2ec836f1951df105337a7d32 |