mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-05 08:06:15 +00:00
[dev] add scores to memory node
This commit is contained in:
parent
0d51ff56d3
commit
9fb96ae15e
2 changed files with 6 additions and 15 deletions
|
|
@ -10,6 +10,12 @@ class MemoryNode(BaseModel):
|
|||
|
||||
memoryId: str = Field("", description="unique memory id")
|
||||
|
||||
score_similar: float = Field(0, description="es similar score")
|
||||
|
||||
score_rank: float = Field(0, description="rank model score")
|
||||
|
||||
score_rerank: float = Field(0, description="rerank score")
|
||||
|
||||
memoryType: str = Field("", description="conversation/observation/insight...")
|
||||
|
||||
metaData: Dict[str, str] = Field({}, description="other data infos")
|
||||
|
|
|
|||
|
|
@ -1,15 +0,0 @@
|
|||
from pydantic import Field, BaseModel
|
||||
|
||||
from memory_scope.definition.memory_node import MemoryNode
|
||||
|
||||
|
||||
class MemoryWrapNode(BaseModel):
|
||||
id: str = Field("", description="uuid64")
|
||||
|
||||
score_similar: float = Field(0, description="相似度打分")
|
||||
|
||||
score_rank: float = Field(0, description="排序打分")
|
||||
|
||||
score_rerank: float = Field(0, description="重排打分")
|
||||
|
||||
memory_node: MemoryNode = Field(None, description="memory node 核心,返回给上游的结构")
|
||||
Loading…
Add table
Reference in a new issue