TextEmbedderOptions
class TextEmbedderOptions : TaskOptions, NSCopyingOptions for setting up a TextEmbedder.
-
Sets whether L2 normalization should be performed on the returned embeddings (
falseby default).Declaration
Swift
var l2Normalize: Bool -
Sets whether the returned embedding should be quantized to bytes via scalar quantization (
falseby default).Declaration
Swift
var quantize: Bool