From 010a551ae35820254caa54574cd0c27286c212ab Mon Sep 17 00:00:00 2001 From: pengjunfeng11 <34857167+pengjunfeng11@users.noreply.github.com> Date: Thu, 13 Mar 2025 17:44:29 +0800 Subject: [PATCH 1/2] Update LightRagWithPostGRESQL.md Replace unreasonable parameter names --- lightrag/api/docs/LightRagWithPostGRESQL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/api/docs/LightRagWithPostGRESQL.md b/lightrag/api/docs/LightRagWithPostGRESQL.md index f9d6a06b..5804a369 100644 --- a/lightrag/api/docs/LightRagWithPostGRESQL.md +++ b/lightrag/api/docs/LightRagWithPostGRESQL.md @@ -141,7 +141,7 @@ Start the LightRAG server using specified options: lightrag-server --port 9621 --key sk-somepassword --kv-storage PGKVStorage --graph-storage PGGraphStorage --vector-storage PGVectorStorage --doc-status-storage PGDocStatusStorage ``` -Replace `the-port-number` with your desired port number (default is 9621) and `your-secret-key` with a secure key. +Replace the `port` number with your desired port number (default is 9621) and `your-secret-key` with a secure key. ## Conclusion From f53f07bcf43e7586148fa826e52cab5ce85cb086 Mon Sep 17 00:00:00 2001 From: pengjunfeng11 <34857167+pengjunfeng11@users.noreply.github.com> Date: Fri, 14 Mar 2025 10:59:24 +0800 Subject: [PATCH 2/2] Update code comments in ainsert method Update code comments in ainsert method. The original comment was cut off in the middle, not a complete sentence, and cannot be read --- lightrag/lightrag.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index a466e572..bdf8bd75 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -553,6 +553,7 @@ class LightRAG: Args: input: Single document string or list of document strings split_by_character: if split_by_character is not None, split the string by character, if chunk longer than + chunk_token_size, it will be split again by token size. split_by_character_only: if split_by_character_only is True, split the string by character only, when split_by_character is None, this parameter is ignored. ids: single string of the document ID or list of unique document IDs, if not provided, MD5 hash IDs will be generated @@ -574,6 +575,7 @@ class LightRAG: Args: input: Single document string or list of document strings split_by_character: if split_by_character is not None, split the string by character, if chunk longer than + chunk_token_size, it will be split again by token size. split_by_character_only: if split_by_character_only is True, split the string by character only, when split_by_character is None, this parameter is ignored. ids: list of unique document IDs, if not provided, MD5 hash IDs will be generated