docarray.document package#

Subpackages#

Submodules#

Module contents#

class docarray.document.Document[source]#
class docarray.document.Document(_obj: Optional[Document] = None, copy: bool = False)
class docarray.document.Document(_obj: Optional[Any] = None)
class docarray.document.Document(_obj: Optional[Dict], copy: bool = False, field_resolver: Optional[Dict[str, str]] = None, unknown_fields_handler: str = 'catch')
class docarray.document.Document(blob: Optional[bytes] = None, **kwargs)
class docarray.document.Document(tensor: Optional[ArrayType] = None, **kwargs)
class docarray.document.Document(text: Optional[str] = None, **kwargs)
class docarray.document.Document(uri: Optional[str] = None, **kwargs)
class docarray.document.Document(parent_id: Optional[str] = None, granularity: Optional[int] = None, adjacency: Optional[int] = None, blob: Optional[bytes] = None, tensor: Optional[ArrayType] = None, mime_type: Optional[str] = None, text: Optional[str] = None, content: Optional[DocumentContentType] = None, weight: Optional[float] = None, uri: Optional[str] = None, tags: Optional[Dict[str, StructValueType]] = None, offset: Optional[float] = None, location: Optional[List[float]] = None, embedding: Optional[ArrayType] = None, modality: Optional[str] = None, evaluations: Optional[Dict[str, Dict[str, StructValueType]]] = None, scores: Optional[Dict[str, Dict[str, StructValueType]]] = None, chunks: Optional[Sequence[Document]] = None, matches: Optional[Sequence[Document]] = None)

Bases: docarray.document.mixins.AllMixins, docarray.base.BaseDCType