docarray.document.mixins.content module#

class docarray.document.mixins.content.ContentPropertyMixin[source]#

Bases: object

Provide helper functions for Document to allow universal content property access.

property content_hash: int#

Get the document hash according to its content.

Return type

int

Returns

the unique hash code to represent this Document

convert_content_to_datauri()[source]#

Convert content in uri inplace with best effort

Return type

T

Returns

itself after processed