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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3840fdd4de44df990fbffe793b83278b524f8aa0f64e4433dc36788a521642e2 |
|
MD5 | 9078673fbda8f6dd6ba8d7c201dff1aa |
|
BLAKE2b-256 | f9903a3009cb4b3f355a6668c1f3fcc89f89fea00f79ff4399f2a0386c34a1d7 |
Hashes for llama_index_packs_gradio_react_agent_chatbot-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a83b30cbb2c5bc36c91dc062bca14ec8b8bdff0a28f64f5148554321d6736fdd |
|
MD5 | 4ddae6a7345c7041efb811352faff441 |
|
BLAKE2b-256 | aafebebfc895b6c0623bdb0baeaf0425ed2c9da19f42feb735700be5ae33082b |