diff --git a/docs/setup-guides/vectorization/vectorization-triggering.md b/docs/setup-guides/vectorization/vectorization-triggering.md index 27b0151aa3..5b3de67bf2 100644 --- a/docs/setup-guides/vectorization/vectorization-triggering.md +++ b/docs/setup-guides/vectorization/vectorization-triggering.md @@ -90,9 +90,9 @@ The following table describes the meaning of the multipart strings for the `Azur | 1 | The name of the database schema. | | 2 | The name of the table. | | 3 | The name of the column that stores file content. | -| 4 | The name of the column that stores file identifiers (file names). | -| 5 | The file identifier (file name). | - +| 4 | The name of the column that stores file row identifier. | +| 5 | The value of the row identifier. | +| 5 | The file file name. | ### Known neutral URLs diff --git a/src/dotnet/Vectorization/Services/ContentSources/AzureSQLDatabaseContentSourceService.cs b/src/dotnet/Vectorization/Services/ContentSources/AzureSQLDatabaseContentSourceService.cs index b906e3b32e..2d9498a3cb 100644 --- a/src/dotnet/Vectorization/Services/ContentSources/AzureSQLDatabaseContentSourceService.cs +++ b/src/dotnet/Vectorization/Services/ContentSources/AzureSQLDatabaseContentSourceService.cs @@ -31,12 +31,13 @@ public AzureSQLDatabaseContentSourceService( /// contentId[0] = the schema. /// contentId[1] = the table. /// contentId[2] = the column containing the contents of the files. - /// contentId[3] = the column containing the file names. - /// contentId[4] = the name of the file. + /// 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. /// public async Task ExtractTextAsync(ContentIdentifier contentId, CancellationToken cancellationToken) { - contentId.ValidateMultipartId(5); + contentId.ValidateMultipartId(6); var binaryContent = await GetBinaryContent( contentId[0], @@ -80,7 +81,7 @@ private async Task GetBinaryContent(string schema, string tableName, } catch (Exception ex) { - _logger.LogError(ex, "Error extracting content from the file identified by {FileName}.", identifierValue); + _logger.LogError(ex, "Error extracting content from the file identified by {identifierValue}.", identifierValue); throw new VectorizationException($"Error extracting content from file identified by {identifierValue}.", ex); } }