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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07dcc1c39f748ded0535525befe334197ad5d3c1f9755809f41d5a82ad9d5725 |
|
MD5 | 4ffdc3cd62e805c43eb80faeba8c0e40 |
|
BLAKE2b-256 | a061036b986e3def9bd7c14badd5cca5bb13c79cf85678744b447c74b7e57e15 |
Hashes for llama_index_packs_gradio_react_agent_chatbot-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c70394bccc97b87e16c71ef77d229a6d0df3fbb0a4b076c7da05df47cd0f04b |
|
MD5 | 69aa53fb60864e2e7f40a4e3bfd8e739 |
|
BLAKE2b-256 | f6b3bf7c34d55bbeabf1369b3ef09b1cc03ecd9c04a8b67ae4d01c2ea42bcebf |