mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-10 22:41:06 +00:00
adjust MemoryNode
This commit is contained in:
parent
e84733f810
commit
d3b78f731a
1 changed files with 4 additions and 3 deletions
|
|
@ -4,12 +4,12 @@ from pydantic import Field, BaseModel
|
|||
|
||||
|
||||
class MemoryNode(BaseModel):
|
||||
id: str = Field("", description="uuid64")
|
||||
user_id: str = Field("", description="unique memory id for user")
|
||||
|
||||
memory_id: str = Field("", description="unique id for memory item")
|
||||
|
||||
content: str = Field("", description="memory content")
|
||||
|
||||
memory_id: str = Field("", description="unique memory id")
|
||||
|
||||
score_similar: float = Field(0, description="es similar score")
|
||||
|
||||
score_rank: float = Field(0, description="rank model score")
|
||||
|
|
@ -23,3 +23,4 @@ class MemoryNode(BaseModel):
|
|||
status: str = Field("active", description="active or expired")
|
||||
|
||||
vector: List[float] = Field([], description="content embedding result, return empty")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue