Table of Contents

Class AzureSQLDatabaseContentSourceService

Namespace
FoundationaLLM.Vectorization.Services.ContentSources
Assembly
FoundationaLLM.Vectorization.Engine.dll

Implements a vectorization content source for content residing in Azure SQL.

public class AzureSQLDatabaseContentSourceService : ContentSourceServiceBase, IContentSourceService
Inheritance
AzureSQLDatabaseContentSourceService
Implements
Inherited Members
Extension Methods

Constructors

AzureSQLDatabaseContentSourceService(AzureSQLDatabaseContentSourceServiceSettings, ILoggerFactory)

Creates a new instance of the vectorization content source service.

public AzureSQLDatabaseContentSourceService(AzureSQLDatabaseContentSourceServiceSettings settings, ILoggerFactory loggerFactory)

Parameters

settings AzureSQLDatabaseContentSourceServiceSettings
loggerFactory ILoggerFactory

Methods

ExtractTextAsync(ContentIdentifier, UnifiedUserIdentity, CancellationToken)

Reads the content of a data source item.

public Task<string> ExtractTextAsync(ContentIdentifier contentId, UnifiedUserIdentity userIdentity, CancellationToken cancellationToken)

Parameters

contentId ContentIdentifier

The ContentIdentifier providing the unique identifier of the item being read.

userIdentity UnifiedUserIdentity

The UnifiedUserIdentity providing information about the calling user identity.

cancellationToken CancellationToken

The cancellation token that signals that operations should be cancelled.

Returns

Task<string>

The string content of the item.

Remarks

contentId[0] = the schema. contentId[1] = the table. contentId[2] = the column containing the contents of the files. contentId[3] = the column name of the unique identifier for the row of the file. contentId[4] = the value of the unique identifier of the file. contentId[5] = the file name.