Spaces:
Running
Running
| from dataclasses import dataclass | |
| from typing import Any | |
| class Document: | |
| """Document model for storing text and metadata""" | |
| content: str | |
| metadata: dict[str, Any] | |
| def __hash__(self): | |
| return hash(self.content) | |