Skip to content

[V] getAsEmbeddingVector

getAsEmbeddingVector: StateMapGetter<Model, EmbeddingVectorMetadata>;

If the provided model is an embedding vector, returns the appropriate metadata; otherwise, returns undefined.

the model to query

EmbeddingVectorMetadata, if applicable, or undefined.