hoops_ai.ml.embeddings.ShapeEmbeddingsModel
- class hoops_ai.ml.embeddings.ShapeEmbeddingsModel
Bases:
ABCINTERFACE Shape Embeddings for CAD search and similarity matching..
- abstract embed_shape(cad_path, storage=None)
Compute a part embedding directly from a CAD file path.
- Parameters:
cad_path (str) – Path to the CAD file
storage (DataStorage) – Optional DataStorage instance. If provided, embeddings will be automatically saved with the correct schema and key.
- Returns:
Embedding object containing the vector representation
- Return type:
- abstract embed_shape_batch(cad_path_list, max_workers=None, show_progress=True)
Compute embeddings for multiple CAD files in parallel.
- Parameters:
- Returns:
EmbeddingBatch object containing the vector representations
- Return type:
- abstract schema()
Return the schema definition for storing embeddings.
- Returns:
Schema object compatible with DataStorage.set_schema()