feat: support weaviate vectordb for knowledge retrieve

This commit is contained in:
MaoMengww
2026-03-07 15:17:27 +08:00
committed by lyingbug
parent 5583bf0eb4
commit c4a5a4d99b
9 changed files with 1347 additions and 100 deletions
+21 -1
View File
@@ -24,7 +24,7 @@ OLLAMA_BASE_URL=http://host.docker.internal:11434
# 主数据库类型(postgres/mysql)
DB_DRIVER=postgres
# 向量存储类型(postgres/elasticsearch_v7/elasticsearch_v8/qdrant/milvus)
# 向量存储类型(postgres/elasticsearch_v7/elasticsearch_v8/qdrant/milvus/weaviate)
RETRIEVE_DRIVER=postgres
# 文件存储类型(local/minio/cos/tos)
@@ -246,3 +246,23 @@ DOCREADER_ADDR=docreader:50051
# Docreader 连接方式
DOCREADER_TRANSPORT=grpc
# 如果使用Weaviate作为向量存储,需要配置以下参数
# 注意:容器内访问请使用 service:port(不要用 localhost,也不要用宿主机映射端口)
# Weaviate HTTP 地址(Docker 内:weaviate:8080;宿主机访问:localhost:9035)
# WEAVIATE_HOST=weaviate:8080
# Weaviate gRPC 地址(Docker 内:weaviate:50051;宿主机访问:localhost:50052)
# WEAVIATE_GRPC_ADDRESS=weaviate:50051
# Weaviate 架构模式
# WEAVIATE_SCHEME=http
# 是否开启认证(如果你在 weaviate 里启用了 APIKey/OIDC 认证,再把这里设为 true 并配置 WEAVIATE_API_KEY)
# WEAVIATE_AUTH_ENABLED=false
# API Key(可选)
# WEAVIATE_API_KEY=your_secret_key
# Weaviate 数据库名称(可选)
#WEAVIATE_COLLECTION=your_weaviate_db_name