Commit Graph

403 Commits

Author SHA1 Message Date
aries_ckt
85fb12e3d0 style: format webserver.py
format file format
2023-06-22 23:39:23 +08:00
aries_ckt
9d305469ad fix: EMBEDDING_MODEL env config
solve the problem that EMBEDDING_MODEL config did not work
Close #264
2023-06-22 23:33:27 +08:00
chenketing
204f7618b1 fix: custom chat exception
fix custom chat exception
raise user can understand error
2023-06-20 19:50:00 +08:00
aries-ckt
6b0ab59201 style: code format.
code style format
2023-06-19 16:58:24 +08:00
aries-ckt
05a74d89cd fix: Weaviate document format.
1.similar search: docs format
2.conf SUMMARY_CONFIG
2023-06-19 16:44:18 +08:00
aries-ckt
b95084b89f feat: integrate Weaviate vector database in DB-GPT.
1.Weaviate default schema update
2.Weaviate database config
3.requirement
2023-06-19 09:56:54 +08:00
LBYPatrick
0bb0246fb1 chore: run black against modified code 2023-06-16 12:23:28 +08:00
LBYPatrick
5f8186a258 chore: bump requirement.txt for guanaco support 2023-06-16 11:45:42 +08:00
aries-ckt
b5008f0517 update:weaviate_store format 2023-06-15 10:20:08 +08:00
Aries-ckt
fba6efa8c1 - add Weaviate database (#222)
The contribution aims to enhance the functionality of the DBGPT
repository by integrating support for the Weaviate database. Weaviate is
a vector database that provides advanced indexing and search
capabilities for textual data. By incorporating Weaviate into the DBGPT
repository, users will have access to efficient storage, retrieval, and
similarity search features for their text-based data.

Proposed Changes:
1. Implement WeaviateStore Class:
- Create a new class, "WeaviateStore," that extends the existing vector
store functionality in the DBGPT repository.
- The WeaviateStore class will serve as a wrapper around the Weaviate
database and provide methods for data loading, searching, and
vectorization.
- The class will utilize the Weaviate Python client library for seamless
integration with the Weaviate database.

2. Schema Definition:
- Define the schema for the Weaviate database to support the required
data structure in the DBGPT repository.
- The schema will include a "Document" class with properties for
metadata and text.
- The "metadata" property will store the metadata associated with each
document.
- The "text" property will store the textual content of each document.

3. Data Loading:
- Implement a method within the WeaviateStore class to load documents
into the Weaviate database.
- Iterate through the documents in the DBGPT repository and extract the
necessary metadata and text.
- Use the Weaviate Python client to add each document to the Weaviate
database, mapping the metadata and text to the corresponding properties
defined in the schema.

4. Similar Search:
- Implement a method within the WeaviateStore class to perform a similar
search in the Weaviate database based on a given text query.
- Utilize Weaviate's vector-based search capabilities to find documents
similar to the provided text query.
- Return the relevant documents along with additional information such
as distance or relevance scores.

5. Vector Name Existence:
- Implement a method within the WeaviateStore class to check if a vector
name exists for a given class in the Weaviate database.
- The method will query the Weaviate database's schema and determine if
the vector name exists for the specified class.
2023-06-15 09:44:56 +08:00
Younis Bashir
c9768a0948 - add Weaviate database 2023-06-15 02:51:36 +03:00
magic.chen
d910ee3f36 Update llmserver.py 2023-06-14 22:52:26 +08:00
csunny
8d26889280 Merge branch 'main' into llm_fxp 2023-06-14 22:32:17 +08:00
aries-ckt
1bef83a13e fix:format 2023-06-14 22:22:27 +08:00
csunny
71db2a8ef6 Merge branch 'dbgpt_doc' of https://github.com/csunny/DB-GPT into llm_fxp 2023-06-14 22:04:35 +08:00
csunny
30c533515a fix: async output 2023-06-14 22:02:23 +08:00
yhjun1026
42a39120c3 async auto load plugin 2023-06-14 21:56:38 +08:00
yhjun1026
48eeb3dcb8 async auto load plugin 2023-06-14 21:54:43 +08:00
yhjun1026
3a6501ba96 Merge branch 'dbgpt_doc' into ty_test
# Conflicts:
#	pilot/common/plugins.py
2023-06-14 21:53:08 +08:00
yhjun1026
cc4d70d4d5 async auto load plugin 2023-06-14 21:51:05 +08:00
yhjun1026
eec43dbfd5 async auto load plugin 2023-06-14 21:46:30 +08:00
yhjun1026
db3b0cae50 close auto load plugin 2023-06-14 21:40:08 +08:00
yhjun1026
f36d8223a3 close auto load plugin 2023-06-14 21:28:06 +08:00
xuyuan23
677bc30e18 Merge branch 'dbgpt_doc' into feature-xuyuan-openai-proxy 2023-06-14 17:55:32 +08:00
xuyuan23
621a859be0 add use cases: tool_use_with_plugin, and how to write a plugin. 2023-06-14 17:24:31 +08:00
aries-ckt
8980de9be4 doc:db-gpt doc 2023-06-14 15:31:11 +08:00
aries-ckt
2fdc7fb139 fix:default chunk size 2023-06-14 12:37:45 +08:00
magic.chen
001c6e7845 add llm support for gpt4all (#209)
add llm support for gpt4all #178 #138
2023-06-14 11:35:42 +08:00
magic.chen
33c6a4bf54 Multi gpu (#207)
support multi gpus
2023-06-14 10:22:09 +08:00
csunny
ff6d3a7035 pylint: multi model for gp4all (#138) 2023-06-14 10:17:53 +08:00
csunny
3927c26dea Merge branch 'dbgpt_doc' into llm_fxp 2023-06-14 10:14:13 +08:00
zhanghy-sketchzh
00d24101f3 support multi gpus 2023-06-14 00:22:02 +08:00
magic.chen
7a75531a2d fix:default chunk size (#205)
fix:default chunk size
2023-06-13 23:54:19 +08:00
aries-ckt
61e71ed38b fix:default chunk size 2023-06-13 23:07:26 +08:00
magic.chen
e03a332848 fix:webserver DB chat (#204)
fix: webserver for DB chat
2023-06-13 22:56:42 +08:00
aries-ckt
7f4d66151d fix:doc for DB chat 2023-06-13 22:55:02 +08:00
yhjun1026
1a5052e121 Merge branch 'dbgpt_doc' into ty_test 2023-06-13 22:39:12 +08:00
yhjun1026
9b8adc5d6c fix plugin mode bug;Optimize the parsing logic for model response 2023-06-13 22:38:10 +08:00
csunny
44df4f2509 feature: add plugin of dashboard (#201) 2023-06-13 21:44:27 +08:00
csunny
44e8fc0928 fix: conflicts 2023-06-13 21:41:18 +08:00
csunny
05acabddf0 Merge branch 'ty_test' of https://github.com/csunny/DB-GPT into dbgpt_doc 2023-06-13 21:39:33 +08:00
xuyuan23
f755c533cd solve merge conflict. 2023-06-13 21:22:05 +08:00
csunny
d839180d67 Todo: add retry for generate 2023-06-13 21:17:03 +08:00
yhjun1026
8876bd2a7a fix plugin mode bug;Optimize the parsing logic for model response 2023-06-13 21:03:21 +08:00
yhjun1026
3853c43d8b fix plugin mode bug;Optimize the parsing logic for model response 2023-06-13 20:34:33 +08:00
yhjun1026
19e3679d9f fix plugin mode bug;Optimize the parsing logic for model response 2023-06-13 20:33:34 +08:00
aries-ckt
38ca7c1cb2 fix:knowledge init 2023-06-13 19:50:10 +08:00
csunny
1f78c21c08 debug: more detail error info 2023-06-13 19:46:03 +08:00
csunny
77bc959819 Merge branch 'dbgpt_doc' of https://github.com/csunny/DB-GPT into llm_fxp 2023-06-13 19:26:07 +08:00
aries-ckt
669e5cc3dc update:db chat 2023-06-13 19:20:19 +08:00