From 70a091364f1f7144826f02fdb416cddaaa21d34b Mon Sep 17 00:00:00 2001 From: aries_ckt <916701291@qq.com> Date: Fri, 18 Aug 2023 11:28:27 +0800 Subject: [PATCH 1/3] fix:add sqlite db type --- pilot/openapi/api_v1/api_v1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilot/openapi/api_v1/api_v1.py b/pilot/openapi/api_v1/api_v1.py index aa63df27f..7fedd5e11 100644 --- a/pilot/openapi/api_v1/api_v1.py +++ b/pilot/openapi/api_v1/api_v1.py @@ -118,7 +118,7 @@ async def db_connect_delete(db_name: str = None): @router.get("/v1/chat/db/support/type", response_model=Result[DbTypeInfo]) async def db_support_types(): - support_types = [DBType.Mysql, DBType.MSSQL, DBType.DuckDb] + support_types = [DBType.Mysql, DBType.MSSQL, DBType.DuckDb, DBType.SQLite] db_type_infos = [] for type in support_types: db_type_infos.append( From 0ff6fc880d893574fa150f565e43061bcbb7a040 Mon Sep 17 00:00:00 2001 From: aries_ckt <916701291@qq.com> Date: Fri, 18 Aug 2023 15:07:01 +0800 Subject: [PATCH 2/3] doc:faq and kbqa document --- docs/getting_started/application/kbqa/kbqa.md | 12 + docs/getting_started/faq/kbqa/kbqa_faq.md | 14 +- docs/getting_started/install.rst | 2 +- .../getting_started/application/kbqa/kbqa.po | 247 ++++++++++-------- .../getting_started/faq/chatdb/chatdb_faq.po | 13 +- .../getting_started/faq/kbqa/kbqa_faq.po | 67 +++-- .../getting_started/faq/llm/llm_faq.po | 27 +- .../getting_started/install/deploy/deploy.po | 4 +- pilot/vector_store/connector.py | 4 +- 9 files changed, 233 insertions(+), 157 deletions(-) diff --git a/docs/getting_started/application/kbqa/kbqa.md b/docs/getting_started/application/kbqa/kbqa.md index eb1e4acd8..88340e2c2 100644 --- a/docs/getting_started/application/kbqa/kbqa.md +++ b/docs/getting_started/application/kbqa/kbqa.md @@ -15,6 +15,18 @@ DB-GPT supports a knowledge question-answering module, which aims to create an i * Multi Vector DB ``` +```{note} +If your DB type is Sqlite, there is nothing to do to build KBQA service database schema. + +If your DB type is Mysql or other DBTYPE, you will build kbqa service database schema. + +### Mysql +$ mysql -h127.0.0.1 -uroot -paa12345678 < ./assets/schema/knowledge_management.sql + +or + +execute DBGPT/assets/schema/knowledge_management.sql +``` ## Steps to KBQA In DB-GPT diff --git a/docs/getting_started/faq/kbqa/kbqa_faq.md b/docs/getting_started/faq/kbqa/kbqa_faq.md index adf667a3c..b1835d7dc 100644 --- a/docs/getting_started/faq/kbqa/kbqa_faq.md +++ b/docs/getting_started/faq/kbqa/kbqa_faq.md @@ -47,12 +47,24 @@ Set KNOWLEDGE_SEARCH_TOP_SIZE smaller or set KNOWLEDGE_CHUNK_SIZE smaller, and r 1.shutdown dbgpt_server(ctrl c) 2.add column context for table knowledge_space + ```commandline mysql -h127.0.0.1 -uroot -paa12345678 ``` + 3.execute sql ddl + ```commandline mysql> use knowledge_management; mysql> ALTER TABLE knowledge_space ADD COLUMN context TEXT COMMENT "arguments context"; ``` -4.restart dbgpt serve \ No newline at end of file + +4.restart dbgpt serve + +##### Q5:Use Mysql, how to use DB-GPT KBQA + +build Mysql KBQA system database schema. + +```bash +$ mysql -h127.0.0.1 -uroot -paa12345678 < ./assets/schema/knowledge_management.sql +``` \ No newline at end of file diff --git a/docs/getting_started/install.rst b/docs/getting_started/install.rst index 6a188e85e..abb90ed6e 100644 --- a/docs/getting_started/install.rst +++ b/docs/getting_started/install.rst @@ -2,7 +2,7 @@ Install ================================== DB-GPT product is a Web application that you can chat database, chat knowledge, text2dashboard. -.. image:: ./assets/DB-GPT-Product.jpg +.. image:: https://github.com/eosphoros-ai/DB-GPT/assets/13723926/13d68dd5-d052-4976-9aeb-60ae13d63d02 - deploy diff --git a/docs/locales/zh_CN/LC_MESSAGES/getting_started/application/kbqa/kbqa.po b/docs/locales/zh_CN/LC_MESSAGES/getting_started/application/kbqa/kbqa.po index 577979d80..c57a1769b 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/getting_started/application/kbqa/kbqa.po +++ b/docs/locales/zh_CN/LC_MESSAGES/getting_started/application/kbqa/kbqa.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: DB-GPT 👏👏 0.3.5\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-16 18:31+0800\n" +"POT-Creation-Date: 2023-08-18 14:11+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: zh_CN\n" @@ -20,12 +20,12 @@ msgstr "" "Generated-By: Babel 2.12.1\n" #: ../../getting_started/application/kbqa/kbqa.md:1 -#: a06d9329c98f44ffaaf6fc09ba53d97e +#: c342c2c426ca40458d0de471f729bc42 msgid "KBQA" msgstr "" #: ../../getting_started/application/kbqa/kbqa.md:3 -#: bb6943c115754b1fafb7467313100753 +#: 5bd2a6513a1f4560a94b85e28345b030 msgid "" "DB-GPT supports a knowledge question-answering module, which aims to " "create an intelligent expert in the field of databases and provide " @@ -33,76 +33,112 @@ msgid "" msgstr " DB-GPT支持知识问答模块,知识问答的初衷是打造DB领域的智能专家,为数据库从业人员解决专业的知识问题回答" #: ../../getting_started/application/kbqa/kbqa.md:5 -#: a13ac963479e4d4fbcbcc4fec7863274 +#: fb32ebbf11ec4f3f925f0dc157e5bb1e msgid "![chat_knowledge](../../../../assets/chat_knowledge.png)" msgstr "![chat_knowledge](../../../../assets/chat_knowledge.png)" #: ../../getting_started/application/kbqa/kbqa.md:5 -#: f4db3a8d04634059a74be1b2b3c948ef +#: e44acc4009154e3396ebc8c69922c4e8 msgid "chat_knowledge" msgstr "chat_knowledge" #: ../../getting_started/application/kbqa/kbqa.md:7 #: ../../getting_started/application/kbqa/kbqa.md:10 -#: 86856cce95c845eb83ed44d8713b0ef6 f787e9ad9f7444a5923fe3476ab4d287 +#: 15d2742a567f4f2bb669086523691d11 d2228fc5179440729b594c9ac0626c2c msgid "KBQA abilities" msgstr "KBQA现有能力" #: ../../getting_started/application/kbqa/kbqa.md:11 -#: df1c88b28a2d46b2b3f5fae1caec000e +#: f7d0eac20e6d46fc8090f6d8c8786306 msgid "Knowledge Space." msgstr "知识空间" #: ../../getting_started/application/kbqa/kbqa.md:12 -#: 7f6c99d0c1394f08b246daa1343c24b2 +#: efde56662dbd4d7687fff81e2983e365 msgid "Multi Source Knowledge Source Embedding." msgstr "多数据源Embedding" #: ../../getting_started/application/kbqa/kbqa.md:13 -#: 3c1274c3e65f426bbee219227f681e27 +#: 6788330bed0948b1804723540cbebe7b msgid "Embedding Argument Adjust" msgstr "Embedding参数自定义" #: ../../getting_started/application/kbqa/kbqa.md:14 -#: 52fb29f7ee8745e6b78145f5be23b8ce +#: f7b04ae3bc3949bda0c8d1153953cabf msgid "Chat Knowledge" msgstr "知识问答" #: ../../getting_started/application/kbqa/kbqa.md:15 -#: 83e427c46d844c6a9bb5954342ae7c42 +#: 7c6365cf0026441d91e1d8ad7b97ff00 msgid "Multi Vector DB" msgstr "多向量数据库管理" #: ../../getting_started/application/kbqa/kbqa.md:19 -#: 07c1e189d0f84db69b6a51cf23ede7dc +#: e03c3631efc94e339fae6493b0866c44 +msgid "" +"If your DB type is Sqlite, there is nothing to do to build KBQA service " +"database schema." +msgstr "" + +#: ../../getting_started/application/kbqa/kbqa.md:21 +#: 670b9666927f4662872b80e648b13670 +msgid "" +"If your DB type is Mysql or other DBTYPE, you will build kbqa service " +"database schema." +msgstr "" + +#: ../../getting_started/application/kbqa/kbqa.md:23 +#: f4586b306b3542b4afaf431c0f215e98 +msgid "Mysql" +msgstr "" + +#: ../../getting_started/application/kbqa/kbqa.md:24 +#: 6c8ef148ec0f429ebbde6a8b6c1686f0 +msgid "" +"$ mysql -h127.0.0.1 -uroot -paa12345678 < " +"./assets/schema/knowledge_management.sql" +msgstr "" + +#: ../../getting_started/application/kbqa/kbqa.md:26 +#: 0ac3c50d793d4b9db9a8e2df72c46ec8 +msgid "or" +msgstr "" + +#: ../../getting_started/application/kbqa/kbqa.md:28 +#: 3572f74a11a1408eb1537f91fc2492f6 +msgid "execute DBGPT/assets/schema/knowledge_management.sql" +msgstr "" + +#: ../../getting_started/application/kbqa/kbqa.md:31 +#: 5ed3fd5cd4b547d5b01be4780ec11886 msgid "Steps to KBQA In DB-GPT" msgstr "怎样一步一步使用KBQA" -#: ../../getting_started/application/kbqa/kbqa.md:21 -#: 36e4195e5c3a4bedb7d11243e5705f0a +#: ../../getting_started/application/kbqa/kbqa.md:33 +#: 5d882ed64d4d49daa2e582f67aad6f88 msgid "1.Create Knowledge Space" msgstr "1.首先创建知识空间" -#: ../../getting_started/application/kbqa/kbqa.md:22 -#: 5c92d41df2b04374a6c7ce40308f738b +#: ../../getting_started/application/kbqa/kbqa.md:34 +#: bfdb91ff12c04094964d9f8a0c9bbfac msgid "" "If you are using Knowledge Space for the first time, you need to create a" " Knowledge Space and set your name, owner, description. " "![create_space](../../../../assets/kbqa/create_space.png)" msgstr "如果你是第一次使用,先创建知识空间,指定名字,拥有者和描述信息" -#: ../../getting_started/application/kbqa/kbqa.md:22 -#: c5f6e842be384977be1bd667b1e0ab5d +#: ../../getting_started/application/kbqa/kbqa.md:34 +#: ddbcb1112d5942db987a470bb935e1e4 msgid "create_space" msgstr "create_space" -#: ../../getting_started/application/kbqa/kbqa.md:27 -#: c98434920955416ca5273892f9086bc5 +#: ../../getting_started/application/kbqa/kbqa.md:39 +#: da62c5b0796c47f0a5e482e79e70e352 msgid "2.Create Knowledge Document" msgstr "2.上传知识" -#: ../../getting_started/application/kbqa/kbqa.md:28 -#: d63f798e8270455587d1afd98c72e995 +#: ../../getting_started/application/kbqa/kbqa.md:40 +#: 89e5377735f24f1d854f85ca4a387063 msgid "" "DB-GPT now support Multi Knowledge Source, including Text, WebUrl, and " "Document(PDF, Markdown, Word, PPT, HTML and CSV). After successfully " @@ -111,208 +147,209 @@ msgid "" "into the vector database. Alternatively, you can manually synchronize the" " document. You can also click on details to view the specific document " "slicing content." -msgstr "DB-GPT支持多数据源,包括Text纯文本, WebUrl和Document(PDF, Markdown, Word, PPT, HTML and CSV)。上传文档成功后后台会自动将文档内容进行读取,切片,然后导入到向量数据库中,当然你也可以手动进行同步,你也可以点击详情查看具体的文档切片内容" +msgstr "" +"DB-GPT支持多数据源,包括Text纯文本, WebUrl和Document(PDF, Markdown, Word, PPT, HTML " +"and " +"CSV)。上传文档成功后后台会自动将文档内容进行读取,切片,然后导入到向量数据库中,当然你也可以手动进行同步,你也可以点击详情查看具体的文档切片内容" -#: ../../getting_started/application/kbqa/kbqa.md:30 -#: 18becde7bdc34e9cb7017ff7711d1634 +#: ../../getting_started/application/kbqa/kbqa.md:42 +#: afd3140206664d079047e9225be40dc1 msgid "2.1 Choose Knowledge Type:" msgstr "2.1 选择知识类型" -#: ../../getting_started/application/kbqa/kbqa.md:31 -#: 755dfd18812249e591647d233ec9253b +#: ../../getting_started/application/kbqa/kbqa.md:43 +#: 0ea63130eb5741979a9603a768b759e6 msgid "![document](../../../../assets/kbqa/document.jpg)" msgstr "![document](../../../../assets/kbqa/document.jpg)" -#: ../../getting_started/application/kbqa/kbqa.md:31 -#: 10faa2236fa84dc284f7ce6d68acc43c +#: ../../getting_started/application/kbqa/kbqa.md:43 +#: cf7aacec8463485a811a1aa06d30f050 msgid "document" msgstr "document" -#: ../../getting_started/application/kbqa/kbqa.md:33 -#: 04449bfa78b14d1cb42c1259f67531d1 +#: ../../getting_started/application/kbqa/kbqa.md:45 +#: 0db8df4eb26b4139816e586136098c9b msgid "2.2 Upload Document:" msgstr "2.2上传文档" -#: ../../getting_started/application/kbqa/kbqa.md:34 -#: de14e2d7a6c54623bfc8af2fc6e20c62 +#: ../../getting_started/application/kbqa/kbqa.md:46 +#: e4331acfd6a24a2094cbbe21fd46ac8b msgid "![upload](../../../../assets/kbqa/upload.jpg)" msgstr "![upload](../../../../assets/kbqa/upload.jpg)" -#: ../../getting_started/application/kbqa/kbqa.md:34 -#: ../../getting_started/application/kbqa/kbqa.md:38 -#: ../../getting_started/application/kbqa/kbqa.md:43 -#: ../../getting_started/application/kbqa/kbqa.md:56 -#: 0e3ab13b9d064b238fba283d6f466051 65ea0b9b43ef4c64897a6e65781129c7 -#: cb65cb968a91492d9526f47e74b179e1 f0ff29911159497fb542942b6deb6972 +#: ../../getting_started/application/kbqa/kbqa.md:46 +#: ../../getting_started/application/kbqa/kbqa.md:50 +#: ../../getting_started/application/kbqa/kbqa.md:55 +#: ../../getting_started/application/kbqa/kbqa.md:68 +#: b8e7fc9cf2ef42fa8313d5f0b0c0e0ba msgid "upload" msgstr "upload" -#: ../../getting_started/application/kbqa/kbqa.md:37 -#: 77d936d2502f41feb2721da86cc1ebb1 +#: ../../getting_started/application/kbqa/kbqa.md:49 +#: e5a87f0715a642f58cae29ce43d72648 msgid "3.Chat With Knowledge" msgstr "3.知识问答" -#: ../../getting_started/application/kbqa/kbqa.md:38 -#: ae72c3236e564949b142a945f3474425 +#: ../../getting_started/application/kbqa/kbqa.md:50 +#: cefec99c30ab4757896b328371725dd7 msgid "![upload](../../../../assets/kbqa/begin_chat.jpg)" msgstr "![upload](../../../../assets/kbqa/begin_chat.jpg)" -#: ../../getting_started/application/kbqa/kbqa.md:40 -#: b9d701985d404a9196bb896718f41e36 +#: ../../getting_started/application/kbqa/kbqa.md:52 +#: 5d870c26dfaa4916a5e17646d835c5fd msgid "4.Adjust Space arguments" msgstr "4.调整知识参数" -#: ../../getting_started/application/kbqa/kbqa.md:41 -#: 6155bbf401ef44ea8d761c83ae5ceb9a +#: ../../getting_started/application/kbqa/kbqa.md:53 +#: 56afbbc1dc144c43be0b3e5ff8c3eb55 msgid "" "Each knowledge space supports argument customization, including the " "relevant arguments for vector retrieval and the arguments for knowledge " "question-answering prompts." msgstr "每一个知识空间都支持参数自定义, 包括向量召回的相关参数以及知识问答Promp参数" -#: ../../getting_started/application/kbqa/kbqa.md:42 -#: b9ac70b5ee99435a962dcb040b5ba4fc +#: ../../getting_started/application/kbqa/kbqa.md:54 +#: 994eb05bc17148608f5efc03a12797ff msgid "4.1 Embedding" msgstr "4.1 Embedding" -#: ../../getting_started/application/kbqa/kbqa.md:43 -#: 0ca2398756924828a904921456b863b5 +#: ../../getting_started/application/kbqa/kbqa.md:55 +#: ab00c34d964a4a0ab6472a4ab68c6b9a msgid "Embedding Argument ![upload](../../../../assets/kbqa/embedding.png)" msgstr "Embedding Argument ![upload](../../../../assets/kbqa/embedding.png)" -#: ../../getting_started/application/kbqa/kbqa.md:47 -#: e8b3e973e3b940e4bbf3180b7d6057ec +#: ../../getting_started/application/kbqa/kbqa.md:59 +#: 0bdc576f5c4f4d46b84dfd3e57e2e004 msgid "Embedding arguments" msgstr "Embedding arguments" -#: ../../getting_started/application/kbqa/kbqa.md:48 -#: 1cff4790d546455abeca725ae8b53c0d +#: ../../getting_started/application/kbqa/kbqa.md:60 +#: 515ed658cf8742e1898df7b6b0ed8fec msgid "topk:the top k vectors based on similarity score." msgstr "topk:相似性检索出tok条文档" -#: ../../getting_started/application/kbqa/kbqa.md:49 -#: 525aaa02028b4900919526290b6da9ef +#: ../../getting_started/application/kbqa/kbqa.md:61 +#: b2cec278eee640c2b1dea2e52032ca16 msgid "recall_score:set a threshold score for the retrieval of similar vectors." msgstr "recall_score:向量检索相关度衡量指标分数" -#: ../../getting_started/application/kbqa/kbqa.md:50 -#: dead3b559b134e52a3cf38e29b1982e1 +#: ../../getting_started/application/kbqa/kbqa.md:62 +#: ba0a2a2ff9454a7598d2217b8aefa565 msgid "recall_type:recall type." msgstr "recall_type:召回类型" -#: ../../getting_started/application/kbqa/kbqa.md:51 -#: 7c48de3186a14fcf96ee2bc6d715bd4c +#: ../../getting_started/application/kbqa/kbqa.md:63 +#: b33b6627142d41c4a4e83b56d446c0c7 msgid "model:A model used to create vector representations of text or other data." msgstr "model:embdding模型" -#: ../../getting_started/application/kbqa/kbqa.md:52 -#: 875ba3d051b847a5b3357a4eef583c0a +#: ../../getting_started/application/kbqa/kbqa.md:64 +#: 9113a950faca4515967a905256a29e8e msgid "chunk_size:The size of the data chunks used in processing." msgstr "chunk_size:文档切片阈值大小" -#: ../../getting_started/application/kbqa/kbqa.md:53 -#: e43f2bb091594532ba69ed3e3a385cdd +#: ../../getting_started/application/kbqa/kbqa.md:65 +#: dccc04f7efae40309ecaccb33375cf9c msgid "chunk_overlap:The amount of overlap between adjacent data chunks." msgstr "chunk_overlap:文本块之间的最大重叠量。保留一些重叠可以保持文本块之间的连续性(例如使用滑动窗口)" -#: ../../getting_started/application/kbqa/kbqa.md:55 -#: e21e19688fa042a4b60860ffa6bcf119 +#: ../../getting_started/application/kbqa/kbqa.md:67 +#: 1740d538f7e7427a8f031b9e1e045f15 msgid "4.2 Prompt" msgstr "4.2 Prompt" -#: ../../getting_started/application/kbqa/kbqa.md:56 -#: 00f0bddcd9174b7a84a25b7fe6d286e9 +#: ../../getting_started/application/kbqa/kbqa.md:68 +#: a0faf9300f804cc1b99371946c1c86e0 msgid "Prompt Argument ![upload](../../../../assets/kbqa/prompt.png)" msgstr "Prompt Argument ![upload](../../../../assets/kbqa/prompt.png)" -#: ../../getting_started/application/kbqa/kbqa.md:60 -#: d5ff2b76a04949708b3c9050db647927 +#: ../../getting_started/application/kbqa/kbqa.md:72 +#: b8e6d1b4afdb4dcca99ed23107f3da0b msgid "Prompt arguments" msgstr "Prompt arguments" -#: ../../getting_started/application/kbqa/kbqa.md:61 -#: 817a8744378546a2b049f44793b4554b +#: ../../getting_started/application/kbqa/kbqa.md:73 +#: 9d3acae04dae4beb86577e58a9f0a8ed msgid "" "scene:A contextual parameter used to define the setting or environment in" " which the prompt is being used." msgstr "scene:上下文环境的场景定义" -#: ../../getting_started/application/kbqa/kbqa.md:62 -#: 5330c26a4fc34ff6ba5fea1910cfbdc0 +#: ../../getting_started/application/kbqa/kbqa.md:74 +#: f33e888dd6494330a36ee4b091aa2f3a msgid "" "template:A pre-defined structure or format for the prompt, which can help" " ensure that the AI system generates responses that are consistent with " "the desired style or tone." -msgstr "" -"template:预定义的提示结构或格式,可以帮助确保AI系统生成与所期望的风格或语气一致的回复。" +msgstr "template:预定义的提示结构或格式,可以帮助确保AI系统生成与所期望的风格或语气一致的回复。" -#: ../../getting_started/application/kbqa/kbqa.md:63 -#: a34cd8248e6b44228868c2a02e12466f +#: ../../getting_started/application/kbqa/kbqa.md:75 +#: 18337db544f4428ba32622a0d7d711f3 msgid "max_token:The maximum number of tokens or words allowed in a prompt." msgstr "max_token: prompt token最大值" -#: ../../getting_started/application/kbqa/kbqa.md:65 -#: 7da49aac293f462b9e3968fa1493dba1 +#: ../../getting_started/application/kbqa/kbqa.md:77 +#: 531a209f474246249ffaf66dec484dcc msgid "5.Change Vector Database" msgstr "5.Change Vector Database" -#: ../../getting_started/application/kbqa/kbqa.md:67 -#: 680bfb451eb040e0aa55f8faa12bb75a +#: ../../getting_started/application/kbqa/kbqa.md:79 +#: d6665f2efd73412a9dd5ac2ffd88b369 msgid "Vector Store SETTINGS" msgstr "Vector Store SETTINGS" -#: ../../getting_started/application/kbqa/kbqa.md:68 -#: 32820ae6807840119a786e92124ad209 +#: ../../getting_started/application/kbqa/kbqa.md:80 +#: 8a6f5b7af5b942928a76556425d943bd msgid "Chroma" msgstr "Chroma" -#: ../../getting_started/application/kbqa/kbqa.md:69 -#: 7573aa05bc914fc2993b2531475b3b99 +#: ../../getting_started/application/kbqa/kbqa.md:81 +#: bbde039fef3445bf84cc2ded916e6960 msgid "VECTOR_STORE_TYPE=Chroma" msgstr "VECTOR_STORE_TYPE=Chroma" -#: ../../getting_started/application/kbqa/kbqa.md:70 -#: cc2c5521ba6e417eb5b3cf96375c2a08 +#: ../../getting_started/application/kbqa/kbqa.md:82 +#: 984d7eceee8c474880174f3a3ba0df7a msgid "MILVUS" msgstr "MILVUS" -#: ../../getting_started/application/kbqa/kbqa.md:71 -#: fc5dfa54c8a24b069e2709c309e43faa +#: ../../getting_started/application/kbqa/kbqa.md:83 +#: 8dbf41b03c58457896c4a9595fcb9517 msgid "VECTOR_STORE_TYPE=Milvus" msgstr "VECTOR_STORE_TYPE=Milvus" -#: ../../getting_started/application/kbqa/kbqa.md:72 -#: 8661384f0c4a40a0b79fad94bbee1792 +#: ../../getting_started/application/kbqa/kbqa.md:84 +#: 853a391ff6fc47af90e8fbaea06ee948 msgid "MILVUS_URL=127.0.0.1" msgstr "MILVUS_URL=127.0.0.1" -#: ../../getting_started/application/kbqa/kbqa.md:73 -#: 2035d343d34f47fa9fa84eb841afa2f8 +#: ../../getting_started/application/kbqa/kbqa.md:85 +#: ef21d47a76eb495dbafb3dd0e99ae3b2 msgid "MILVUS_PORT=19530" msgstr "MILVUS_PORT=19530" -#: ../../getting_started/application/kbqa/kbqa.md:74 -#: e0d8bd8d1dfb425bb50d5c8bf4a134ab +#: ../../getting_started/application/kbqa/kbqa.md:86 +#: c06ba32595bb4572a468f8ca277c30fd msgid "MILVUS_USERNAME" msgstr "MILVUS_USERNAME" -#: ../../getting_started/application/kbqa/kbqa.md:75 -#: dec547e6b4354c71857fa7c92c08bfa6 +#: ../../getting_started/application/kbqa/kbqa.md:87 +#: f09d2171e98c4b379cb7548715b3f60f msgid "MILVUS_PASSWORD" msgstr "MILVUS_PASSWORD" -#: ../../getting_started/application/kbqa/kbqa.md:76 -#: 9ad3f325f79e49309bd3419f48015e90 +#: ../../getting_started/application/kbqa/kbqa.md:88 +#: e0f8de6b5bfb4689be9a7777796e5477 msgid "MILVUS_SECURE=" msgstr "MILVUS_SECURE=" -#: ../../getting_started/application/kbqa/kbqa.md:78 -#: f6e15bf479da496fbcdf7621bad4dda8 +#: ../../getting_started/application/kbqa/kbqa.md:90 +#: 15fee5a1d2d9404f955a27d77656b690 msgid "WEAVIATE" msgstr "WEAVIATE" -#: ../../getting_started/application/kbqa/kbqa.md:79 -#: f7838d5de0a9452486adceb3a26369ee +#: ../../getting_started/application/kbqa/kbqa.md:91 +#: 632fe609a7694d51b4b908fed5a80415 msgid "WEAVIATE_URL=https://kt-region-m8hcy0wc.weaviate.network" msgstr "WEAVIATE_URL=https://kt-region-m8hcy0wc.weaviate.networkc" diff --git a/docs/locales/zh_CN/LC_MESSAGES/getting_started/faq/chatdb/chatdb_faq.po b/docs/locales/zh_CN/LC_MESSAGES/getting_started/faq/chatdb/chatdb_faq.po index dbc03b315..b0084b477 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/getting_started/faq/chatdb/chatdb_faq.po +++ b/docs/locales/zh_CN/LC_MESSAGES/getting_started/faq/chatdb/chatdb_faq.po @@ -22,7 +22,7 @@ msgstr "" #: ../../getting_started/faq/chatdb/chatdb_faq.md:1 #: ffd1abb6b8f34e53a8ed83ede845b141 msgid "Chat DB FAQ" -msgstr "" +msgstr "Chat DB FAQ" #: ../../getting_started/faq/chatdb/chatdb_faq.md:3 #: 2467f6603ab341bbb1ce17f75dc06e5e @@ -35,27 +35,28 @@ msgid "" "ChatData generates SQL from natural language and executes it. ChatDB " "involves conversing with metadata from the Database, including metadata " "about databases, tables, and fields." -msgstr "" +msgstr "ChatData 是将自然语言转换成SQL并执行获取结果,ChatDB主要是和数据库元数据信息(包括表、字段、索引信息), 用于db诊断和数据库答疑" #: ../../getting_started/faq/chatdb/chatdb_faq.md:6 #: fa3eef15697f43db963f6c875e85323b msgid "Q2: The suitable llm model currently supported for text-to-SQL is?" -msgstr "" +msgstr "Q2: 目前DB-GPT最适合text-to-SQL的开源模型是什么" #: ../../getting_started/faq/chatdb/chatdb_faq.md:7 #: 47f36a0a48c045269bcf790873d55f8c msgid "Now vicunna-13b-1.5 and llama2-70b is more suitable for text-to-SQL." -msgstr "" +msgstr "vicunna-13b-1.5 和 llama2-70b" #: ../../getting_started/faq/chatdb/chatdb_faq.md:9 #: 9f5ef9a05fac4eb3b27875171ec4e763 msgid "Q3: How to fine-tune Text-to-SQL in DB-GPT" -msgstr "" +msgstr "Q3: 我想fine-tune Text-to-SQL in DB-GPT" #: ../../getting_started/faq/chatdb/chatdb_faq.md:10 #: c9b6f6e969e04805a59d9ccabc03c0b8 msgid "" "there is another github project for Text-to-SQL fine-tune " "(https://github.com/eosphoros-ai/DB-GPT-Hub)" -msgstr "" +msgstr "参与另外一个项目 Text-to-SQL fine-tune " +"(https://github.com/eosphoros-ai/DB-GPT-Hub)" diff --git a/docs/locales/zh_CN/LC_MESSAGES/getting_started/faq/kbqa/kbqa_faq.po b/docs/locales/zh_CN/LC_MESSAGES/getting_started/faq/kbqa/kbqa_faq.po index 1b352e972..885826ddd 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/getting_started/faq/kbqa/kbqa_faq.po +++ b/docs/locales/zh_CN/LC_MESSAGES/getting_started/faq/kbqa/kbqa_faq.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: DB-GPT 👏👏 0.3.5\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-16 18:31+0800\n" +"POT-Creation-Date: 2023-08-18 14:11+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: zh_CN\n" @@ -20,34 +20,34 @@ msgstr "" "Generated-By: Babel 2.12.1\n" #: ../../getting_started/faq/kbqa/kbqa_faq.md:1 -#: bce4fd8751dd49bb8ab89a651094cfe1 +#: 348b327c869643c8baaafaddb9e7e6d4 msgid "KBQA FAQ" -msgstr "" +msgstr "KBQA FAQ" #: ../../getting_started/faq/kbqa/kbqa_faq.md:4 -#: c9714f70a03f422fae7bdb2b3b3c8be5 +#: b2d05eeaec0b445ab3283e0e4eee028a msgid "Q1: text2vec-large-chinese not found" -msgstr "" +msgstr "Q1: text2vec-large-chinese not found" #: ../../getting_started/faq/kbqa/kbqa_faq.md:6 -#: 1c56b9081adb46b29063947659e67083 +#: d64bad7091de4b439ab80cd754b3e68f msgid "" "make sure you have download text2vec-large-chinese embedding model in " "right way" -msgstr "" +msgstr "确认下载text2vec-large-chinese模型姿势以及路径正确" #: ../../getting_started/faq/kbqa/kbqa_faq.md:18 -#: 39763bdbc6824675b293f0f219fc05bb +#: 15a4987b681241cfa6dc4fc08dbebce3 msgid "Q2:How to change Vector DB Type in DB-GPT." -msgstr "" +msgstr "怎么修改向量数据库类型" #: ../../getting_started/faq/kbqa/kbqa_faq.md:20 -#: 225cc6e5b6944ce3b675845aa93afb66 +#: 6566d91820334c8fac964fe7e012acc7 msgid "Update .env file and set VECTOR_STORE_TYPE." -msgstr "" +msgstr "怎样在.env文件设置VECTOR_STORE_TYPE" #: ../../getting_started/faq/kbqa/kbqa_faq.md:22 -#: 5ad12db4aed44f4890911b5aea9529ce +#: 124dfe106c4b4afeadf0f2bc4b146f50 msgid "" "DB-GPT currently support Chroma(Default), Milvus(>2.1), Weaviate vector " "database. If you want to change vector db, Update your .env, set your " @@ -55,44 +55,57 @@ msgid "" "Milvus(>2.1), if you set Milvus, please set MILVUS_URL and MILVUS_PORT) " "If you want to support more vector db, you can integrate yourself.[how to" " integrate](https://db-gpt.readthedocs.io/en/latest/modules/vector.html)" -msgstr "" +msgstr "DB-GPT当前支持向量数据库有Chroma(Default), Milvus(>2.1), Weaviate. 可以在在.env文件设置VECTOR_STORE_TYP,如果你想支持更多向量数据库, 参考[how to" +" integrate](https://db-gpt.readthedocs.io/en/latest/modules/vector.html)" + #: ../../getting_started/faq/kbqa/kbqa_faq.md:38 -#: f8dd19ff86244cc7be91b7ab9190baeb +#: 5da7eb1fda5d43268eda0fab9d387dbb msgid "Q3:When I use vicuna-13b, found some illegal character like this." -msgstr "" +msgstr "当使用vicuna系列模型时出现乱码。" #: ../../getting_started/faq/kbqa/kbqa_faq.md:43 -#: ec4a69476d4e4e4d92619ade829c2b39 +#: 80f9785ca43f4f8a9475556bffab28a7 msgid "" "Set KNOWLEDGE_SEARCH_TOP_SIZE smaller or set KNOWLEDGE_CHUNK_SIZE " "smaller, and reboot server." -msgstr "" +msgstr "通过在.env文件将KNOWLEDGE_SEARCH_TOP_SIZE设置更小点或者在文档界面点击参数设置,将topk设置更小点" #: ../../getting_started/faq/kbqa/kbqa_faq.md:45 -#: 5b039a860c0b4cb088d042467ad2a49c +#: 7627f9349fbb40968537866075e53541 msgid "" "Q4:space add error (pymysql.err.OperationalError) (1054, \"Unknown column" " 'knowledge_space.context' in 'field list'\")" -msgstr "" +msgstr "space add error (pymysql.err.OperationalError) (1054, \"Unknown column" +" 'knowledge_space.context' in 'field list'\")" #: ../../getting_started/faq/kbqa/kbqa_faq.md:47 -#: bafac5e248894263a77ab688922df520 +#: e4c8bc526f1744ca880fd0f5faaa18c6 msgid "1.shutdown dbgpt_server(ctrl c)" -msgstr "" +msgstr "1.终止 dbgpt_server(ctrl c)" #: ../../getting_started/faq/kbqa/kbqa_faq.md:49 -#: 8ff5ca901f684e8ebe951f8c053ab925 +#: 25762770ad7b4e52aa60c1b8a274331b msgid "2.add column context for table knowledge_space" -msgstr "" +msgstr "2.新增列 `context` for table knowledge_space" #: ../../getting_started/faq/kbqa/kbqa_faq.md:53 -#: ea9f945678aa426894f0a12013f8fe5c +#: b025ea011b704eaab5413514a00ada4a msgid "3.execute sql ddl" -msgstr "" +msgstr "3.执行ddl" #: ../../getting_started/faq/kbqa/kbqa_faq.md:58 -#: 1a7941f2f1e94d359095e92b470ee02c +#: 2c25d510b7cc4386a962be130232f39c msgid "4.restart dbgpt serve" -msgstr "" +msgstr "4.重启dbgpt server" + +#: ../../getting_started/faq/kbqa/kbqa_faq.md:60 +#: 36aedd2404e84caf90fa6565fc05ee1f +msgid "Q5:Use Mysql, how to use DB-GPT KBQA" +msgstr "Q5:当使用 Mysql数据库时, 使用DB-GPT怎么初始化 KBQA service database schema" + +#: ../../getting_started/faq/kbqa/kbqa_faq.md:61 +#: bb01d8d145f64038bbacde1f05e69be1 +msgid "build Mysql KBQA system database schema." +msgstr "构建Mysql KBQA system database schema" diff --git a/docs/locales/zh_CN/LC_MESSAGES/getting_started/faq/llm/llm_faq.po b/docs/locales/zh_CN/LC_MESSAGES/getting_started/faq/llm/llm_faq.po index 260d2dd09..4be1ae177 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/getting_started/faq/llm/llm_faq.po +++ b/docs/locales/zh_CN/LC_MESSAGES/getting_started/faq/llm/llm_faq.po @@ -21,67 +21,68 @@ msgstr "" #: ../../getting_started/faq/llm/llm_faq.md:1 f79c82f385904385b08618436e600d9f msgid "LLM USE FAQ" -msgstr "" +msgstr "LLM模型使用FAQ" #: ../../getting_started/faq/llm/llm_faq.md:3 1fc802fa69224062b02403bc35084c18 msgid "Q1:how to use openai chatgpt service" -msgstr "" +msgstr "我怎么使用OPENAI服务" #: ../../getting_started/faq/llm/llm_faq.md:4 9094902d148a4cc99fe72aa0e41062ae msgid "change your LLM_MODEL" -msgstr "" +msgstr "通过在.env文件设置LLM_MODEL" #: ../../getting_started/faq/llm/llm_faq.md:9 07073eb8d9eb4988a3b035666c63d3fb msgid "set your OPENAPI KEY" -msgstr "" +msgstr "set your OPENAPI KEY" #: ../../getting_started/faq/llm/llm_faq.md:15 a71bb0d1181e47368a286b5694a00056 msgid "make sure your openapi API_KEY is available" -msgstr "" +msgstr "确认openapi API_KEY是否可用" #: ../../getting_started/faq/llm/llm_faq.md:17 789b003864824970923bac474a9ab0cd msgid "Q2 how to use MultiGPUs" -msgstr "" +msgstr "Q2 怎么使用 MultiGPUs" #: ../../getting_started/faq/llm/llm_faq.md:18 4be3dd71a8654202a210bcb11c50cc79 msgid "" "DB-GPT will use all available gpu by default. And you can modify the " "setting `CUDA_VISIBLE_DEVICES=0,1` in `.env` file to use the specific gpu" " IDs." -msgstr "" +msgstr "DB-GPT默认加载可利用的gpu,你也可以通过修改 在`.env`文件 `CUDA_VISIBLE_DEVICES=0,1`来指定gpu IDs" #: ../../getting_started/faq/llm/llm_faq.md:20 3a00c5fff666451cacda7f9af37564b9 msgid "" "Optionally, you can also specify the gpu ID to use before the starting " "command, as shown below:" -msgstr "" +msgstr "你也可以指定gpu ID启动" #: ../../getting_started/faq/llm/llm_faq.md:30 7fef386f3a3443569042e7d8b9a3ff15 msgid "" "You can modify the setting `MAX_GPU_MEMORY=xxGib` in `.env` file to " "configure the maximum memory used by each GPU." -msgstr "" +msgstr "同时你可以通过在.env文件设置`MAX_GPU_MEMORY=xxGib`修改每个GPU的最大使用内存" #: ../../getting_started/faq/llm/llm_faq.md:32 d75d440da8ab49a3944c3a456db25bee msgid "Q3 Not Enough Memory" -msgstr "" +msgstr "Q3 机器显存不够 " #: ../../getting_started/faq/llm/llm_faq.md:34 2a2cd59382e149ffb623cb3d42754dca msgid "DB-GPT supported 8-bit quantization and 4-bit quantization." -msgstr "" +msgstr "DB-GPT 支持 8-bit quantization 和 4-bit quantization." #: ../../getting_started/faq/llm/llm_faq.md:36 755131812baa4f5a99b706849459e10a msgid "" "You can modify the setting `QUANTIZE_8bit=True` or `QUANTIZE_4bit=True` " "in `.env` file to use quantization(8-bit quantization is enabled by " "default)." -msgstr "" +msgstr "你可以通过在.env文件设置`QUANTIZE_8bit=True` or `QUANTIZE_4bit=True`" #: ../../getting_started/faq/llm/llm_faq.md:38 b85424bc11134af985f687d8ee8d2c9f msgid "" "Llama-2-70b with 8-bit quantization can run with 80 GB of VRAM, and 4-bit" " quantization can run with 48 GB of VRAM." -msgstr "" +msgstr "Llama-2-70b with 8-bit quantization 可以运行在 80 GB VRAM机器, 4-bit " +"quantization可以运行在 48 GB VRAM" #: ../../getting_started/faq/llm/llm_faq.md:40 b6e4db679636492c9e4170a33fd6f638 msgid "" diff --git a/docs/locales/zh_CN/LC_MESSAGES/getting_started/install/deploy/deploy.po b/docs/locales/zh_CN/LC_MESSAGES/getting_started/install/deploy/deploy.po index 44440d3f1..bf570d9b1 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/getting_started/install/deploy/deploy.po +++ b/docs/locales/zh_CN/LC_MESSAGES/getting_started/install/deploy/deploy.po @@ -389,8 +389,8 @@ msgid "" "Llama-2-70b with 8-bit quantization can run with 80 GB of VRAM, and 4-bit" " quantization can run with 48 GB of VRAM." msgstr "" -"Llama-2-70b with 8-bit quantization 可以运行在 80 GB VRAM机器, 4-bit " -"quantization 可以运行在 48 GB VRAM" +"Llama-2-70b with 8-bit quantization 可以运行在80GB VRAM机器, 4-bit " +"quantization可以运行在 48 GB VRAM" #: ../../getting_started/install/deploy/deploy.md:147 #: 9b6085c41b5c4b96ac3e917dc5002fc2 diff --git a/pilot/vector_store/connector.py b/pilot/vector_store/connector.py index eaa202e72..d95fc4821 100644 --- a/pilot/vector_store/connector.py +++ b/pilot/vector_store/connector.py @@ -1,8 +1,8 @@ from pilot.vector_store.chroma_store import ChromaStore -from pilot.vector_store.weaviate_store import WeaviateStore +# from pilot.vector_store.weaviate_store import WeaviateStore -connector = {"Chroma": ChromaStore, "Weaviate": WeaviateStore} +connector = {"Chroma": ChromaStore} try: from pilot.vector_store.milvus_store import MilvusStore From a76f68239e192439479641742e18898b7334840e Mon Sep 17 00:00:00 2001 From: aries_ckt <916701291@qq.com> Date: Fri, 18 Aug 2023 18:00:22 +0800 Subject: [PATCH 3/3] doc:chatdb document --- .../application/chatdb/chatdb.md | 26 +++++- .../application/chatdb/chatdb.po | 85 +++++++++++-------- 2 files changed, 71 insertions(+), 40 deletions(-) diff --git a/docs/getting_started/application/chatdb/chatdb.md b/docs/getting_started/application/chatdb/chatdb.md index 5dca2aeb0..0344c9f8e 100644 --- a/docs/getting_started/application/chatdb/chatdb.md +++ b/docs/getting_started/application/chatdb/chatdb.md @@ -1,16 +1,36 @@ ChatData & ChatDB ================================== -ChatData generates SQL from natural language and executes it. ChatDB involves conversing with metadata from the Database, including metadata about databases, tables, and fields.![db plugins demonstration](../../../../assets/chat_data/chat_data.jpg) +ChatData generates SQL from natural language and executes it. ChatDB involves conversing with metadata from the +Database, including metadata about databases, tables, and +fields.![db plugins demonstration](../../../../assets/chat_data/chat_data.jpg) + ### 1.Choose Datasource -If you are using DB-GPT for the first time, you need to add a data source and set the relevant connection information for the data source. + +If you are using DB-GPT for the first time, you need to add a data source and set the relevant connection information +for the data source. + +```{tip} +there are some example data in DB-GPT-NEW/DB-GPT/docker/examples + +you can execute sql script to generate data. +``` + #### 1.1 Datasource management + ![db plugins demonstration](../../../../assets/chat_data/db_entry.png) + #### 1.2 Connection management + ![db plugins demonstration](../../../../assets/chat_data/db_connect.png) + #### 1.3 Add Datasource + ![db plugins demonstration](../../../../assets/chat_data/add_datasource.png) + ### 2.ChatData -After successfully setting up the data source, you can start conversing with the database. You can ask it to generate SQL for you or inquire about relevant information on the database's metadata. + +After successfully setting up the data source, you can start conversing with the database. You can ask it to generate +SQL for you or inquire about relevant information on the database's metadata. ![db plugins demonstration](../../../../assets/chat_data/chatdata_eg.png) ### 3.ChatDB diff --git a/docs/locales/zh_CN/LC_MESSAGES/getting_started/application/chatdb/chatdb.po b/docs/locales/zh_CN/LC_MESSAGES/getting_started/application/chatdb/chatdb.po index 7fb225754..940f6a422 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/getting_started/application/chatdb/chatdb.po +++ b/docs/locales/zh_CN/LC_MESSAGES/getting_started/application/chatdb/chatdb.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: DB-GPT 👏👏 0.3.5\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-08-16 18:31+0800\n" +"POT-Creation-Date: 2023-08-18 17:49+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language: zh_CN\n" @@ -20,99 +20,110 @@ msgstr "" "Generated-By: Babel 2.12.1\n" #: ../../getting_started/application/chatdb/chatdb.md:1 -#: e3984d7305214fc59fc356bd2e382543 +#: 7bb2659a189b4d8ea9e24b4d7911759e msgid "ChatData & ChatDB" msgstr "ChatData & ChatDB" #: ../../getting_started/application/chatdb/chatdb.md:3 -#: e74daab738984be990aaa21ab5af7046 +#: 90784ed8f40c49e09fb91a0918b056cf msgid "" "ChatData generates SQL from natural language and executes it. ChatDB " "involves conversing with metadata from the Database, including metadata " "about databases, tables, and fields.![db plugins " "demonstration](../../../../assets/chat_data/chat_data.jpg)" -msgstr "ChatData 是会将自然语言生成SQL,并将其执行。ChatDB是与Database里面的元数据,包括库、表、字段的元数据进行对话.![db plugins " -"demonstration](../../../../assets/chat_data/chat_data.jpg)" +msgstr "" +"ChatData 是会将自然语言生成SQL,并将其执行。ChatDB是与Database里面的元数据,包括库、表、字段的元数据进行对话.![db " +"plugins demonstration](../../../../assets/chat_data/chat_data.jpg)" #: ../../getting_started/application/chatdb/chatdb.md:3 -#: ../../getting_started/application/chatdb/chatdb.md:7 -#: ../../getting_started/application/chatdb/chatdb.md:9 -#: ../../getting_started/application/chatdb/chatdb.md:11 -#: ../../getting_started/application/chatdb/chatdb.md:13 -#: ../../getting_started/application/chatdb/chatdb.md:17 -#: 109d4292c91f4ca5a6b682189f10620a 23b1865780a24ad2b765196faff15550 -#: 3c87a8907e854e5d9a61b1ef658e5935 40eefe75a51e4444b1e4b67bdddc6da9 -#: 73eee6111545418e8f9ae533a255d589 876ee62e4e404da6b5d6c5cba0259e5c +#: ../../getting_started/application/chatdb/chatdb.md:14 +#: ../../getting_started/application/chatdb/chatdb.md:16 +#: ../../getting_started/application/chatdb/chatdb.md:18 +#: ../../getting_started/application/chatdb/chatdb.md:20 +#: ../../getting_started/application/chatdb/chatdb.md:24 +#: 2af94cf92f7d4b7382aa9878a51a53f3 4858db05f4094aec93c0582546a7d76b msgid "db plugins demonstration" msgstr "db plugins demonstration" #: ../../getting_started/application/chatdb/chatdb.md:4 -#: a760078b833e434681da72c87342083f +#: 96cec2f2107a4d99a9e94aed789e2344 msgid "1.Choose Datasource" msgstr "1.Choose Datasource" #: ../../getting_started/application/chatdb/chatdb.md:5 -#: b68ac469c7d34026b1cb8b587a446737 +#: 25bd983e3b2f413c9cb2c04cc1631313 msgid "" "If you are using DB-GPT for the first time, you need to add a data source" " and set the relevant connection information for the data source." msgstr "如果你是第一次使用DB-GPT, 首先需要添加数据源,设置数据源的相关连接信息" -#: ../../getting_started/application/chatdb/chatdb.md:6 -#: 8edecf9287ce4077a984617f0a06e30c +#: ../../getting_started/application/chatdb/chatdb.md:8 +#: 32c6bcabfdd14269b0ca04f2723c4745 +msgid "there are some example data in DB-GPT-NEW/DB-GPT/docker/examples" +msgstr "在DB-GPT-NEW/DB-GPT/docker/examples有数据示例" + +#: ../../getting_started/application/chatdb/chatdb.md:10 +#: f582ded883b34b208af7ba44dd1d7a87 +msgid "you can execute sql script to generate data." +msgstr "你可以通过执行sql脚本生成测试数据" + +#: ../../getting_started/application/chatdb/chatdb.md:13 +#: 77e5025ea41b4d2997172ef847cc94c0 msgid "1.1 Datasource management" msgstr "1.1 Datasource management" -#: ../../getting_started/application/chatdb/chatdb.md:7 -#: af7b5d2f6c9b4666a3466fed05968258 +#: ../../getting_started/application/chatdb/chatdb.md:14 +#: 7a94c5d8f1d24cb28ecb933f63ea1bf0 msgid "![db plugins demonstration](../../../../assets/chat_data/db_entry.png)" msgstr "![db plugins demonstration](../../../../assets/chat_data/db_entry.png)" -#: ../../getting_started/application/chatdb/chatdb.md:8 -#: f7d49ffe448d49169713452f54b3437c +#: ../../getting_started/application/chatdb/chatdb.md:15 +#: ba5b3576317749d9bdcd6c4e2a7eee51 msgid "1.2 Connection management" msgstr "1.2 Connection管理" -#: ../../getting_started/application/chatdb/chatdb.md:9 -#: 109a8c9da05d4ec7a80ae1665b8d48bb +#: ../../getting_started/application/chatdb/chatdb.md:16 +#: 79114a69a61642c6970358629340263b msgid "![db plugins demonstration](../../../../assets/chat_data/db_connect.png)" msgstr "![db plugins demonstration](../../../../assets/chat_data/db_connect.png)" -#: ../../getting_started/application/chatdb/chatdb.md:10 -#: ac283fff85bf41efbd2cfeeda5980f9a +#: ../../getting_started/application/chatdb/chatdb.md:17 +#: baaae5e3320742ea8def1144144ec2e0 msgid "1.3 Add Datasource" msgstr "1.3 添加Datasource" -#: ../../getting_started/application/chatdb/chatdb.md:11 -#: a25dec01f4824bfe88cc801c93bb3e3b +#: ../../getting_started/application/chatdb/chatdb.md:18 +#: 68dee774bfcd4c39ab9081c911d4af26 msgid "" "![db plugins " "demonstration](../../../../assets/chat_data/add_datasource.png)" -msgstr "![db plugins " +msgstr "" +"![db plugins " "demonstration](../../../../assets/chat_data/add_datasource.png)" -#: ../../getting_started/application/chatdb/chatdb.md:12 -#: 4751d6d3744148cab130a901594f673a +#: ../../getting_started/application/chatdb/chatdb.md:19 +#: 30df69cad4fe41da8d1aefe0b8f7b963 msgid "2.ChatData" msgstr "2.ChatData" -#: ../../getting_started/application/chatdb/chatdb.md:13 -#: bad82b572ba34ffb8669f0f8ff9b0a05 +#: ../../getting_started/application/chatdb/chatdb.md:20 +#: a2f838d667b24ad9a70bb21d5f47dd55 msgid "" "After successfully setting up the data source, you can start conversing " "with the database. You can ask it to generate SQL for you or inquire " "about relevant information on the database's metadata. ![db plugins " "demonstration](../../../../assets/chat_data/chatdata_eg.png)" -msgstr "设置数据源成功后就可以和数据库进行对话了。你可以让它帮你生成SQL,也可以和问它数据库元数据的相关信息。 ![db plugins " +msgstr "" +"设置数据源成功后就可以和数据库进行对话了。你可以让它帮你生成SQL,也可以和问它数据库元数据的相关信息。 ![db plugins " "demonstration](../../../../assets/chat_data/chatdata_eg.png)" -#: ../../getting_started/application/chatdb/chatdb.md:16 -#: 0bf9c5a2f3764b36abc82102c53d3cd4 +#: ../../getting_started/application/chatdb/chatdb.md:23 +#: eaa6f5302da242c7a41346610f7234e8 msgid "3.ChatDB" msgstr "3.ChatDB" -#: ../../getting_started/application/chatdb/chatdb.md:17 -#: f06e7583c2484a959c1681b1db0acfaa +#: ../../getting_started/application/chatdb/chatdb.md:24 +#: 217eefe88eb5425fb8cb481df133157c msgid "![db plugins demonstration](../../../../assets/chat_data/chatdb_eg.png)" msgstr "![db plugins demonstration](../../../../assets/chat_data/chatdb_eg.png)"