Configure Services

Overview

Wisej.AI is equipped with a variety of built-in services and a standard configuration that utilizes OpenAI for the IEmbeddingGenerationService. However, you will likely want to customize the configuration to better suit your specific requirements.

See the built-in services page for more details.

Built-in Services

Examples

Below is a common example of a basic startup configuration:

static Program() {
    Application.Services
        .AddService<IEmbeddingStorageService>(
            new PineconeEmbeddingStorageService(endpoint))// key in ApiKeys.js
        .AddOrReplaceService<IWebSearchService>(
            new BingWebSearchService()) // key in ApiKeys.js
    ;
}

This configuration establishes Pinecone as the vector database for handling data operations and Bing as the web search engine employed by the WebSearchTools.

Once the services are configured, you can utilize the following methods according to your setup: hub.IngestDocumentAsync(), adapter.UseTools(new WebSearchTools()), or hub.EmbedAsync(). These methods allow you to interact with the services as per the configurations mentioned above.

Last updated