Idocument

Classes

class arshai.core.interfaces.idocument.Document(**data)[source]

Bases: IDTO

Base document class for storing text content and metadata.

page_content: str
metadata: Dict[str, Any]
__repr__()[source]

Return string representation of the document.

Return type:

str

model_config: ClassVar[ConfigDict] = {'allow_mutation': False, 'arbitrary_types_allowed': True, 'smart_union': True, 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].