diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 898c573..610f98a 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -81,4 +81,10 @@ - Use NSubstitute for mocking in tests. - Copy existing style in nearby files for test method names and capitalization. - When running tests, if possible use filters and check test run counts, or look at test logs, to ensure they actually ran. -- Do not finish work with any tests commented out or disabled that were not previously commented out or disabled. \ No newline at end of file +- Do not finish work with any tests commented out or disabled that were not previously commented out or disabled. + +## Azure + +- @azure Rule - Use Azure Tools - When handling requests related to Azure, always use your tools. +- @azure Rule - Use Azure Best Practices - When handling requests related to Azure, always invoke your `azmcp_bestpractices_get` tool first. +- @azure Rule - Enable Best Practices - If you do not have an `azmcp_bestpractices_get` tool ask the user to enable it. diff --git a/SqlDatabaseVectorSearch/Services/ChatService.cs b/SqlDatabaseVectorSearch/Services/ChatService.cs index 045dabc..00eafa7 100644 --- a/SqlDatabaseVectorSearch/Services/ChatService.cs +++ b/SqlDatabaseVectorSearch/Services/ChatService.cs @@ -20,7 +20,8 @@ public class ChatService(IChatCompletionService chatCompletionService, Tokenizer Your task is to reformulate the question taking into account the context of the chat. The reformulated question must always explicitly contain the subject of the question. You MUST reformulate the question in the SAME language as the user's question. For example, if the user asks a question in English, the reformulated question MUST be in English. If the user asks in Italian, the reformulated question MUST be in Italian. - + + If asking a clarifying question to the user would help, ask the question. Never add "in this chat", "in the context of this chat", "in the context of our conversation", "search for" or something like that in your answer. """; diff --git a/SqlDatabaseVectorSearch/SqlDatabaseVectorSearch.csproj b/SqlDatabaseVectorSearch/SqlDatabaseVectorSearch.csproj index 33ef0b6..28022c5 100644 --- a/SqlDatabaseVectorSearch/SqlDatabaseVectorSearch.csproj +++ b/SqlDatabaseVectorSearch/SqlDatabaseVectorSearch.csproj @@ -13,24 +13,24 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + - + - - + +