mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
Update README and refine prompt logic in ChatService
Updated README.md to include a note on Vector support in Azure SQL Database and corrected "Dimension" to "Dimensions". Modified ChatService.cs to append separator "---" only once at the end of the prompt.
This commit is contained in:
@@ -44,18 +44,18 @@ public class ChatService(IMemoryCache cache, IChatCompletionService chatCompleti
|
||||
|
||||
var prompt = new StringBuilder("""
|
||||
Using the following information:
|
||||
---
|
||||
|
||||
""");
|
||||
|
||||
// TODO: Ensure that chunks are not too long, according to the model max token.
|
||||
foreach (var text in chunks)
|
||||
{
|
||||
prompt.Append(text);
|
||||
prompt.AppendLine("---");
|
||||
prompt.Append(text);
|
||||
}
|
||||
|
||||
prompt.AppendLine($"""
|
||||
=====
|
||||
Answer the following question:
|
||||
---
|
||||
{question}
|
||||
|
||||
Reference in New Issue
Block a user