# Gradio ReActAgent Chatbot Pack
Create a ReActAgent Chatbot equipped with two LlamaHub tools, namely:
[ArxivToolSpec](https://llamahub.ai/l/tools-arxiv) and Wikipedia tool and
[WikipediaToolSpec](https://llamahub.ai/l/tools-wikipedia).
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:
```bash
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:
```bash
export OPENAI_API_KEY="sk-...
python ./gradio_react_agent_pack/base.py
```
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-packs-gradio-react-agent-chatbot",
"maintainer": "nerdai",
"docs_url": null,
"requires_python": "<4.0,>=3.8.1",
"maintainer_email": null,
"keywords": "chatbot, gradio, react-agent, tools",
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/57/ab/23ee2b2a157f223373c9084ae27396e40b34090754db65accab1cdca8a70/llama_index_packs_gradio_react_agent_chatbot-0.2.0.tar.gz",
"platform": null,
"description": "# Gradio ReActAgent Chatbot Pack\n\nCreate a ReActAgent Chatbot equipped with two LlamaHub tools, namely:\n[ArxivToolSpec](https://llamahub.ai/l/tools-arxiv) and Wikipedia tool and\n[WikipediaToolSpec](https://llamahub.ai/l/tools-wikipedia).\n\nThis pack's Gradio app is built using Gradio `Blocks`. User messages are submitted\nvia a `TextBox` Block, which are then handled by a LlamaIndex `ReActAgent` to generate a\nresponse (calling required tools). The result is then sent to a `Chatbot` Block \u2014\nadditionally the agent's thoughts are captured in an `HTML` Block.\n\n## CLI Usage\n\nYou can download llamapacks directly using `llamaindex-cli`, which comes installed with the `llama-index` python package:\n\n```bash\nllamaindex-cli download-llamapack GradioReActAgentPack --download-dir ./gradio_react_agent_chatbot\n```\n\nYou can then inspect the files at `./gradio_react_agent_chatbot` and use them as a template for your own project!\n\nTo run the app directly, use in your terminal:\n\n```bash\nexport OPENAI_API_KEY=\"sk-...\npython ./gradio_react_agent_pack/base.py\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index packs gradio_react_agent_chatbot integration",
"version": "0.2.0",
"project_urls": null,
"split_keywords": [
"chatbot",
" gradio",
" react-agent",
" tools"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8b07b96df8152f77f1a0870a02ed202202d57ac1cd4cec53e18efe7b1a16cb2a",
"md5": "1fe3261575bcf542f64feae87c3e5d47",
"sha256": "a5e193b659930c16595b83fc7b40b7b4c1fb2ffebc2671bb7933e8330e5fcba4"
},
"downloads": -1,
"filename": "llama_index_packs_gradio_react_agent_chatbot-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1fe3261575bcf542f64feae87c3e5d47",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8.1",
"size": 4188,
"upload_time": "2024-08-22T17:31:46",
"upload_time_iso_8601": "2024-08-22T17:31:46.998235Z",
"url": "https://files.pythonhosted.org/packages/8b/07/b96df8152f77f1a0870a02ed202202d57ac1cd4cec53e18efe7b1a16cb2a/llama_index_packs_gradio_react_agent_chatbot-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "57ab23ee2b2a157f223373c9084ae27396e40b34090754db65accab1cdca8a70",
"md5": "7c0c6c3d723138c966268a29b2c1779d",
"sha256": "e69c266c09a05220bf409c3733dc32181faed4339420e2cac58aa3c19f287db4"
},
"downloads": -1,
"filename": "llama_index_packs_gradio_react_agent_chatbot-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "7c0c6c3d723138c966268a29b2c1779d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8.1",
"size": 3772,
"upload_time": "2024-08-22T17:31:48",
"upload_time_iso_8601": "2024-08-22T17:31:48.424470Z",
"url": "https://files.pythonhosted.org/packages/57/ab/23ee2b2a157f223373c9084ae27396e40b34090754db65accab1cdca8a70/llama_index_packs_gradio_react_agent_chatbot-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-22 17:31:48",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-packs-gradio-react-agent-chatbot"
}