Add embedding cache config and disable LLM cache for entity extraction for API Server

This commit is contained in:
yangdx
2025-02-02 04:27:21 +08:00
parent 6f5503ebd6
commit ecf48a5be5

View File

@@ -919,6 +919,12 @@ def create_app(args):
vector_db_storage_cls_kwargs={
"cosine_better_than_threshold": args.cosine_threshold
},
enable_llm_cache_for_entity_extract=False,
embedding_cache_config={
"enabled": True,
"similarity_threshold": 0.95,
"use_llm_check": False,
},
)
else:
rag = LightRAG(
@@ -942,6 +948,12 @@ def create_app(args):
vector_db_storage_cls_kwargs={
"cosine_better_than_threshold": args.cosine_threshold
},
enable_llm_cache_for_entity_extract=False,
embedding_cache_config={
"enabled": True,
"similarity_threshold": 0.95,
"use_llm_check": False,
},
)
async def index_file(file_path: Union[str, Path]) -> None: