Update lightrag_oracle_demo.py

add embedding_func for graph database, it's deleted in commit 5661d76860
This will fix the issue
This commit is contained in:
jin
2024-12-02 15:30:35 +08:00
committed by GitHub
parent 69867da89f
commit d5303b4e48

View File

@@ -104,6 +104,8 @@ async def main():
rag.graph_storage_cls.db = oracle_db
rag.key_string_value_json_storage_cls.db = oracle_db
rag.vector_db_storage_cls.db = oracle_db
# add embedding_func for graph database, it's deleted in commit 5661d76860436f7bf5aef2e50d9ee4a59660146c
rag.chunk_entity_relation_graph.embedding_func = rag.embedding_func
# Extract and Insert into LightRAG storage
with open("./dickens/demo.txt", "r", encoding="utf-8") as f: