Minor updates

This commit is contained in:
Marco Minerva
2024-06-26 11:05:00 +02:00
parent 1840a63d75
commit 8ef8836075
5 changed files with 7 additions and 4 deletions
@@ -75,7 +75,7 @@ public class VectorSearchService(ApplicationDbContext dbContext, ITextEmbeddingG
}
}
public async Task<Response?> AskQuestionAsync(Question question, bool reformulate = true)
public async Task<Response> AskQuestionAsync(Question question, bool reformulate = true)
{
// 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;