mirror of
https://github.com/dataelement/bisheng.git
synced 2026-08-29 01:22:31 +08:00
config
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
# 数据库配置
|
||||
database_url:
|
||||
"mysql+pymysql://root:1234@mysql:3306/bisheng?charset=utf8mb4"
|
||||
redis_url:
|
||||
"redis:6379"
|
||||
|
||||
# 缓存配置 redis://[[username]:[password]]@localhost:6379/0
|
||||
redis_url: "redis://redis:6379/0"
|
||||
|
||||
# admin 用户配置
|
||||
admin:
|
||||
|
||||
@@ -531,7 +531,7 @@ dir ./
|
||||
# starting the replication synchronization process, otherwise the master will
|
||||
# refuse the replica request.
|
||||
#
|
||||
masterauth E1SkG0PaDMEPTAxY
|
||||
# masterauth <master-password>
|
||||
#
|
||||
# However this is not enough if you are using Redis ACLs (for Redis version
|
||||
# 6 or greater), and the default user is not capable of running the PSYNC
|
||||
@@ -539,7 +539,7 @@ dir ./
|
||||
# better to configure a special user to use with replication, and specify the
|
||||
# masteruser configuration as such:
|
||||
#
|
||||
masteruser bisheng
|
||||
# masteruser <username>
|
||||
#
|
||||
# When masteruser is specified, the replica will authenticate against its
|
||||
# master using the new AUTH form: AUTH <username> <password>.
|
||||
|
||||
@@ -13,14 +13,14 @@ knowledges: # 知识库相关配置
|
||||
Milvus: # 如果需要切换其他vectordb,确保其他服务已经启动,然后配置对应参数
|
||||
connection_args: {'host': '110.16.193.170', 'port': '50032', 'user': '', 'password': '', 'secure': False}
|
||||
# 可选配置,有些类型的场景使用ES可以提高召回效果
|
||||
ElasticKeywordsSearch:
|
||||
elasticsearch_url: ''
|
||||
ssl_verify: "{'ca_certs': False, 'basic_auth': ('elastic', 'password'), 'verify_certs': False}"
|
||||
minio: # 如果要支持溯源功能,由于溯源会展示源文件,必须配置 oss 存储
|
||||
MINIO_ENDPOINT: ""
|
||||
MINIO_SHAREPOIN: ""
|
||||
MINIO_ACCESS_KEY: ""
|
||||
MINIO_SECRET_KEY: ""
|
||||
# ElasticKeywordsSearch:
|
||||
# elasticsearch_url: ''
|
||||
# ssl_verify: "{'ca_certs': False, 'basic_auth': ('elastic', 'password'), 'verify_certs': False}"
|
||||
# minio: # 如果要支持溯源功能,由于溯源会展示源文件,必须配置 oss 存储
|
||||
# MINIO_ENDPOINT: ""
|
||||
# MINIO_SHAREPOIN: ""
|
||||
# MINIO_ACCESS_KEY: ""
|
||||
# MINIO_SECRET_KEY: ""
|
||||
|
||||
# 全局配置大模型
|
||||
default_llm: # 可选配置。BISHENG系统中有些功能需要使用大模型的能力,当前问答溯源功能中会用到,未来还会有其他功能会使用到。在问答溯源功能中,使用大语言模型自动从答案中提取关键词,来帮助用户快速定位到答案的可能来源段落,如果这里没有配置,则会使用jieba分词来输出答案中的关键词。
|
||||
|
||||
Reference in New Issue
Block a user