Skip to content

Commit 81b7fdc

Browse files
committed
docs: remove bytes field example
Signed-off-by: punndcoder28 <[email protected]>
1 parent c93df9d commit 81b7fdc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docarray/documents/text.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,12 @@ class MultiModalDoc(BaseDoc):
115115
example='https://www.w3.org/History/19921103-hypertext/hypertext/README.html',
116116
)
117117
embedding: Optional[AnyEmbedding] = Field(
118-
description='''Embedding field is used to store tensor objects of type
119-
Tensorflow, PyTorch, and NumPy''',
120-
example='''np.zeros((3, 32, 32))''',
118+
description='Embedding field is used to store tensor objects',
119+
example='''[[1, 1, 1], [1, 0, 1], [0, 0, 1]]''',
121120
)
122121
bytes_: Optional[bytes] = Field(
123122
description='''The bytes of image or video content that can be loaded
124123
into an image or video tensor object''',
125-
example='',
126124
)
127125

128126
def __init__(self, text: Optional[str] = None, **kwargs):

0 commit comments

Comments
 (0)