aivre / app /models /document.py
Vedang Barhate
chore: copied from assist repo
cfc8e23
raw
history blame
247 Bytes
from dataclasses import dataclass
from typing import Any
@dataclass
class Document:
"""Document model for storing text and metadata"""
content: str
metadata: dict[str, Any]
def __hash__(self):
return hash(self.content)