mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
Fix typos
This commit is contained in:
@@ -18,7 +18,7 @@ public class VectorSearchService(ApplicationDbContext dbContext, ITextEmbeddingG
|
|||||||
|
|
||||||
public async Task<Guid> ImportAsync(Stream stream, string name, Guid? documentId)
|
public async Task<Guid> 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);
|
var content = await GetContentAsync(stream);
|
||||||
|
|
||||||
await dbContext.Database.BeginTransactionAsync();
|
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:
|
// 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;
|
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 questionEmbedding = await textEmbeddingGenerationService.GenerateEmbeddingAsync(reformulatedQuestion);
|
||||||
|
|
||||||
var chunks = await dbContext.DocumentChunks
|
var chunks = await dbContext.DocumentChunks
|
||||||
|
|||||||
Reference in New Issue
Block a user