Rollback the update

This commit is contained in:
okxuewei 2025-07-17 12:09:16 +08:00 committed by GitHub
parent a896e78969
commit e6a7dc94f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -457,13 +457,13 @@ class LightRAG:
namespace=NameSpace.VECTOR_STORE_ENTITIES, namespace=NameSpace.VECTOR_STORE_ENTITIES,
workspace=self.workspace, workspace=self.workspace,
embedding_func=self.embedding_func, embedding_func=self.embedding_func,
meta_fields={"entity_name", "source_id", "content", "file_path", "entity_type"}, meta_fields={"entity_name", "source_id", "content", "file_path"},
) )
self.relationships_vdb: BaseVectorStorage = self.vector_db_storage_cls( # type: ignore self.relationships_vdb: BaseVectorStorage = self.vector_db_storage_cls( # type: ignore
namespace=NameSpace.VECTOR_STORE_RELATIONSHIPS, namespace=NameSpace.VECTOR_STORE_RELATIONSHIPS,
workspace=self.workspace, workspace=self.workspace,
embedding_func=self.embedding_func, embedding_func=self.embedding_func,
meta_fields={"src_id", "tgt_id", "source_id", "content", "file_path", "weight"}, meta_fields={"src_id", "tgt_id", "source_id", "content", "file_path"},
) )
self.chunks_vdb: BaseVectorStorage = self.vector_db_storage_cls( # type: ignore self.chunks_vdb: BaseVectorStorage = self.vector_db_storage_cls( # type: ignore
namespace=NameSpace.VECTOR_STORE_CHUNKS, namespace=NameSpace.VECTOR_STORE_CHUNKS,