Skip to content

EmbedOptions

Namespace: Vercel.AI

public sealed class EmbedOptions

Embedding options.

Inheritance: object

View source

public int? Dimensions { get; set; }

Requested output dimensions. Must be a positive integer. Support depends on the model.

Value: int?

View source

public IReadOnlyDictionary<string, string?>? Headers { get; set; }

Headers for this call. They override the provider headers.

Value: IReadOnlyDictionary<string, string>

View source

public IEmbeddingModel? Model { get; set; }

Explicit embedding model.

Value: IEmbeddingModel

View source

public string? ModelId { get; set; }

Gateway embedding model id.

Value: string

View source

public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; set; }

Provider options keyed by provider id.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public IReadOnlyList<string> Values { get; set; }

Values to embed.

Value: IReadOnlyList<string>

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product