llama-index-packs-gradio-react-agent-chatbot


Namellama-index-packs-gradio-react-agent-chatbot JSON
Version 0.3.0 PyPI version JSON
download
home_pageNone
Summaryllama-index packs gradio_react_agent_chatbot integration
upload_time2024-11-18 01:33:07
maintainernerdai
docs_urlNone
authorYour Name
requires_python<4.0,>=3.9
licenseMIT
keywords chatbot gradio react-agent tools
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.9",
    "maintainer_email": null,
    "keywords": "chatbot, gradio, react-agent, tools",
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/03/1e/6706c31b48075bbb8f359e178c99f1ecc54bc6fa062037d31432bc6b04cf/llama_index_packs_gradio_react_agent_chatbot-0.3.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.3.0",
    "project_urls": null,
    "split_keywords": [
        "chatbot",
        " gradio",
        " react-agent",
        " tools"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e8e14dc5fd771921ab0b7b98b4a4251b3649cd69a56a008796f6e9c17f706ace",
                "md5": "c32a1f7efddefc43dcdd3d8e9fcd3ab9",
                "sha256": "46f13a9a5c72f160407300088b044b70c7bf514868d3a6975b8f31e5629f56d8"
            },
            "downloads": -1,
            "filename": "llama_index_packs_gradio_react_agent_chatbot-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c32a1f7efddefc43dcdd3d8e9fcd3ab9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 4186,
            "upload_time": "2024-11-18T01:33:06",
            "upload_time_iso_8601": "2024-11-18T01:33:06.726779Z",
            "url": "https://files.pythonhosted.org/packages/e8/e1/4dc5fd771921ab0b7b98b4a4251b3649cd69a56a008796f6e9c17f706ace/llama_index_packs_gradio_react_agent_chatbot-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "031e6706c31b48075bbb8f359e178c99f1ecc54bc6fa062037d31432bc6b04cf",
                "md5": "ce038ff30e24c9f94de40cfee47e2aca",
                "sha256": "6de4f645236ca3f93cc6ca395e0b0cc1372607660c2f7acecb135611eaf163bd"
            },
            "downloads": -1,
            "filename": "llama_index_packs_gradio_react_agent_chatbot-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ce038ff30e24c9f94de40cfee47e2aca",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 3761,
            "upload_time": "2024-11-18T01:33:07",
            "upload_time_iso_8601": "2024-11-18T01:33:07.603761Z",
            "url": "https://files.pythonhosted.org/packages/03/1e/6706c31b48075bbb8f359e178c99f1ecc54bc6fa062037d31432bc6b04cf/llama_index_packs_gradio_react_agent_chatbot-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-18 01:33:07",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-packs-gradio-react-agent-chatbot"
}
        
Elapsed time: 0.41165s