Skip to content

VoyageEmbeddingRequest

Namespace: Vercel.AI.Voyage

public sealed class VoyageEmbeddingRequest

Optional Voyage embedding fields.

Inheritance: object

View source

VoyageEmbeddingRequest(IReadOnlyList<string>)

Section titled “VoyageEmbeddingRequest(IReadOnlyList<string>)”
public VoyageEmbeddingRequest(IReadOnlyList<string> values)

Creates a request for <code class=“paramref”>values</code>.

Parameters

Name Type Description
values IReadOnlyList<string>

View source

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

Headers merged over the provider headers.

Value: IDictionary<string, string>

View source

public string? InputType { get; set; }

input_type, when set.

Value: string

View source

public int? OutputDimension { get; set; }

output_dimension, when set.

Value: int?

View source

public string? OutputDtype { get; set; }

output_dtype, when set.

Value: string

View source

public bool? Truncation { get; set; }

truncation, when set.

Value: bool?

View source

public IReadOnlyList<string> Values { get; }

Texts to embed.

Value: IReadOnlyList<string>

View source

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