embed_dimension


Description:

public async int embed_dimension () throws Error

Gets the embedding dimension by doing a test embed.

Uses the base class connection method to get the embedding connection and model. This is an instance method that can be called when dimension is not yet known.

Returns:

The embedding dimension