Skip to content

Commit a5f8425

Browse files
committed
Update VectorSearchService and package reference
- Removed `System.Threading` directive from `VectorSearchService.cs` - Updated `BeginTransactionAsync` call to include `cancellationToken` - Upgraded `Microsoft.SemanticKernel` package to version `1.36.1`
1 parent a0f1755 commit a5f8425

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

SqlDatabaseVectorSearch/Services/VectorSearchService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System.Data;
22
using System.Runtime.CompilerServices;
3-
using System.Threading;
43
using Microsoft.EntityFrameworkCore;
54
using Microsoft.Extensions.Options;
65
using Microsoft.SemanticKernel.Embeddings;
@@ -28,7 +27,7 @@ public async Task<ImportDocumentResponse> ImportAsync(Stream stream, string name
2827
var strategy = dbContext.Database.CreateExecutionStrategy();
2928
var document = await strategy.ExecuteAsync(async (cancellationToken) =>
3029
{
31-
await dbContext.Database.BeginTransactionAsync();
30+
await dbContext.Database.BeginTransactionAsync(cancellationToken);
3231

3332
if (documentId.HasValue)
3433
{

SqlDatabaseVectorSearch/SqlDatabaseVectorSearch.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<PackageReference Include="Microsoft.ML.Tokenizers" Version="1.0.1" />
1919
<PackageReference Include="Microsoft.ML.Tokenizers.Data.Cl100kBase" Version="1.0.1" />
2020
<PackageReference Include="Microsoft.ML.Tokenizers.Data.O200kBase" Version="1.0.1" />
21-
<PackageReference Include="Microsoft.SemanticKernel" Version="1.36.0" />
21+
<PackageReference Include="Microsoft.SemanticKernel" Version="1.36.1" />
2222
<PackageReference Include="MinimalHelpers.OpenApi" Version="2.1.3" />
2323
<PackageReference Include="PdfPig" Version="0.1.9" />
2424
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="7.2.0" />

0 commit comments

Comments
 (0)