Table of Contents

Class PostgresIndexingService

Namespace
FoundationaLLM.SemanticKernel.Core.Services.Indexing
Assembly
FoundationaLLM.SemanticKernel.Core.dll

Provides vector embedding indexing based on PostgreSQL.

public class PostgresIndexingService : IIndexingService
Inheritance
PostgresIndexingService
Implements
Inherited Members
Extension Methods

Constructors

PostgresIndexingService(IOptions<PostgresIndexingServiceSettings>, ILogger<PostgresIndexingService>)

Creates a new PostgresIndexingService instance.

public PostgresIndexingService(IOptions<PostgresIndexingServiceSettings> options, ILogger<PostgresIndexingService> logger)

Parameters

options IOptions<PostgresIndexingServiceSettings>

The IOptions<TOptions> providing configuration settings.

logger ILogger<PostgresIndexingService>

The ILogger used for logging.

Methods

IndexEmbeddingsAsync(EmbeddedContent, string)

Adds to a specified index the list of embeddings associated with a content.

public Task<List<string>> IndexEmbeddingsAsync(EmbeddedContent embeddedContent, string indexName)

Parameters

embeddedContent EmbeddedContent

The EmbeddedContent containind the embeddings to index.

indexName string

The name of the index.

Returns

Task<List<string>>