diff --git a/README-zh.md b/README-zh.md index afadb941..cfe3fbc0 100644 --- a/README-zh.md +++ b/README-zh.md @@ -125,7 +125,7 @@ def main(): # Initialize RAG instance rag = await initialize_rag() rag.insert("Your text") - + # Perform hybrid search mode="hybrid" print( @@ -821,7 +821,7 @@ rag = LightRAG( create INDEX CONCURRENTLY entity_idx_node_id ON dickens."Entity" (ag_catalog.agtype_access_operator(properties, '"node_id"'::agtype)); CREATE INDEX CONCURRENTLY entity_node_id_gin_idx ON dickens."Entity" using gin(properties); ALTER TABLE dickens."DIRECTED" CLUSTER ON directed_sid_idx; - + -- 如有必要可以删除 drop INDEX entity_p_idx; drop INDEX vertex_p_idx; diff --git a/README.md b/README.md index 39bdc269..2e6f478f 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,7 @@ def main(): # Initialize RAG instance rag = await initialize_rag() rag.insert("Your text") - + # Perform hybrid search mode="hybrid" print( @@ -842,7 +842,7 @@ For production level scenarios you will most likely want to leverage an enterpri create INDEX CONCURRENTLY entity_idx_node_id ON dickens."Entity" (ag_catalog.agtype_access_operator(properties, '"node_id"'::agtype)); CREATE INDEX CONCURRENTLY entity_node_id_gin_idx ON dickens."Entity" using gin(properties); ALTER TABLE dickens."DIRECTED" CLUSTER ON directed_sid_idx; - + -- drop if necessary drop INDEX entity_p_idx; drop INDEX vertex_p_idx; diff --git a/examples/lightrag_openai_demo.py b/examples/lightrag_openai_demo.py index 42a37d27..24e0257c 100644 --- a/examples/lightrag_openai_demo.py +++ b/examples/lightrag_openai_demo.py @@ -124,7 +124,8 @@ async def main(): print("=====================") print( await rag.aquery( - "What are the top themes in this story?", param=QueryParam(mode="global") + "What are the top themes in this story?", + param=QueryParam(mode="global"), ) ) @@ -134,7 +135,8 @@ async def main(): print("=====================") print( await rag.aquery( - "What are the top themes in this story?", param=QueryParam(mode="hybrid") + "What are the top themes in this story?", + param=QueryParam(mode="hybrid"), ) ) except Exception as e: