mirror of
				https://github.com/HKUDS/LightRAG.git
				synced 2025-11-04 03:39:35 +00:00 
			
		
		
		
	Fix lingting
This commit is contained in:
		
							parent
							
								
									11fa70f7d1
								
							
						
					
					
						commit
						4e1caf1e40
					
				@ -755,7 +755,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;
 | 
			
		||||
 | 
			
		||||
@ -572,7 +572,7 @@ response = rag.query(
 | 
			
		||||
 | 
			
		||||
### User Prompt vs. Query
 | 
			
		||||
 | 
			
		||||
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: 
 | 
			
		||||
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:
 | 
			
		||||
 | 
			
		||||
```python
 | 
			
		||||
# Create query parameters
 | 
			
		||||
@ -759,7 +759,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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user