webEmbedderOptions function

Map<String, Object?> webEmbedderOptions(
  1. EmbedderOptions options
)

Maps common embedder options to the web API.

Implementation

Map<String, Object?> webEmbedderOptions(EmbedderOptions options) => <String, Object?>{
  'l2Normalize': options.l2Normalize,
  'quantize': options.quantize,
};