This commit is contained in:
hailin 2025-05-11 12:25:14 +08:00
parent 0130a76c6b
commit bd7f88f131
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ def search_docs(request: QueryRequest, user_id: str = Query(..., description="
logger.info("Storage context created successfully.")
# 创建 ServiceContext 实例,确保使用本地嵌入模型,且明确禁用 LLM
service_context = ServiceContext.from_defaults(embed_model=embedder, llm=None)
service_context = ServiceContext.from_defaults(embed_model=embedder, llm=None, llm_predictor=None)
logger.info("Service context created successfully.")
# 使用 load_index_from_storage 加载索引