docarray.document.strawberry_type module#

class docarray.document.strawberry_type.StrawberryDocument(*, id=None, parent_id=None, granularity=None, adjacency=None, blob=None, tensor=None, mime_type=None, text=None, weight=None, uri=None, tags=None, offset=None, location=None, embedding=None, modality=None, evaluations=None, scores=None, chunks=None, matches=None)[source]#

Bases: _BaseStrawberryDocumentInterface

evaluations: Optional[List[_NameScoreItem]] = None#
scores: Optional[List[_NameScoreItem]] = None#
chunks: Optional[List[StrawberryDocument]] = None#
matches: Optional[List[StrawberryDocument]] = None#
adjacency: Optional[int] = None#
blob: ScalarWrapper object at 0x7fd5c6ca0c90>] = None#
embedding: ScalarWrapper object at 0x7fd5c6ca0d10>] = None#
granularity: Optional[int] = None#
id: Optional[str] = None#
location: Optional[List[float]] = None#
mime_type: Optional[str] = None#
modality: Optional[str] = None#
offset: Optional[float] = None#
parent_id: Optional[str] = None#
tags: ScalarWrapper object at 0x7fd5c6ca0c10>] = None#
tensor: ScalarWrapper object at 0x7fd5c6ca0d10>] = None#
text: Optional[str] = None#
uri: Optional[str] = None#
weight: Optional[float] = None#
class docarray.document.strawberry_type.StrawberryDocumentInput(*, id=None, parent_id=None, granularity=None, adjacency=None, blob=None, tensor=None, mime_type=None, text=None, weight=None, uri=None, tags=None, offset=None, location=None, embedding=None, modality=None, evaluations=None, scores=None, chunks=None, matches=None)[source]#

Bases: _BaseStrawberryDocumentInterface

evaluations: Optional[List[_NameScoreItemInput]] = None#
scores: Optional[List[_NameScoreItemInput]] = None#
chunks: Optional[List[StrawberryDocumentInput]] = None#
matches: Optional[List[StrawberryDocumentInput]] = None#
adjacency: Optional[int] = None#
blob: ScalarWrapper object at 0x7fd5c6ca0c90>] = None#
embedding: ScalarWrapper object at 0x7fd5c6ca0d10>] = None#
granularity: Optional[int] = None#
id: Optional[str] = None#
location: Optional[List[float]] = None#
mime_type: Optional[str] = None#
modality: Optional[str] = None#
offset: Optional[float] = None#
parent_id: Optional[str] = None#
tags: ScalarWrapper object at 0x7fd5c6ca0c10>] = None#
tensor: ScalarWrapper object at 0x7fd5c6ca0d10>] = None#
text: Optional[str] = None#
uri: Optional[str] = None#
weight: Optional[float] = None#