mirror of
https://github.com/mindverse/Second-Me.git
synced 2026-08-17 12:43:19 +00:00
14 lines
325 B
Python
14 lines
325 B
Python
from dataclasses import dataclass
|
|
from typing import List, Optional
|
|
|
|
|
|
@dataclass
|
|
class ChunkDTO:
|
|
id: int
|
|
document_id: int
|
|
content: str
|
|
embedding: Optional[List[float]] = None
|
|
has_embedding: bool = False
|
|
tags: Optional[List[str]] = None
|
|
topic: Optional[str] = None
|
|
length: Optional[int] = None
|