Skip to main content
Version: 0.96

templates.EmbeddingNNTemplateSchema

class templates.EmbeddingNNTemplateSchema(*args, **kwargs)

Template schema for EmbeddingsNearestNeighbor

Parameters

NameTypeDefaultInfo
class_embeddings_pathstrPath to a file containing class embeddings.
feature_fieldstrName of the field containing the feature / embeddings.
min_distancefloatMinimum distance to be considered a match.

artifact_config_keys

static artifact_config_keys()

The names of the fields in the template schema pydantic model that represent paths to files or directories that contain data which back the LF template. For example, paths to a dictionary on disk that’s used within an LF.

Return type

List[str]