This commit is contained in:
2025-08-19 13:36:39 +08:00
parent 121772672c
commit 94f7592a38
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -176,7 +176,7 @@ def get_system_prompt():
async def lifespan(_: FastAPI): async def lifespan(_: FastAPI):
yield yield
app = FastAPI(lifespan=lifespan) app = FastAPI(_=lifespan)
@app.post("/api/chat") @app.post("/api/chat")
async def chat(request: fastapi.Request): async def chat(request: fastapi.Request):