Skip to content

MockEmbedResult

Namespace: Vercel.AI.Testing

public sealed class MockEmbedResult

Embedding result stored in a scripted list.

Inheritance: object

View source

public MockEmbedResult(float[] embedding)

Creates a result with one embedding.

Parameters

Name Type Description
embedding float[]

View source

public IReadOnlyList<float[]> Embeddings { get; }

Embeddings, one per input value.

Value: IReadOnlyList<float[]>

View source

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