Document# class Document(content, life=None)# Bases: object A Document Parameters: content (str) – the document content life (int | Tuple[int, int], optional) – the optional lifespan for the document (single value corresponds to an event, a tuple corresponds to a window). Attributes: content the document content embedding the embedding entity the entity corresponding to the document life the life span content# the document content Return type: str embedding# the embedding Returns: the embedding for the document if it was computed Return type: Optional[Embedding] entity# the entity corresponding to the document Return type: Optional[Any] life# the life span Return type: Optional[Union[int | Tuple[int, int]]]