From 0a613208c1f43e2abedc0d8660bc93074189f476 Mon Sep 17 00:00:00 2001 From: yangdx Date: Fri, 16 May 2025 09:28:08 +0800 Subject: [PATCH] Update README --- README-zh.md | 4 +++- README.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README-zh.md b/README-zh.md index 5851c480..21ba41bc 100644 --- a/README-zh.md +++ b/README-zh.md @@ -111,6 +111,8 @@ python examples/lightrag_openai_demo.py ## 使用LightRAG Core进行编程 +> 如果您希望将LightRAG集成到您的项目中,建议您使用LightRAG Server提供的REST API。LightRAG Core通常用于嵌入式应用,或供希望进行研究与评估的学者使用。 + ### 一个简单程序 以下Python代码片段演示了如何初始化LightRAG、插入文本并进行查询: @@ -769,7 +771,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 af6f50a7..a63a97a0 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,8 @@ For a streaming response implementation example, please see `examples/lightrag_o ## Programing with LightRAG Core +> If you would like to integrate LightRAG into your project, we recommend utilizing the REST API provided by the LightRAG Server. LightRAG Core is typically intended for embedded applications or for researchers who wish to conduct studies and evaluations. + ### A Simple Program Use the below Python snippet to initialize LightRAG, insert text to it, and perform queries: @@ -773,7 +775,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;