IEmbeddingGenerationService

Overview

The IEmbeddingGenerationService offers a unified interface to embedding generation endpoints. It is used by all Wisej.AI components and tools that need to convert text chunks into vectors. Typically, it works in conjunction with the IEmbeddingStorageService.

The DefaultEmbeddingGenerationService implementation, as registered by Wisej.AI, utilizes the OpenAI endpoint. It accesses the API key stored in ApiKeys.json or the corresponding environment variable and employs the "text-embedding-3-small" model (1,536 dimensions) for generating embeddings.

See Embedding Generation for more information on how to change the default model and provider.

Default Implementation

The default implementation of the IEmbeddingGenerationService interface is provided by the DefaultEmbeddingGenerationService class. This class employs the OpenAIEndpoint as its standard endpoint for embedding generation. In addition to the DefaultEmbeddingGeneration service, Wisej.AI also offers the HuggingFaceEmbeddingGenerationService implementation.

For further details and to access the source code of the built-in implementations, please refer to the Embedding Generation page.

Last updated