Skip to content

Commit dcd5123

Browse files
authored
[PLT-0] add sphinx documentation for Embedding type (#1568)
1 parent 417158d commit dcd5123

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

docs/labelbox/embedding.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Embedding
2+
===============================================================================================
3+
4+
.. automodule:: labelbox.schema.embedding
5+
:members:
6+
:exclude-members: EmbeddingVector
7+
:show-inheritance:

docs/labelbox/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Labelbox Python SDK Documentation
1616
datarow
1717
datarow-metadata
1818
dataset
19+
embedding
1920
enums
2021
exceptions
2122
export-task
@@ -41,4 +42,4 @@ Labelbox Python SDK Documentation
4142
task
4243
task-queue
4344
user
44-
webhook
45+
webhook

libs/labelbox/src/labelbox/schema/embedding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def import_vectors_from_file(self,
6464
is valid JSON, but the entire file itself is NOT. The format of the
6565
file looks like:
6666
67-
{"id": DATAROW ID1, "vector": [ array of floats ]}
68-
{"id": DATAROW ID2, "vector": [ array of floats ]}
67+
{"id": DATAROW ID1, "vector": [ array of floats ]}\n
68+
{"id": DATAROW ID2, "vector": [ array of floats ]}\n
6969
{"id": DATAROW ID3, "vector": [ array of floats ]}
7070
7171
The vectors are added to the system in an async manner and it may take

0 commit comments

Comments
 (0)