mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-03 17:39:54 +00:00
fix: requirements chromadb==0.3.22 (#247)
1.requirements version Closes #246
This commit is contained in:
commit
a366917b21
@ -5,7 +5,7 @@ This is a collection of DB-GPT tutorials on Medium.
|
||||
|
||||
DB-GPT is divided into several functions, including chat with knowledge base, execute SQL, chat with database, and execute plugins.
|
||||
|
||||
### Introduce
|
||||
### Introduction
|
||||
[What is DB-GPT](https://www.youtube.com/watch?v=QszhVJerc0I)
|
||||
|
||||
### Knowledge
|
||||
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DB-GPT 0.1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-06-14 17:19+0800\n"
|
||||
"POT-Creation-Date: 2023-06-19 19:10+0800\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: zh_CN\n"
|
||||
@ -19,25 +19,25 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.12.1\n"
|
||||
|
||||
#: ../../getting_started/tutorials.md:1 f80ad98cf2d444a3a159655b37ae4d4f
|
||||
#: ../../getting_started/tutorials.md:1 23db0155c8ae4a2288cbf9137599c973
|
||||
msgid "Tutorials"
|
||||
msgstr "教程"
|
||||
|
||||
#: ../../getting_started/tutorials.md:4 ff8771c31b024e538dbbaaeaccec8aa7
|
||||
#: ../../getting_started/tutorials.md:4 8f2b93792b1947b7a544623ec637dd48
|
||||
msgid "This is a collection of DB-GPT tutorials on Medium."
|
||||
msgstr "这是知乎上DB-GPT教程的集合。."
|
||||
|
||||
#: ../../getting_started/tutorials.md:6 0c1c544a5d184375aabd7fe6918042e2
|
||||
#: ../../getting_started/tutorials.md:6 7216c2d145674002bd82b1134aae9377
|
||||
msgid ""
|
||||
"DB-GPT is divided into several functions, including chat with knowledge "
|
||||
"base, execute SQL, chat with database, and execute plugins."
|
||||
msgstr ""
|
||||
msgstr "DB-GPT包含以下功能,和知识库聊天,执行SQL,和数据库聊天以及执行插件。"
|
||||
|
||||
#: ../../getting_started/tutorials.md:8 b5e106a97bbd4467b071bb05d837d7d9
|
||||
#: ../../getting_started/tutorials.md:8 726f4394d6214c45979995ce521f8964
|
||||
msgid "Introduction"
|
||||
msgstr ""
|
||||
msgstr "介绍"
|
||||
|
||||
#: ../../getting_started/tutorials.md:9 9df43436183d4b41a75a09fec15743d7
|
||||
#: ../../getting_started/tutorials.md:9 16c9deecc5b848a2a17eccb0f2cbdafd
|
||||
#, fuzzy
|
||||
msgid "[What is DB-GPT](https://www.youtube.com/watch?v=QszhVJerc0I)"
|
||||
msgstr ""
|
||||
@ -45,11 +45,12 @@ msgstr ""
|
||||
"GPT](https://www.bilibili.com/video/BV1SM4y1a7Nj/?buvid=551b023900b290f9497610b2155a2668&is_story_h5=false&mid=%2BVyE%2Fwau5woPcUKieCWS0A%3D%3D&p=1&plat_id=116&share_from=ugc&share_medium=iphone&share_plat=ios&share_session_id=5D08B533-82A4-4D40-9615-7826065B4574&share_source=GENERIC&share_tag=s_i×tamp=1686307943&unique_k=bhO3lgQ&up_id=31375446)"
|
||||
" by csunny (https://github.com/csunny/DB-GPT)"
|
||||
|
||||
#: ../../getting_started/tutorials.md:11 3096811f862649bf84ff3cd29cdf14db
|
||||
msgid "Knowledge Base"
|
||||
#: ../../getting_started/tutorials.md:11 461a585616ae49518a8e314d13bb886c
|
||||
#, fuzzy
|
||||
msgid "Knowledge"
|
||||
msgstr "知识库"
|
||||
|
||||
#: ../../getting_started/tutorials.md:13 ea00f3de8c754bf2950e735a2f14043a
|
||||
#: ../../getting_started/tutorials.md:13 4fa6c8d8ec5e43fcb4e79443c83a68ae
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"[How to Create your own knowledge repository](https://db-"
|
||||
@ -58,55 +59,54 @@ msgstr ""
|
||||
"[怎么创建自己的知识库](https://db-"
|
||||
"gpt.readthedocs.io/en/latest/modules/knowledge.html)"
|
||||
|
||||
#: ../../getting_started/tutorials.md:15 07195f11314945989eeeb9400c8a9b43
|
||||
#: ../../getting_started/tutorials.md:15 c03c45687f6b46f1a8da8085b45cee98
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr "[新增知识库演示](../../assets/new_knownledge_en.gif)"
|
||||
|
||||
#: ../../getting_started/tutorials.md:15 333cdda401df4509a11d14535391b8a8
|
||||
#: ../../getting_started/tutorials.md:15 efacc5af342248f4935e401ed044ec9e
|
||||
#, fuzzy
|
||||
msgid "Add new Knowledge demonstration"
|
||||
msgstr "[新增知识库演示](../../assets/new_knownledge_en.gif)"
|
||||
|
||||
#: ../../getting_started/tutorials.md:17 5245cd247a184f63a10f735f414f303f
|
||||
#: ../../getting_started/tutorials.md:17 dcdb8d1e73f241649756a126e1ddc185
|
||||
msgid "SQL Generation"
|
||||
msgstr ""
|
||||
msgstr "SQL生成"
|
||||
|
||||
#: ../../getting_started/tutorials.md:18 9a980e7625d34b98bf318851c43fb13d
|
||||
#: ../../getting_started/tutorials.md:18 517960225da64780afc858958ab34446
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr "[sql生成演示](../../assets/demo_en.gif)"
|
||||
|
||||
#: ../../getting_started/tutorials.md:18 952c680cf62140978b4e94d36c49134a
|
||||
#: ../../getting_started/tutorials.md:18 1e1a38abf60241058ee7a50759f9c426
|
||||
#, fuzzy
|
||||
msgid "sql generation demonstration"
|
||||
msgstr "[sql生成演示](../../assets/demo_en.gif)"
|
||||
|
||||
#: ../../getting_started/tutorials.md:20 c0a6f9fefbb9404695fe3bffb6ecc577
|
||||
#: ../../getting_started/tutorials.md:20 7bec46758a5e4581a0d1636fb32ac2b8
|
||||
msgid "SQL Execute"
|
||||
msgstr "SQL执行"
|
||||
|
||||
#: ../../getting_started/tutorials.md:21 e959cc6ca356407d854ee5541233c19a
|
||||
#: ../../getting_started/tutorials.md:21 64cd323f38694ae4aa4cb49303041742
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr "[sql execute 演示](../../assets/auto_sql_en.gif)"
|
||||
|
||||
#: ../../getting_started/tutorials.md:21 69247d51ccd349b082ea452f6d74d2b3
|
||||
#: ../../getting_started/tutorials.md:21 2c6d6c7428c3487eb969f87ccbc00961
|
||||
#, fuzzy
|
||||
msgid "sql execute demonstration"
|
||||
msgstr "SQL执行"
|
||||
msgstr "SQL执行演示"
|
||||
|
||||
#: ../../getting_started/tutorials.md:23 0fd9770dbf3c49b0b644599dc70187a7
|
||||
#: ../../getting_started/tutorials.md:23 4ff018bac02f45fe8da5b649c501bf6b
|
||||
#, fuzzy
|
||||
msgid "Plugins"
|
||||
msgstr "DB Plugins"
|
||||
msgstr "DB插件"
|
||||
|
||||
#: ../../getting_started/tutorials.md:24 cf58eb1ee13f49f69e501c0e221b4bed
|
||||
#: ../../getting_started/tutorials.md:24 0ea9c7c5fd5e4457a41602467758fd47
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr "[db plugins 演示](../../assets/dbgpt_bytebase_plugin.gif)"
|
||||
|
||||
#: ../../getting_started/tutorials.md:24 9e474caadb87481ba51f8595067f7edd
|
||||
#: ../../getting_started/tutorials.md:24 98a384eb772e44c2954ccd7989c5905f
|
||||
msgid "db plugins demonstration"
|
||||
msgstr ""
|
||||
|
||||
msgstr "DB插件演示"
|
||||
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DB-GPT 0.1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-06-15 21:28+0800\n"
|
||||
"POT-Creation-Date: 2023-06-19 19:10+0800\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: zh_CN\n"
|
||||
@ -19,31 +19,31 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.12.1\n"
|
||||
|
||||
#: ../../index.rst:34 ../../index.rst:45 ff89e1093f974141a3791696a8f007d1
|
||||
#: ../../index.rst:34 ../../index.rst:45 ccc4a2e234354c8fb71e8eb930071c79
|
||||
msgid "Getting Started"
|
||||
msgstr "开始"
|
||||
|
||||
#: ../../index.rst:56 ../../index.rst:77 3ad12bad060f4210a83433b58b133491
|
||||
#: ../../index.rst:56 ../../index.rst:77 e12392f17e074b0ab8e693947bda6fc9
|
||||
msgid "Modules"
|
||||
msgstr "模块"
|
||||
|
||||
#: ../../index.rst:91 ../../index.rst:107 4a6ebbeaf13b4f3ca3d3e7f7efc87a53
|
||||
#: ../../index.rst:91 ../../index.rst:107 8fe142b9f4d24fa7aa20103a01283c15
|
||||
msgid "Use Cases"
|
||||
msgstr "示例"
|
||||
|
||||
#: ../../index.rst:121 ../../index.rst:124 fc6d9b2ac37d4a72908c520487971641
|
||||
#: ../../index.rst:121 ../../index.rst:124 ea5086df6a7446e180cbdff164fc4ac4
|
||||
msgid "Reference"
|
||||
msgstr "参考"
|
||||
|
||||
#: ../../index.rst:148 ../../index.rst:154 39ceeafdcf364920b861bf8c7e3ffc96
|
||||
#: ../../index.rst:148 ../../index.rst:154 7b4ce224d08d429082917a0d20761728
|
||||
msgid "Resources"
|
||||
msgstr "资源"
|
||||
|
||||
#: ../../index.rst:7 5d163c8c53014c9baedf15446369e44b
|
||||
#: ../../index.rst:7 5b9b4c087e2041cfa3adc5ff770a6883
|
||||
msgid "Welcome to DB-GPT!"
|
||||
msgstr "欢迎来到DB-GPT中文文档"
|
||||
|
||||
#: ../../index.rst:8 ca0d68c8a51b42aa887fb6df9573817c
|
||||
#: ../../index.rst:8 d6e5a54e39c2400eba9036e61df0c836
|
||||
msgid ""
|
||||
"As large models are released and iterated upon, they are becoming "
|
||||
"increasingly intelligent. However, in the process of using large models, "
|
||||
@ -61,7 +61,7 @@ msgstr ""
|
||||
",我们启动了DB-"
|
||||
"GPT项目,为所有基于数据库的场景构建一个完整的私有大模型解决方案。该方案“”支持本地部署,既可应用于“独立私有环境”,又可根据业务模块进行“独立部署”和“隔离”,确保“大模型”的能力绝对私有、安全、可控。"
|
||||
|
||||
#: ../../index.rst:10 fbf09f8fd0d542a4b60df422616bfd46
|
||||
#: ../../index.rst:10 7758a7767c1e4103a7dc8314abbabd2e
|
||||
msgid ""
|
||||
"**DB-GPT** is an experimental open-source project that uses localized GPT"
|
||||
" large models to interact with your data and environment. With this "
|
||||
@ -71,100 +71,98 @@ msgstr ""
|
||||
"DB-GPT 是一个开源的以数据库为基础的GPT实验项目,使用本地化的GPT大模型与您的数据和环境进行交互,无数据泄露风险100% 私密,100%"
|
||||
" 安全。"
|
||||
|
||||
#: ../../index.rst:12 25fc1d7c06a2475bbf8832f1f586c298
|
||||
#: ../../index.rst:12 8a1cd45818f848d585bc3e94aecc99ae
|
||||
msgid "**Features**"
|
||||
msgstr "特性"
|
||||
|
||||
#: ../../index.rst:13 70fdcc9161f84fa189a355cb4c9d396d
|
||||
#: ../../index.rst:13 eba08d77b2494d689cf52d3d15e04c77
|
||||
msgid ""
|
||||
"Currently, we have released multiple key features, which are listed below"
|
||||
" to demonstrate our current capabilities:"
|
||||
msgstr "目前我们已经发布了多种关键的特性,这里一一列举展示一下当前发布的能力。"
|
||||
|
||||
#: ../../index.rst:15 4820bb3c60a5422d9779ab59c21c1dd7
|
||||
#: ../../index.rst:15 8bf5afc3467642a7abaefe54ffe7b3a3
|
||||
msgid "SQL language capabilities - SQL generation - SQL diagnosis"
|
||||
msgstr "SQL语言能力 - SQL生成 - SQL诊断"
|
||||
|
||||
#: ../../index.rst:19 4e9555aa81f344eb8b5ee4668cbb17a8
|
||||
#: ../../index.rst:19 5a93613526fb42cbbc8d9cda960e8d04
|
||||
msgid ""
|
||||
"Private domain Q&A and data processing - Database knowledge Q&A - Data "
|
||||
"processing"
|
||||
msgstr "私有领域问答与数据处理 - 数据库知识问答 - 数据处理"
|
||||
|
||||
#: ../../index.rst:23 4ea169e9aa5f4bef9084ff512346f80b
|
||||
#: ../../index.rst:23 48d473545ce049f7bad161f05fc40888
|
||||
msgid ""
|
||||
"Plugins - Support custom plugin execution tasks and natively support the "
|
||||
"Auto-GPT plugin, such as:"
|
||||
msgstr "插件模型 - 支持自定义插件执行任务,并原生支持Auto-GPT插件,例如:* SQL自动执行,获取查询结果 * 自动爬取学习知识"
|
||||
|
||||
#: ../../index.rst:26 8ad0cae06f134260a8f8e07839959f7a
|
||||
#: ../../index.rst:26 6e8711ce9d024e4b8c86c9ccc61da30a
|
||||
msgid ""
|
||||
"Unified vector storage/indexing of knowledge base - Support for "
|
||||
"unstructured data such as PDF, Markdown, CSV, and WebURL"
|
||||
msgstr "知识库统一向量存储/索引 - 非结构化数据支持包括PDF、MarkDown、CSV、WebURL"
|
||||
|
||||
#: ../../index.rst:29 62c34be5a1424c3193fb91ec1180f1e0
|
||||
#: ../../index.rst:29 b7f600ad1b2e4d4a85199a934c4b5c2f
|
||||
msgid ""
|
||||
"Milti LLMs Support - Supports multiple large language models, currently "
|
||||
"supporting Vicuna (7b, 13b), ChatGLM-6b (int4, int8) - TODO: codegen2, "
|
||||
"codet5p"
|
||||
msgstr "多模型支持 - 支持多种大语言模型, 当前已支持Vicuna(7b,13b), ChatGLM-6b(int4, int8)"
|
||||
|
||||
#: ../../index.rst:35 09be6ef241304499a2554f07884d0263
|
||||
#: ../../index.rst:35 7350947e20c146408cf7f99671cfc295
|
||||
msgid ""
|
||||
"How to get started using DB-GPT to interact with your data and "
|
||||
"environment."
|
||||
msgstr "开始使用DB-GPT与您的数据环境进行交互。"
|
||||
|
||||
#: ../../index.rst:36 03445e990cf9450b9fef7b05ee1f53ae
|
||||
msgid "`Quickstart Guid <./getting_started/getting_started.html>`_"
|
||||
#: ../../index.rst:36 5bad56f636ac42978634b18628fd6a20
|
||||
#, fuzzy
|
||||
msgid "`Quickstart Guide <./getting_started/getting_started.html>`_"
|
||||
msgstr "`使用指南 <./getting_started/getting_started.html>`_"
|
||||
|
||||
#: ../../index.rst:38 dfb38d03edec4b968341deca703c680f
|
||||
#: ../../index.rst:38 ca63453d7ee84d05821af994be060932
|
||||
msgid "Concepts and terminology"
|
||||
msgstr "相关概念"
|
||||
|
||||
#: ../../index.rst:40 25896d39991445a9baaa7317995e7486
|
||||
msgid "`Concepts and terminology <./getting_started/concepts.html>`_"
|
||||
#: ../../index.rst:40 abddf7b7d23c49149eb70e384ab3eedf
|
||||
#, fuzzy
|
||||
msgid "`Concepts and Terminology <./getting_started/concepts.html>`_"
|
||||
msgstr "`相关概念 <./getting_started/concepts.html>`_"
|
||||
|
||||
#: ../../index.rst:42 c721cee2fa044ea9b0201e760e0fe336
|
||||
msgid "Coming soon..."
|
||||
msgstr ""
|
||||
|
||||
#: ../../index.rst:44 815a4ab192ce4fc891c5358bdd28d3f7
|
||||
#: ../../index.rst:44 ee8121fc3ef34d61a94b25c8b2bb961f
|
||||
msgid "`Tutorials <.getting_started/tutorials.html>`_"
|
||||
msgstr "`教程 <.getting_started/tutorials.html>`_"
|
||||
|
||||
#: ../../index.rst:58 465b205162a645b5a52d42884b4eee16
|
||||
#: ../../index.rst:58 6561430a5aca482d9e36c281d530bce1
|
||||
msgid ""
|
||||
"These modules are the core abstractions with which we can interact with "
|
||||
"data and environment smoothly."
|
||||
msgstr "这些模块是我们可以与数据和环境顺利地进行交互的核心组成。"
|
||||
|
||||
#: ../../index.rst:59 f982a6c162864f59baf528d5fb2d7c09
|
||||
#: ../../index.rst:59 5b0c1abed4e74351a52a17bd420f61d9
|
||||
msgid ""
|
||||
"It's very important for DB-GPT, DB-GPT also provide standard, extendable "
|
||||
"interfaces."
|
||||
msgstr "DB-GPT还提供了标准的、可扩展的接口。"
|
||||
|
||||
#: ../../index.rst:61 58b9c18db1f44a7c81c472ad44757f38
|
||||
#: ../../index.rst:61 71a71702e36f4d298b4c07af77daa305
|
||||
msgid ""
|
||||
"The docs for each module contain quickstart examples, how to guides, "
|
||||
"reference docs, and conceptual guides."
|
||||
msgstr "每个模块的文档都包含快速入门的例子、操作指南、参考文档和相关概念等内容。"
|
||||
|
||||
#: ../../index.rst:63 7c2cf06512664b4baaa132e6f5bad325
|
||||
#: ../../index.rst:63 c5c59f19e04340e8a8105f020143d378
|
||||
msgid "The modules are as follows"
|
||||
msgstr "组成模块如下:"
|
||||
|
||||
#: ../../index.rst:65 28f01f96cfef4900a8f87d3b9c730963
|
||||
#: ../../index.rst:65 c6141fac66e7440593ed74962676085f
|
||||
msgid ""
|
||||
"`LLMs <./modules/llms.html>`_: Supported multi models management and "
|
||||
"integrations."
|
||||
msgstr "`LLMs <./modules/llms.html>`_:基于FastChat提供大模型的运行环境。支持多模型管理和集成。 "
|
||||
|
||||
#: ../../index.rst:67 7815ccc422c645ecbf93f046f6a89e45
|
||||
#: ../../index.rst:67 762dac57a0a842beb69668917477164f
|
||||
msgid ""
|
||||
"`Prompts <./modules/prompts.html>`_: Prompt management, optimization, and"
|
||||
" serialization for multi database."
|
||||
@ -172,59 +170,59 @@ msgstr ""
|
||||
"`Prompt自动生成与优化 <./modules/prompts.html>`_: 自动化生成高质量的Prompt "
|
||||
",并进行优化,提高系统的响应效率"
|
||||
|
||||
#: ../../index.rst:69 613c6a4afd2343cfb8d6ba0513c4d705
|
||||
#: ../../index.rst:69 a4183c4e5469468a8c0a66eff57b55cf
|
||||
msgid "`Plugins <./modules/plugins.html>`_: Plugins management, scheduler."
|
||||
msgstr "`Agent与插件: <./modules/plugins.html>`_:提供Agent和插件机制,使得用户可以自定义并增强系统的行为。"
|
||||
|
||||
#: ../../index.rst:71 4d7f447adcfb41449f1cde3e0d860cbd
|
||||
#: ../../index.rst:71 1fb71f17d87d4e81986685afca5c5f64
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"`Knowledge <./modules/knowledge.html>`_: Knowledge management, embedding,"
|
||||
" and search."
|
||||
msgstr "`知识库能力: <./modules/knowledge.html>`_: 支持私域知识库问答能力, "
|
||||
|
||||
#: ../../index.rst:73 a0528c0588594dfe8292e3615ea14def
|
||||
#: ../../index.rst:73 b063179603b64fef8dc00265dcdf44a9
|
||||
msgid ""
|
||||
"`Connections <./modules/connections.html>`_: Supported multi databases "
|
||||
"connection. management connections and interact with this."
|
||||
msgstr "`连接模块 <./modules/connections.html>`_: 用于连接不同的模块和数据源,实现数据的流转和交互 "
|
||||
|
||||
#: ../../index.rst:75 187e08a3ce5c4eee8d7a1a4080e7cc5b
|
||||
#: ../../index.rst:75 033bc012c46a4ec780022e51e32ba173
|
||||
#, fuzzy
|
||||
msgid "`Vector <./modules/vector.html>`_: Supported multi vector database."
|
||||
msgstr "`LLMs <./modules/llms.html>`_:基于FastChat提供大模型的运行环境。支持多模型管理和集成。 "
|
||||
|
||||
#: ../../index.rst:93 ba66ec10385441659843b79176113d8d
|
||||
#: ../../index.rst:93 3c0bd77d77c94a108584e2dd67f71909
|
||||
msgid "Best Practices and built-in implementations for common DB-GPT use cases:"
|
||||
msgstr "DB-GPT用例的最佳实践和内置方法:"
|
||||
|
||||
#: ../../index.rst:95 4b0c8553d1174cec9b901307600fe6f8
|
||||
#: ../../index.rst:95 827074b48e7846fb9c77aaa82ff7375a
|
||||
msgid ""
|
||||
"`Sql generation and diagnosis "
|
||||
"<./use_cases/sql_generation_and_diagnosis.html>`_: SQL generation and "
|
||||
"diagnosis."
|
||||
msgstr "`Sql生成和诊断 <./use_cases/sql_generation_and_diagnosis.html>`_: Sql生成和诊断。"
|
||||
|
||||
#: ../../index.rst:97 2d58029f77d64f41aeb5edf80f3a15a0
|
||||
#: ../../index.rst:97 59f4b4e2a0c54e0aa1dd4ed6d866569d
|
||||
msgid ""
|
||||
"`knownledge Based QA <./use_cases/knownledge_based_qa.html>`_: A "
|
||||
"important scene for user to chat with database documents, codes, bugs and"
|
||||
" schemas."
|
||||
msgstr "`知识库问答 <./use_cases/knownledge_based_qa.html>`_: 用户与数据库文档、代码和bug聊天的重要场景\""
|
||||
|
||||
#: ../../index.rst:99 9945fb5cd8264a2b9b4a23c7cbf9c4d6
|
||||
#: ../../index.rst:99 61cbb326c1134cf3b4dbf4585036c046
|
||||
msgid ""
|
||||
"`Chatbots <./use_cases/chatbots.html>`_: Language model love to chat, use"
|
||||
" multi models to chat."
|
||||
msgstr "`聊天机器人 <./use_cases/chatbots.html>`_: 使用多模型进行对话"
|
||||
|
||||
#: ../../index.rst:101 79878fc3a54244f78d030555e8df903c
|
||||
#: ../../index.rst:101 488b5a083f364d488284c64400f452ff
|
||||
msgid ""
|
||||
"`Querying Database Data <./use_cases/query_database_data.html>`_: Query "
|
||||
"and Analysis data from databases and give charts."
|
||||
msgstr "`查询数据库数据 <./use_cases/query_database_data.html>`_:从数据库中查询和分析数据并给出图表。"
|
||||
|
||||
#: ../../index.rst:103 54280881381a49b6838bc2bf52bc5e35
|
||||
#: ../../index.rst:103 2a54fcac7c2f47da8a415087450a784d
|
||||
msgid ""
|
||||
"`Interacting with apis <./use_cases/interacting_with_api.html>`_: "
|
||||
"Interact with apis, such as create a table, deploy a database cluster, "
|
||||
@ -233,33 +231,33 @@ msgstr ""
|
||||
"`API交互 <./use_cases/interacting_with_api.html>`_: "
|
||||
"与API交互,例如创建表、部署数据库集群、创建数据库等。"
|
||||
|
||||
#: ../../index.rst:105 e9f9a28795d447b0a6cc4f7d1a42b4b5
|
||||
#: ../../index.rst:105 126df42194b643cd9b9326ee71b62912
|
||||
msgid ""
|
||||
"`Tool use with plugins <./use_cases/tool_use_with_plugin>`_: According to"
|
||||
" Plugin use tools to manage databases autonomoly."
|
||||
msgstr "`插件工具 <./use_cases/tool_use_with_plugin>`_: 根据插件使用工具自主管理数据库。"
|
||||
|
||||
#: ../../index.rst:122 ce9606638e9d407e9d922f8548a9629f
|
||||
#: ../../index.rst:122 fd5e4ce005f24f8eb6eeafe6d16de131
|
||||
msgid ""
|
||||
"Full documentation on all methods, classes, installation methods, and "
|
||||
"integration setups for DB-GPT."
|
||||
msgstr "关于DB-GPT的所有方法、类、安装方法和集成设置的完整文档。"
|
||||
|
||||
#: ../../index.rst:133 474ac86db3154a35bad4ae3e0a1f94a1
|
||||
#: ../../index.rst:133 ee9eb07b432040059c50e6834487f524
|
||||
msgid "Ecosystem"
|
||||
msgstr "环境系统"
|
||||
|
||||
#: ../../index.rst:135 215a8df681a7487da420798507882bf4
|
||||
#: ../../index.rst:135 826bf512f3a146a89af657abacac6b1b
|
||||
msgid "Guides for how other companies/products can be used with DB-GPT"
|
||||
msgstr "其他公司/产品如何与DB-GPT一起使用的方法指南"
|
||||
|
||||
#: ../../index.rst:150 57c73e56c1ec4df7922e8d45bba32b52
|
||||
#: ../../index.rst:150 4237eb1479194d8087dfd4f64d944555
|
||||
msgid ""
|
||||
"Additional resources we think may be useful as you develop your "
|
||||
"application!"
|
||||
msgstr "“我们认为在您开发应用程序时可能有用的其他资源!”"
|
||||
|
||||
#: ../../index.rst:152 2bcbdab6b08b4280b7178bce430c3f48
|
||||
#: ../../index.rst:152 fc80bea0667a4faba7d4ea7dc697fc28
|
||||
msgid ""
|
||||
"`Discord <https://discord.com/invite/twmZk3vv>`_: if your have some "
|
||||
"problem or ideas, you can talk from discord."
|
||||
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DB-GPT 👏👏 0.2.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-06-15 21:28+0800\n"
|
||||
"POT-Creation-Date: 2023-06-19 19:10+0800\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: zh_CN\n"
|
||||
@ -19,16 +19,16 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.12.1\n"
|
||||
|
||||
#: ../../modules/vector.rst:2 ../../modules/vector.rst:16
|
||||
#: 717d29faf59845cc86e24c343d574685
|
||||
#: ../../modules/vector.rst:2 ../../modules/vector.rst:17
|
||||
#: 22f05e3df5a14919ba30198e3800fdb9
|
||||
msgid "VectorConnector"
|
||||
msgstr "VectorConnector"
|
||||
|
||||
#: ../../modules/vector.rst:4 18436a753b2c4d4199318383faa226f0
|
||||
#: ../../modules/vector.rst:4 caa4353c84a04157809b694a6a7b46ca
|
||||
msgid "**VectorConnector Introduce**"
|
||||
msgstr "VectorConnector介绍"
|
||||
|
||||
#: ../../modules/vector.rst:6 8bc42e668949407280d033cadcc898c8
|
||||
#: ../../modules/vector.rst:6 e2f584d6cf374a10ae4471d3b9a72cef
|
||||
msgid ""
|
||||
"vector knowledge base is a method of mapping words in language to a high-"
|
||||
"dimensional vector space. In the vector space, each word is represented "
|
||||
@ -43,24 +43,33 @@ msgid ""
|
||||
" requires a large corpus and computing resources to complete."
|
||||
msgstr "向量知识库是一种将语言中的单词映射到一个高维向量空间中的方法。在向量空间中,每个单词都表示为一个向量,这个向量包含了许多数值特征,这些特征代表了该单词与其他单词之间的关系。这种映射是一种聚类技术,通过将语言中的单词映射到向量空间中,单词之间的语义关系可以通过计算它们在向量空间中的差异来计算。向量知识库可以用于自然语言处理任务,如情感分析、文本分类、机器翻译等。常见的向量知识库有Word2Vec、GloVe、FastText等。这些向量知识库的训练通常需要大量的语料库和计算资源来完成。"
|
||||
|
||||
#: ../../modules/vector.rst:8 0be8cf38ca00436dac74a462f438940d
|
||||
#: ../../modules/vector.rst:8 02a16590b6ec49c09a8247f89714eada
|
||||
msgid ""
|
||||
"VectorConnector is a vector database connection adapter that allows you "
|
||||
"to connect different vector databases and abstracts away implementation "
|
||||
"differences and underlying details of different vector data. For example,"
|
||||
" it can be used to connect to databases such as Milvus, Chroma, "
|
||||
"Elasticsearch, and Weaviate."
|
||||
msgstr "vectorconnector是一个向量数据库连接适配器,你可以通过它来连接不同的向量数据库,并且屏蔽掉了不同的向量数据的是实现差异和底层细节。例如Milvus, Chroma, Elasticsearch, Weaviate..."
|
||||
msgstr ""
|
||||
"vectorconnector是一个向量数据库连接适配器,你可以通过它来连接不同的向量数据库,并且屏蔽掉了不同的向量数据的是实现差异和底层细节。例如Milvus,"
|
||||
" Chroma, Elasticsearch, Weaviate..."
|
||||
|
||||
#: ../../modules/vector.rst:10 4d359cf0cf254b9392e9d3b963bc1071
|
||||
#: ../../modules/vector.rst:10 c38e3540e8844ea2a550620e2afac343
|
||||
msgid "DB-GPT VectorConnector currently support milvus and chroma vector database"
|
||||
msgstr "DB-GPT VectorConnector当前支持Milvus和Chroma,未来会越来越多."
|
||||
|
||||
#: ../../modules/vector.rst:12 60809c6ecbb64cc8888b9dc2f9de398a
|
||||
msgid "`Chroma <./vector/chroma.html>`_: supported chroma vector database."
|
||||
msgstr "msgid "`Chroma <./vector/chroma.html>`_: 支持Chroma向量数据库"
|
||||
#: ../../modules/vector.rst:12 f7e25f67a8764cab9664f8b7208af1aa
|
||||
#, fuzzy
|
||||
msgid "`chroma <./vector/chroma.html>`_: supported chroma vector database."
|
||||
msgstr "msgid \"`Chroma <./vector/chroma.html>`_: 支持Chroma向量数据库"
|
||||
|
||||
#: ../../modules/vector.rst:13 e24aeb84d75741fe9517a0d5ec5d92f1
|
||||
msgid "`Milvus <./vector/milvus.html>`_: supported milvus vector database."
|
||||
#: ../../modules/vector.rst:13 d08ef7653e964af590d9bb99d36204a8
|
||||
#, fuzzy
|
||||
msgid "`milvus <./vector/milvus.html>`_: supported milvus vector database."
|
||||
msgstr "Milvus <./vector/milvus.html>`_: 支持Milvus向量数据库"
|
||||
|
||||
#: ../../modules/vector.rst:14 2f95f18ad59b471cbfbc3f4dda4f5982
|
||||
#, fuzzy
|
||||
msgid "`weaviate <./vector/weaviate.html>`_: supported weaviate vector database."
|
||||
msgstr "Milvus <./vector/milvus.html>`_: 支持Milvus向量数据库"
|
||||
|
||||
|
@ -0,0 +1,58 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) 2023, csunny
|
||||
# This file is distributed under the same license as the DB-GPT package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: DB-GPT 👏👏 0.2.2\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-06-19 19:10+0800\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: zh_CN\n"
|
||||
"Language-Team: zh_CN <LL@li.org>\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.12.1\n"
|
||||
|
||||
#: ../../modules/vector/weaviate/weaviate.md:1 66d5a0e4ef6d41808b27e8401784e061
|
||||
msgid "WeaviateStore"
|
||||
msgstr "WeaviateStore"
|
||||
|
||||
#: ../../modules/vector/weaviate/weaviate.md:3 304e61962e8a48b398317dbb4e3ef533
|
||||
msgid ""
|
||||
"WeaviateStore is one implementation of the Milvus vector database in "
|
||||
"VectorConnector."
|
||||
msgstr "WeaviateStore是Weaviate向量数据库在VectorConnector的一种实现"
|
||||
|
||||
#: ../../modules/vector/weaviate/weaviate.md:5 fed48f3ae04b431f869725f1a92aaa1b
|
||||
msgid ""
|
||||
"[Tutorial on how to create a Weaviate "
|
||||
"instance](https://weaviate.io/developers/weaviate/installation)"
|
||||
msgstr "[怎样创建一个Weaviate实例](https://weaviate.io/developers/weaviate/installation)"
|
||||
|
||||
#: ../../modules/vector/weaviate/weaviate.md:7 7ffc39cf2d974401a4503efdba16c175
|
||||
msgid ""
|
||||
"inheriting the VectorStoreBase and implement similar_search(), "
|
||||
"vector_name_exists(), load_document()."
|
||||
msgstr "vector_name_exists(), load_document()."
|
||||
|
||||
#: ../../modules/vector/weaviate/weaviate.md:33
|
||||
#: ee62d6a1d23f4197bfe3085d80a6df00
|
||||
msgid "similar_search()"
|
||||
msgstr "similar_search()""
|
||||
|
||||
#: ../../modules/vector/weaviate/weaviate.md:55
|
||||
#: 81a117db4d4846edb78ab592a0d5a491
|
||||
msgid "vector_name_exists()"
|
||||
msgstr "vector_name_exists()"
|
||||
|
||||
#: ../../modules/vector/weaviate/weaviate.md:69
|
||||
#: f453b53d3d2242ec9a28e3ce1dc44561
|
||||
msgid "load_document()"
|
||||
msgstr "load_document()"
|
||||
|
@ -11,6 +11,7 @@ DB-GPT VectorConnector currently support milvus and chroma vector database
|
||||
|
||||
- `chroma <./vector/chroma.html>`_: supported chroma vector database.
|
||||
- `milvus <./vector/milvus.html>`_: supported milvus vector database.
|
||||
- `weaviate <./vector/weaviate.html>`_: supported weaviate vector database.
|
||||
|
||||
|
||||
.. toctree::
|
||||
@ -20,4 +21,5 @@ DB-GPT VectorConnector currently support milvus and chroma vector database
|
||||
:hidden:
|
||||
|
||||
./vector/chroma/chroma.md
|
||||
./vector/milvus/milvus.md
|
||||
./vector/milvus/milvus.md
|
||||
./vector/weaviate/weaviate.md
|
89
docs/modules/vector/weaviate/weaviate.md
Normal file
89
docs/modules/vector/weaviate/weaviate.md
Normal file
@ -0,0 +1,89 @@
|
||||
WeaviateStore
|
||||
==================================
|
||||
WeaviateStore is one implementation of the Milvus vector database in VectorConnector.
|
||||
|
||||
[Tutorial on how to create a Weaviate instance](https://weaviate.io/developers/weaviate/installation)
|
||||
|
||||
inheriting the VectorStoreBase and implement similar_search(), vector_name_exists(), load_document().
|
||||
```
|
||||
class WeaviateStore(VectorStoreBase):
|
||||
"""Weaviate database"""
|
||||
|
||||
def __init__(self, ctx: dict) -> None:
|
||||
"""Initialize with Weaviate client."""
|
||||
try:
|
||||
import weaviate
|
||||
except ImportError:
|
||||
raise ValueError(
|
||||
"Could not import weaviate python package. "
|
||||
"Please install it with `pip install weaviate-client`."
|
||||
)
|
||||
|
||||
self.ctx = ctx
|
||||
self.weaviate_url = CFG.WEAVIATE_URL
|
||||
self.embedding = ctx.get("embeddings", None)
|
||||
self.vector_name = ctx["vector_store_name"]
|
||||
self.persist_dir = os.path.join(
|
||||
KNOWLEDGE_UPLOAD_ROOT_PATH, self.vector_name + ".vectordb"
|
||||
)
|
||||
|
||||
self.vector_store_client = weaviate.Client(self.weaviate_url)
|
||||
```
|
||||
|
||||
similar_search()
|
||||
|
||||
```
|
||||
def similar_search(self, text: str, topk: int) -> None:
|
||||
"""Perform similar search in Weaviate"""
|
||||
logger.info("Weaviate similar search")
|
||||
# nearText = {
|
||||
# "concepts": [text],
|
||||
# "distance": 0.75, # prior to v1.14 use "certainty" instead of "distance"
|
||||
# }
|
||||
# vector = self.embedding.embed_query(text)
|
||||
response = (
|
||||
self.vector_store_client.query.get(self.vector_name, ["metadata", "page_content"])
|
||||
# .with_near_vector({"vector": vector})
|
||||
.with_limit(topk)
|
||||
.do()
|
||||
)
|
||||
docs = response['data']['Get'][list(response['data']['Get'].keys())[0]]
|
||||
return docs
|
||||
|
||||
```
|
||||
|
||||
vector_name_exists()
|
||||
|
||||
```
|
||||
def vector_name_exists(self) -> bool:
|
||||
"""Check if a vector name exists for a given class in Weaviate.
|
||||
Returns:
|
||||
bool: True if the vector name exists, False otherwise.
|
||||
"""
|
||||
if self.vector_store_client.schema.get(self.vector_name):
|
||||
return True
|
||||
return False
|
||||
|
||||
```
|
||||
|
||||
load_document()
|
||||
|
||||
```
|
||||
def load_document(self, documents: list) -> None:
|
||||
"""Load documents into Weaviate"""
|
||||
logger.info("Weaviate load document")
|
||||
texts = [doc.page_content for doc in documents]
|
||||
metadatas = [doc.metadata for doc in documents]
|
||||
|
||||
# Import data
|
||||
with self.vector_store_client.batch as batch:
|
||||
batch.batch_size = 100
|
||||
|
||||
# Batch import all documents
|
||||
for i in range(len(texts)):
|
||||
properties = {"metadata": metadatas[i]['source'], "page_content": texts[i]}
|
||||
|
||||
self.vector_store_client.batch.add_data_object(data_object=properties, class_name=self.vector_name)
|
||||
self.vector_store_client.batch.flush()
|
||||
```
|
||||
|
@ -59,7 +59,7 @@ nltk
|
||||
python-dotenv==1.0.0
|
||||
# pymilvus==2.2.1
|
||||
vcrpy
|
||||
chromadb=0.3.22
|
||||
chromadb==0.3.22
|
||||
markdown2
|
||||
colorama
|
||||
playsound
|
||||
|
Loading…
Reference in New Issue
Block a user