gzdaniel commited on
Commit
57b8a3f
·
1 Parent(s): 48fbfb7

Fix lingting

Browse files
Files changed (2) hide show
  1. README-zh.md +1 -1
  2. README.md +2 -2
README-zh.md CHANGED
@@ -755,7 +755,7 @@ rag = LightRAG(
755
  create INDEX CONCURRENTLY entity_idx_node_id ON dickens."Entity" (ag_catalog.agtype_access_operator(properties, '"node_id"'::agtype));
756
  CREATE INDEX CONCURRENTLY entity_node_id_gin_idx ON dickens."Entity" using gin(properties);
757
  ALTER TABLE dickens."DIRECTED" CLUSTER ON directed_sid_idx;
758
-
759
  -- 如有必要可以删除
760
  drop INDEX entity_p_idx;
761
  drop INDEX vertex_p_idx;
 
755
  create INDEX CONCURRENTLY entity_idx_node_id ON dickens."Entity" (ag_catalog.agtype_access_operator(properties, '"node_id"'::agtype));
756
  CREATE INDEX CONCURRENTLY entity_node_id_gin_idx ON dickens."Entity" using gin(properties);
757
  ALTER TABLE dickens."DIRECTED" CLUSTER ON directed_sid_idx;
758
+
759
  -- 如有必要可以删除
760
  drop INDEX entity_p_idx;
761
  drop INDEX vertex_p_idx;
README.md CHANGED
@@ -572,7 +572,7 @@ response = rag.query(
572
 
573
  ### User Prompt vs. Query
574
 
575
- When using LightRAG for content queries, avoid combining the search process with unrelated output processing, as this significantly impacts query effectiveness. The `user_prompt` parameter in Query Param is specifically designed to address this issue — it does not participate in the RAG retrieval phase, but rather guides the LLM on how to process the retrieved results after the query is completed. Here's how to use it:
576
 
577
  ```python
578
  # Create query parameters
@@ -759,7 +759,7 @@ For production level scenarios you will most likely want to leverage an enterpri
759
  create INDEX CONCURRENTLY entity_idx_node_id ON dickens."Entity" (ag_catalog.agtype_access_operator(properties, '"node_id"'::agtype));
760
  CREATE INDEX CONCURRENTLY entity_node_id_gin_idx ON dickens."Entity" using gin(properties);
761
  ALTER TABLE dickens."DIRECTED" CLUSTER ON directed_sid_idx;
762
-
763
  -- drop if necessary
764
  drop INDEX entity_p_idx;
765
  drop INDEX vertex_p_idx;
 
572
 
573
  ### User Prompt vs. Query
574
 
575
+ When using LightRAG for content queries, avoid combining the search process with unrelated output processing, as this significantly impacts query effectiveness. The `user_prompt` parameter in Query Param is specifically designed to address this issue — it does not participate in the RAG retrieval phase, but rather guides the LLM on how to process the retrieved results after the query is completed. Here's how to use it:
576
 
577
  ```python
578
  # Create query parameters
 
759
  create INDEX CONCURRENTLY entity_idx_node_id ON dickens."Entity" (ag_catalog.agtype_access_operator(properties, '"node_id"'::agtype));
760
  CREATE INDEX CONCURRENTLY entity_node_id_gin_idx ON dickens."Entity" using gin(properties);
761
  ALTER TABLE dickens."DIRECTED" CLUSTER ON directed_sid_idx;
762
+
763
  -- drop if necessary
764
  drop INDEX entity_p_idx;
765
  drop INDEX vertex_p_idx;