Configure Services
Overview
Built-in ServicesExamples
static Program() {
Application.Services
.AddService<IEmbeddingStorageService>(
new PineconeEmbeddingStorageService(endpoint))// key in ApiKeys.js
.AddOrReplaceService<IWebSearchService>(
new BingWebSearchService()) // key in ApiKeys.js
;
}Public NotInheritable Class Program
' Shared constructor for the static class.
Shared Sub New()
Application.Services _
.AddService(Of IEmbeddingStorageService)( _
New PineconeEmbeddingStorageService(endpoint)) _
' Key should be defined in ApiKeys.js
.AddOrReplaceService(Of IWebSearchService)( _
New BingWebSearchService()) _
' Key should be defined in ApiKeys.js
End Sub
End ClassLast updated
