Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix typo: documnet_keyword -> document_keyword in Chunk class (#13531)

cambrianlee227c852e6774
diff --git a/sdk/python/ragflow_sdk/modules/chunk.py b/sdk/python/ragflow_sdk/modules/chunk.py
index 0f5bf596b6..609cb2745f 100644
--- a/sdk/python/ragflow_sdk/modules/chunk.py
+++ b/sdk/python/ragflow_sdk/modules/chunk.py
@@ -33,7 +33,7 @@ class Chunk(Base):
self.create_timestamp = 0.0
self.dataset_id = None
self.document_name = ""
- self.documnet_keyword = ""
+ self.document_keyword = ""
self.document_id = ""
self.available = True
# Additional fields for retrieval results
@@ -49,7 +49,7 @@ class Chunk(Base):
#for backward compatibility
if not self.document_name:
- self.document_name = self.documnet_keyword
+ self.document_name = self.document_keyword
def update(self, update_message: dict):