Skip to content

Commit 0b4f618

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

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

docarray/documents/text.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,16 @@ class MultiModalDoc(BaseDoc):
109109
example='This is an example text content of the document',
110110
)
111111
url: Optional[TextUrl] = Field(
112-
description='''The url of the text content. When text content is too long
113-
to be stored inline or in a file, the remote url can be used to load the
114-
text content''',
112+
description='''URL to a (potentially remote) text file that needs to be
113+
loaded''',
115114
example='https://www.w3.org/History/19921103-hypertext/hypertext/README.html',
116115
)
117116
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))''',
117+
description='Store an embedding: a vector representation of the text',
118+
example='''[[1, 1, 1], [1, 0, 1], [0, 0, 1]]''',
121119
)
122120
bytes_: Optional[bytes] = Field(
123-
description='''The bytes of image or video content that can be loaded
124-
into an image or video tensor object''',
125-
example='',
121+
description='Bytes representation of the text',
126122
)
127123

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

0 commit comments

Comments
 (0)