embeddingModel

Creates an embedding model client that converts text to vectors, for use with vector stores.

embeddingModel([config]) → returns any

This function requires Adobe ColdFusion 2025.0.8 and up.  Not supported on Lucee, etc.

Argument Reference

config struct

Struct with provider settings such as provider, apiKey, modelName, baseUrl and dimension. Defaults to the built-in all_minilm model.

Examples
Sample code invoking the embeddingModel function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub