zlai


Namezlai JSON
Version 0.3.116 PyPI version JSON
download
home_pagehttps://zlai-llm.github.io/zlai-doc/#/
SummaryA LLM Agent Python package.
upload_time2024-09-29 11:46:29
maintainerNone
docs_urlNone
authorchensy cao
requires_python!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,!=3.8.*,>=3.9
licenseMIT
keywords llm agent embedding chatbot prompt
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">

# ZLAI

[![Python package](https://img.shields.io/pypi/v/zlai)](https://pypi.org/project/zlai/)
[![Python](https://img.shields.io/pypi/pyversions/zlai.svg)](https://pypi.python.org/pypi/zlai/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/zlai)](https://pypi.org/project/zlai/)
[![GitHub star chart](https://img.shields.io/github/stars/zlai-llm/zlai?style=flat-square)](https://star-history.com/#zlai-llm/zlai)
[![GitHub Forks](https://img.shields.io/github/forks/zlai-llm/zlai.svg)](https://star-history.com/#zlai-llm/zlai)
[![Doc](https://img.shields.io/badge/Doc-online-green)](https://zlai-llm.github.io/zlai-doc/)
[![Issue](https://img.shields.io/github/issues/zlai-llm/zlai)](https://github.com/zlai-llm/zlai/issues/new/choose)
[![Discussions](https://img.shields.io/github/discussions/zlai-llm/zlai)](https://github.com/zlai-llm/zlai/issues/new/choose)
[![CONTRIBUTING](https://img.shields.io/badge/Contributing-8A2BE2)](https://github.com/zlai-llm/zlai/blob/main/CONTRIBUTING.md)
[![License: MIT](https://img.shields.io/github/license/zlai-llm/zlai)](https://github.com/zlai-llm/zlai/blob/main/LICENSE)

> 适配中文大模型的`Langchain-Agent`

</div>

## 简介

1. `LLM`: 调用大模型的便捷方法,包括本地大模型与线上大模型,其中包括主流大模型`API`,`GLM/Qwen/Yi/MoonShot`等100多种大模型。采用了统一的调用风格与方式,使得大模型调用更加便捷。
2. `Message`: 消息管理机制,方便管理`System/User/Assistant Message`,并进行大模型对话的记忆管理。
3. `Embedding`: 提供一系列向量化方法,包括本地与API向量化模型的调用,以及文本的各类向量化匹配、与向数据库对接等功能。
4. `RAG`: 提供一系列文档知识库问答方法。
5. `AgentTask`: 提供Agent任务流的调度,实现Agent任务的各种自动化流转。
6. `AgentTools`: 提供一系列Agent工具函数,实现更方便的Agent使用,如让大模型实现股票期货数据查询问答、数据分析作图等。
7. `Other`: 其他便捷方法。

[详细文档](https://zlai-llm.github.io/zlai-doc/#/)

-----

## 如何安装?

```bash
# [推荐] 安装最新版本ZLAI的所有模块
pip install zlai[all] -U
# [推荐] 最轻量化安装
pip install zlai[tiny] -U
# [推荐] 安装全部大模型API依赖
pip install zlai[api] -U
```

您也可以在[GitHub](https://github.com/zlai-llm/zlai.git)/[PyPi](https://pypi.org/project/zlai/)查看最新代码与最新发行版本。

[Quick Start](https://zlai-llm.github.io/zlai-doc/#/quick_start)

[版本计划](https://zlai-llm.github.io/zlai-doc/#/version/version)

## Star History

[![Star History Chart](https://api.star-history.com/svg?repos=zlai-llm/zlai&type=Date)](https://star-history.com/#zlai-llm/zlai&Date)

-----

<div align="center">

> Wechat

<center>
<img src="https://raw.githubusercontent.com/zlai-llm/zlai/master/assets/wechat.jpg" width="160px">
<h5>微信群</h5>
</center>

</div>

-----
@2024/03/27

            

Raw data

            {
    "_id": null,
    "home_page": "https://zlai-llm.github.io/zlai-doc/#/",
    "name": "zlai",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,!=3.8.*,>=3.9",
    "maintainer_email": null,
    "keywords": "llm, agent, embedding, chatbot, prompt",
    "author": "chensy cao",
    "author_email": "chensy.cao@foxmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e1/c9/822e2e211c2402c21a8563b9e2a07ea5f7c5fd0f558a551f9374e3b44c7a/zlai-0.3.116.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n\n# ZLAI\n\n[![Python package](https://img.shields.io/pypi/v/zlai)](https://pypi.org/project/zlai/)\n[![Python](https://img.shields.io/pypi/pyversions/zlai.svg)](https://pypi.python.org/pypi/zlai/)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/zlai)](https://pypi.org/project/zlai/)\n[![GitHub star chart](https://img.shields.io/github/stars/zlai-llm/zlai?style=flat-square)](https://star-history.com/#zlai-llm/zlai)\n[![GitHub Forks](https://img.shields.io/github/forks/zlai-llm/zlai.svg)](https://star-history.com/#zlai-llm/zlai)\n[![Doc](https://img.shields.io/badge/Doc-online-green)](https://zlai-llm.github.io/zlai-doc/)\n[![Issue](https://img.shields.io/github/issues/zlai-llm/zlai)](https://github.com/zlai-llm/zlai/issues/new/choose)\n[![Discussions](https://img.shields.io/github/discussions/zlai-llm/zlai)](https://github.com/zlai-llm/zlai/issues/new/choose)\n[![CONTRIBUTING](https://img.shields.io/badge/Contributing-8A2BE2)](https://github.com/zlai-llm/zlai/blob/main/CONTRIBUTING.md)\n[![License: MIT](https://img.shields.io/github/license/zlai-llm/zlai)](https://github.com/zlai-llm/zlai/blob/main/LICENSE)\n\n> \u9002\u914d\u4e2d\u6587\u5927\u6a21\u578b\u7684`Langchain-Agent`\n\n</div>\n\n## \u7b80\u4ecb\n\n1. `LLM`: \u8c03\u7528\u5927\u6a21\u578b\u7684\u4fbf\u6377\u65b9\u6cd5\uff0c\u5305\u62ec\u672c\u5730\u5927\u6a21\u578b\u4e0e\u7ebf\u4e0a\u5927\u6a21\u578b\uff0c\u5176\u4e2d\u5305\u62ec\u4e3b\u6d41\u5927\u6a21\u578b`API`\uff0c`GLM/Qwen/Yi/MoonShot`\u7b49100\u591a\u79cd\u5927\u6a21\u578b\u3002\u91c7\u7528\u4e86\u7edf\u4e00\u7684\u8c03\u7528\u98ce\u683c\u4e0e\u65b9\u5f0f\uff0c\u4f7f\u5f97\u5927\u6a21\u578b\u8c03\u7528\u66f4\u52a0\u4fbf\u6377\u3002\n2. `Message`: \u6d88\u606f\u7ba1\u7406\u673a\u5236\uff0c\u65b9\u4fbf\u7ba1\u7406`System/User/Assistant Message`\uff0c\u5e76\u8fdb\u884c\u5927\u6a21\u578b\u5bf9\u8bdd\u7684\u8bb0\u5fc6\u7ba1\u7406\u3002\n3. `Embedding`: \u63d0\u4f9b\u4e00\u7cfb\u5217\u5411\u91cf\u5316\u65b9\u6cd5\uff0c\u5305\u62ec\u672c\u5730\u4e0eAPI\u5411\u91cf\u5316\u6a21\u578b\u7684\u8c03\u7528\uff0c\u4ee5\u53ca\u6587\u672c\u7684\u5404\u7c7b\u5411\u91cf\u5316\u5339\u914d\u3001\u4e0e\u5411\u6570\u636e\u5e93\u5bf9\u63a5\u7b49\u529f\u80fd\u3002\n4. `RAG`: \u63d0\u4f9b\u4e00\u7cfb\u5217\u6587\u6863\u77e5\u8bc6\u5e93\u95ee\u7b54\u65b9\u6cd5\u3002\n5. `AgentTask`: \u63d0\u4f9bAgent\u4efb\u52a1\u6d41\u7684\u8c03\u5ea6\uff0c\u5b9e\u73b0Agent\u4efb\u52a1\u7684\u5404\u79cd\u81ea\u52a8\u5316\u6d41\u8f6c\u3002\n6. `AgentTools`: \u63d0\u4f9b\u4e00\u7cfb\u5217Agent\u5de5\u5177\u51fd\u6570\uff0c\u5b9e\u73b0\u66f4\u65b9\u4fbf\u7684Agent\u4f7f\u7528\uff0c\u5982\u8ba9\u5927\u6a21\u578b\u5b9e\u73b0\u80a1\u7968\u671f\u8d27\u6570\u636e\u67e5\u8be2\u95ee\u7b54\u3001\u6570\u636e\u5206\u6790\u4f5c\u56fe\u7b49\u3002\n7. `Other`: \u5176\u4ed6\u4fbf\u6377\u65b9\u6cd5\u3002\n\n[\u8be6\u7ec6\u6587\u6863](https://zlai-llm.github.io/zlai-doc/#/)\n\n-----\n\n## \u5982\u4f55\u5b89\u88c5\uff1f\n\n```bash\n# [\u63a8\u8350] \u5b89\u88c5\u6700\u65b0\u7248\u672cZLAI\u7684\u6240\u6709\u6a21\u5757\npip install zlai[all] -U\n# [\u63a8\u8350] \u6700\u8f7b\u91cf\u5316\u5b89\u88c5\npip install zlai[tiny] -U\n# [\u63a8\u8350] \u5b89\u88c5\u5168\u90e8\u5927\u6a21\u578bAPI\u4f9d\u8d56\npip install zlai[api] -U\n```\n\n\u60a8\u4e5f\u53ef\u4ee5\u5728[GitHub](https://github.com/zlai-llm/zlai.git)/[PyPi](https://pypi.org/project/zlai/)\u67e5\u770b\u6700\u65b0\u4ee3\u7801\u4e0e\u6700\u65b0\u53d1\u884c\u7248\u672c\u3002\n\n[Quick Start](https://zlai-llm.github.io/zlai-doc/#/quick_start)\n\n[\u7248\u672c\u8ba1\u5212](https://zlai-llm.github.io/zlai-doc/#/version/version)\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=zlai-llm/zlai&type=Date)](https://star-history.com/#zlai-llm/zlai&Date)\n\n-----\n\n<div align=\"center\">\n\n> Wechat\n\n<center>\n<img src=\"https://raw.githubusercontent.com/zlai-llm/zlai/master/assets/wechat.jpg\" width=\"160px\">\n<h5>\u5fae\u4fe1\u7fa4</h5>\n</center>\n\n</div>\n\n-----\n@2024/03/27\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A LLM Agent Python package.",
    "version": "0.3.116",
    "project_urls": {
        "Bug Tracker": "https://github.com/zlai-llm/zlai/issues",
        "Homepage": "https://zlai-llm.github.io/zlai-doc/#/",
        "Repository": "https://github.com/zlai-llm/zlai"
    },
    "split_keywords": [
        "llm",
        " agent",
        " embedding",
        " chatbot",
        " prompt"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4d6a37389c6e198e7689d572a249da347a0048eca8779917b4973e1fe71f58e1",
                "md5": "fd48bab207c215bf1e80303986523781",
                "sha256": "6eae2eddee26cdf0d462e40f3a8c558003eb006ea79d0631a4ff757f198a2690"
            },
            "downloads": -1,
            "filename": "zlai-0.3.116-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fd48bab207c215bf1e80303986523781",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,!=3.8.*,>=3.9",
            "size": 495473,
            "upload_time": "2024-09-29T11:46:27",
            "upload_time_iso_8601": "2024-09-29T11:46:27.841537Z",
            "url": "https://files.pythonhosted.org/packages/4d/6a/37389c6e198e7689d572a249da347a0048eca8779917b4973e1fe71f58e1/zlai-0.3.116-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e1c9822e2e211c2402c21a8563b9e2a07ea5f7c5fd0f558a551f9374e3b44c7a",
                "md5": "b8ece72df95996269f02f0d9673b8d88",
                "sha256": "0912208ced6f117f4bec4d6779ad11317948fe7d8a53863f4c7d12ae670f1c61"
            },
            "downloads": -1,
            "filename": "zlai-0.3.116.tar.gz",
            "has_sig": false,
            "md5_digest": "b8ece72df95996269f02f0d9673b8d88",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,!=3.8.*,>=3.9",
            "size": 293495,
            "upload_time": "2024-09-29T11:46:29",
            "upload_time_iso_8601": "2024-09-29T11:46:29.761721Z",
            "url": "https://files.pythonhosted.org/packages/e1/c9/822e2e211c2402c21a8563b9e2a07ea5f7c5fd0f558a551f9374e3b44c7a/zlai-0.3.116.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-29 11:46:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zlai-llm",
    "github_project": "zlai",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "zlai"
}
        
Elapsed time: 0.53502s