This commit is contained in:
hailin 2025-05-11 13:24:28 +08:00
parent 64e4ca5c15
commit 6bf76d1213
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ def search_docs(request: QueryRequest, user_id: str = Query(..., description="
logger.info("Service context created successfully.") logger.info("Service context created successfully.")
# 使用 load_index_from_storage 加载索引 # 使用 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.") logger.info("VectorStoreIndex loaded successfully.")
# 设置索引的 ServiceContext # 设置索引的 ServiceContext