From 5448de3e3e72ac035c88cc99542b6cb493bde0c4 Mon Sep 17 00:00:00 2001 From: seehi <6580@pm.me> Date: Sat, 16 Mar 2024 09:30:39 +0800 Subject: [PATCH] modify comment of ObjectNodeMetadata --- metagpt/rag/schema.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/metagpt/rag/schema.py b/metagpt/rag/schema.py index 2894dc05a..cae1c2979 100644 --- a/metagpt/rag/schema.py +++ b/metagpt/rag/schema.py @@ -101,10 +101,8 @@ class ObjectNodeMetadata(BaseModel): """Metadata of ObjectNode.""" is_obj: bool = Field(default=True) - obj: Any = Field(default=None, description="When retrieve, will reconstruct obj from obj_json") - obj_json: str = Field( - ..., description="Inplement rag.interface.RAGObject.model_dump_json(), e.g. obj.model_dump_json()" - ) + obj: Any = Field(default=None, description="When rag retrieve, will reconstruct obj from obj_json") + obj_json: str = Field(..., description="The json of object, e.g. obj.model_dump_json()") obj_cls_name: str = Field(..., description="The class name of object, e.g. obj.__class__.__name__") obj_mod_name: str = Field(..., description="The module name of class, e.g. obj.__class__.__module__")