mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-22 00:32:49 +00:00
14 lines
345 B
Python
14 lines
345 B
Python
from pydantic import Field
|
|
|
|
from .emb_node import EmbNode
|
|
|
|
|
|
class FileChunk(EmbNode):
|
|
path: str = Field(default="")
|
|
start_line: int = Field(default=0)
|
|
end_line: int = Field(default=0)
|
|
scores: dict[str, float] = Field(default_factory=dict)
|
|
|
|
@property
|
|
def score(self) -> float:
|
|
return self.scores.get("score", 0.0)
|