'commit'
This commit is contained in:
@@ -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索引名称配置
|
||||||
}
|
}
|
||||||
|
|
||||||
# 嵌入向量模型
|
# 嵌入向量模型
|
||||||
|
@@ -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):
|
||||||
|
Reference in New Issue
Block a user