Skip to content

Document #

Bases: object

A document corresponding to a graph entity. Used to generate embeddings.

content property #

The document content.

Returns:

Type Description
str

Content of the document.

embedding property #

The embedding of the document.

Returns:

Type Description
Optional[Embedding]

The embedding of the document if it was computed.

entity property #

The graph entity corresponding to the document.

Returns:

Type Description
Optional[Any]

__repr__() #

Return repr(self).