Skip to content

[F] getAsEmbeddingVector

function getAsEmbeddingVector(program, model):
| undefined
| EmbeddingVectorMetadata;

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

ParameterTypeDescription
programProgram-
modelModelthe model to query

| undefined | EmbeddingVectorMetadata

EmbeddingVectorMetadata, if applicable, or undefined.