Model: deebak14/embedding_gemma_ft_v1
Author: deebak14
Pipeline: sentence-similarity
Library: sentence-transformers
Tags: sentence-transformers, safetensors, gemma3_text, sentence-similarity, feature-extraction, dense, generated_from_trainer, dataset_size:15565, loss:MultipleNegativesRankingLoss, dataset:deebak14/embedding_tuple_data_v1, dataset:deebak14/embedding_triplet_data_v1, arxiv:1908.10084, arxiv:1705.00652, base_model:google/embeddinggemma-300m, base_model:finetune:google/embeddinggemma-300m, model-index, endpoints_compatible, region:us
Base models (finetune): id: google/embeddinggemma-300m
Card metadata: tags: sentence-transformers, sentence-similarity, feature-extraction, dense, generated_from_trainer, dataset_size:15565, loss:MultipleNegativesRankingLoss
base_model: google/embeddinggemma-300m
widget: source_sentence: I need to lock an object in my model so I can work on other parts without accidentally selecting it. How can I do that?
sentences: You cannot use the following methods IsObjectLocked, LockObjects, UnlockObject, SelectObject, SelectObjects, UnlockObjects, IsObjectSelectable, ShowObject, IsObjectNormal, object, You can use the following methods to complete the task.
method: LockObject
description: Locks a single object. Locked objects are visible, and they can be
    snapped to. But, they cannot be selected.
syntax: LockObject(object_id)
parameters: object_id (guid): The identifier of an object
returns: bool: True or False indicating success or failure

Following is the code that uses this method to complete the task as per user query.

```python
import rhinoscriptsyntax as rs

# Lock an object in the model to prevent accidental selection
id = rs.GetObject("Select object to lock")
if id:
    rs.LockObject(id)
    print("Object locked successfully.")
else:
    print("No object selected.")
```, source_sentence: I want to create a cloud of points in my Rhino model. Can you show me how to do that?
sentences: You can use the following methods to complete the task.
method: AddPointCloud
description: Adds point cloud object to the document
syntax: AddPointCloud(points, colors=None)
parameters: 
points ([point, ....]): list of values where every multiple of three represents a point
colors ([color, ...]): list of colors to apply to each point

returns: 
guid: identifier of point cloud on success


Following is the code that uses this method to complete the task as per user query.

```python
import rhinoscriptsyntax as rs

# Create a cloud of points in Rhino
points = [(0, 0, 0), (1, 1, 1), (2, 2, 2), (3, 3, 3)]  # Define points
rs.AddPointCloud(points)  # Add the point cloud to the model
```, geometry, You cannot use the following methods PointCloudPoints, AddPoints, CreatePoint, PointCloudCount, AddPoint, AddLine, PointCloudHidePoints, CreateVector, PointCoordinates, source_sentence: I need to find out which vertices make up each face of my mesh. Can you help me with that?
sentences: You can use the following methods to complete the task.
method: MeshFaces
description: Returns face vertices of a mesh
syntax: MeshFaces(object_id, face_type=True)
parameters: object_id (guid): identifier of a mesh object
face_type (bool, optional): The face type to be returned. True = both triangles and quads. False = only triangles
returns: list([point, point, point, point], ...): 3D points that define the face vertices of the mesh. If face_type is True, then faces are returned as both quads and triangles (4 3D points). For triangles, the third and fourth vertex will be identical. If face_type is False, then faces are returned as only triangles(3 3D points). Quads will be converted to triangles.

Following is the code that uses this method to complete the task as per user query.

```python
import rhinoscriptsyntax as rs
# Get the mesh object from the user
obj = rs.GetObject("Select mesh", rs.filter.mesh)
# Retrieve the vertex indices for each face of the mesh
faces = rs.MeshFaces(obj, True)
if faces:
    rs.EnableRedraw(False)
    i = 0
    while i < len(faces):
        # Each face can be a triangle or a quad
        face = faces[i:i+4] if len(faces) > i + 3 else faces[i:i+3]
        print("Face vertices:", face)
        i += 3 if len(face) == 3 else 4
    rs.EnableRedraw(True)
```, You cannot use the following methods MeshVertexFaces, MeshFaceVertices, MeshVertices, MeshVertexCount, MeshFaceCenters, MeshTriangleCount, MeshQuadCount, MeshFaceCount, MeshNakedEdgePoints, mesh, source_sentence: Can you show me how to check if two transformation matrices are the same in Rhino?
sentences: You can use the following methods to complete the task.
method: XformChangeBasis2
description: Returns a change of basis transformation matrix of None on error
syntax: XformChangeBasis2(x0,y0,z0,x1,y1,z1)
parameters: 
x0,y0,z0 (vector): initial basis
x1,y1,z1 (vector): final basis

returns: 
transform: The 4x4 transformation matrix if successful
None: if not successful


Following is the code that uses this method to complete the task as per user query.

```python
import rhinoscriptsyntax as rs

# Function to check if two transformation matrices are the same
# Parameters: mat1, mat2 - transformation matrices to compare
# Returns: True if they are the same, False otherwise
def are_matrices_equal(mat1, mat2):
    return rs.XformCompare(mat1, mat2) == 0

# Example usage
matrix1 = rs.XformChangeBasis2(1, 0, 0, 0, 1, 0)
matrix2 = rs.XformChangeBasis2(1, 0, 0, 0, 1, 0)
result = are_matrices_equal(matrix1, matrix2)
print("Matrices are equal:" , result)
```, You cannot use the following methods XformCompare, IsXformSimilarity, IsXformIdentity, IsXformZero, CompareGeometry, CreateXform, VectorTransform, XformTranslation, TransformObject, XformDeterminant, transformation, source_sentence: I need to find where a flat surface meets a sphere. How can I do that in Rhino?
sentences: plane, You cannot use the following methods LineSphereIntersection, IsSphere, AddSphere, LinePlaneIntersection, Angle, CircleCenterPoint, CurveCurveIntersection, CurveSurfaceIntersection, AddCircle3Pt, You can use the following methods to complete the task.
method: PlaneSphereIntersection
description: Calculates the intersection of a plane and a sphere.
syntax: PlaneSphereIntersection(plane, sphere_plane, sphere_radius)
parameters: plane (plane): The plane to intersect; sphere_plane (plane): Equatorial plane of the sphere (origin is center); sphere_radius (float): Radius of the sphere.
returns: list: [type, point/plane, radius] where type=0 for point, 1 for circle. None on error.

Following is the code that uses this method to complete the task as per user query.

```python
import rhinoscriptsyntax as rs

# Define a flat surface as a plane
plane = rs.WorldXYPlane()
# Define the radius of the sphere
radius = 10
# Calculate the intersection between the plane and the sphere
results = rs.PlaneSphereIntersection(plane, plane, radius)

# Check if there are results and handle them accordingly
if results:
    if results[0] == 0:
        # If the intersection is a point, add it to the document
        rs.AddPoint(results[1])
    else:
        # If the intersection is a circle, add it to the document
        rs.AddCircle(results[1], results[2])
```
datasets: deebak14/embedding_tuple_data_v1, deebak14/embedding_triplet_data_v1
pipeline_tag: sentence-similarity
library_name: sentence-transformers
metrics: cosine_accuracy
model-index: name: SentenceTransformer based on google/embeddinggemma-300m
results: task: type: triplet
name: Triplet
dataset: name: base eval
type: base-eval
metrics: type: cosine_accuracy
value: 1
name: Cosine Accuracy
verified: no
Likes: 0 | All-time downloads: 35
Created: 2025-09-29 06:49:54