This commit is contained in:
2025-08-19 13:31:18 +08:00
parent 35c5abd81a
commit 96dbe96921
5 changed files with 83 additions and 37 deletions

View File

@@ -1,10 +1,10 @@
# Elasticsearch配置
ES_CONFIG = {
"hosts": "https://127.0.0.1:9200",
"basic_auth": ("elastic", "jv9h8uwRrRxmDi1dq6u8"),
"verify_certs": False,
"ssl_show_warn": False,
"index_name": "ds_kb"
'hosts': ['https://localhost:9200'],
'basic_auth': ('elastic', 'jv9h8uwRrRxmDi1dq6u8'),
'verify_certs': False,
'index_name': 'ds_db', # 默认索引名称
'student_info_index': 'student_info' # 添加student_info索引名称配置
}
# 嵌入向量模型