From 05d18c5f9786567abe6bc2fbe68ca55a4b5a31c0 Mon Sep 17 00:00:00 2001 From: Marco Minerva Date: Mon, 2 Sep 2024 10:48:23 +0200 Subject: [PATCH] Fix typos --- SqlDatabaseVectorSearch/Services/VectorSearchService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SqlDatabaseVectorSearch/Services/VectorSearchService.cs b/SqlDatabaseVectorSearch/Services/VectorSearchService.cs index 77a99a5..d7e10ce 100644 --- a/SqlDatabaseVectorSearch/Services/VectorSearchService.cs +++ b/SqlDatabaseVectorSearch/Services/VectorSearchService.cs @@ -18,7 +18,7 @@ public class VectorSearchService(ApplicationDbContext dbContext, ITextEmbeddingG public async Task ImportAsync(Stream stream, string name, Guid? documentId) { - // Extract the contents of the file (current, only PDF are supported). + // Extract the contents of the file (currently, only PDF files are supported). var content = await GetContentAsync(stream); await dbContext.Database.BeginTransactionAsync(); @@ -84,7 +84,7 @@ public class VectorSearchService(ApplicationDbContext dbContext, ITextEmbeddingG // Reformulate the following question taking into account the context of the chat to perform keyword search and embeddings: var reformulatedQuestion = reformulate ? await chatService.CreateQuestionAsync(question.ConversationId, question.Text) : question.Text; - // Perform Vector Search on SQL Server. + // Perform Vector Search on SQL Database. var questionEmbedding = await textEmbeddingGenerationService.GenerateEmbeddingAsync(reformulatedQuestion); var chunks = await dbContext.DocumentChunks