Share via


EmbeddingsStore Class

Definition

The vectorbase for storing embeddings.

public abstract class EmbeddingsStore
type EmbeddingsStore = class
Public MustInherit Class EmbeddingsStore
Inheritance
EmbeddingsStore

Constructors

Name Description
EmbeddingsStore(EmbeddingClient, Int32)

Initializes a new instance of the EmbeddingsStore class.

Methods

Name Description
Add(BinaryData)

Adds an entry to the vectorbase. The media type must be "text/plain".

Add(IReadOnlyList<VectorbaseEntry>)

Adds a list of entries to the vectorbase.

Add(String)

Adds an entry to the vectorbase.

Add(VectorbaseEntry)

Adds an entry to the vectorbase.

CosineSimilarity(ReadOnlySpan<Single>, ReadOnlySpan<Single>)

Calculates the cosine similarity between two vectors.

Create(EmbeddingClient)

Creates in-memory store.

Find(ReadOnlyMemory<Single>, FindOptions)

Finds entries in the vectorbase.

FindRelated(String, FindOptions)

Finds entries in the vectorbase.

Applies to