Skip to content

Commit f7362a6

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

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

docarray/documents/text.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,15 @@ 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 can be loaded',
115113
example='https://www.w3.org/History/19921103-hypertext/hypertext/README.html',
116114
)
117115
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))''',
116+
description='Store an embedding: a vector representation of the text',
117+
example='''[[1, 1, 1], [1, 0, 1], [0, 0, 1]]''',
121118
)
122119
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='',
120+
description='Bytes representation of the text',
126121
)
127122

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

0 commit comments

Comments
 (0)