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)