This commit is contained in:
parent
64e4ca5c15
commit
6bf76d1213
|
|
@ -53,7 +53,7 @@ def search_docs(request: QueryRequest, user_id: str = Query(..., description="
|
|||
logger.info("Service context created successfully.")
|
||||
|
||||
# 使用 load_index_from_storage 加载索引
|
||||
index = load_index_from_storage(storage_context)
|
||||
index = load_index_from_storage(storage_context, service_context)
|
||||
logger.info("VectorStoreIndex loaded successfully.")
|
||||
|
||||
# 设置索引的 ServiceContext
|
||||
|
|
|
|||
Loading…
Reference in New Issue