-
Notifications
You must be signed in to change notification settings - Fork 233
docs: adding field descriptions to predefined mesh 3D document #1789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: adding field descriptions to predefined mesh 3D document #1789
Conversation
251f278
to
d2c90f7
Compare
@JoanFM This PR addresses the changes to add field descriptions and examples for |
docarray/documents/mesh/mesh_3d.py
Outdated
) | ||
embedding: Optional[AnyEmbedding] = Field( | ||
description='Store an embedding: a vector representation of the 3D mesh.', | ||
default=[[1, 0, 1], [0, 1, 1], [1, 1, 0]], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the embedding is tipically a 1-D vector, so better show that in example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood but the docs for this document says the below which is then added to the embedding in an example
Vertices are points in a 3D space, represented as a tensor of shape (n_points, 3)
#example
model = MyEmbeddingModel()
mesh.embedding = model(mesh.vertices)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
buut vertices are not the embedding. The embedding is a vector semantically representing an object, in this case a 3D mesh represented by its vertices.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1789 +/- ##
==========================================
- Coverage 81.60% 80.08% -1.52%
==========================================
Files 136 136
Lines 9044 9045 +1
==========================================
- Hits 7380 7244 -136
- Misses 1664 1801 +137
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Signed-off-by: punndcoder28 <[email protected]>
d2c90f7
to
fa67f86
Compare
Mesh3D
document Add Field Description and example to Predefined Documents #1736