docarray.document.data module#
- class docarray.document.data.DocumentData(_reference_doc, id=<factory>, parent_id=None, granularity=None, adjacency=None, blob=None, tensor=None, mime_type=None, text=None, content=None, weight=None, uri=None, tags=None, _metadata=None, offset=None, location=None, embedding=None, modality=None, evaluations=None, scores=None, chunks=None, matches=None)[source]#
Bases:
object
- id: str#
- 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, Any]] = None#
- offset: Optional[float] = None#
- location: Optional[List[float]] = None#
- embedding: Optional[ArrayType] = None#
- modality: Optional[str] = None#
- evaluations: Optional[Dict[str, Union[NamedScore, Dict]]] = None#
- scores: Optional[Dict[str, Union[NamedScore, Dict]]] = None#
- chunks: Optional[DocumentArray] = None#
- matches: Optional[DocumentArray] = None#