From c4feb397ebb1fb5514d86755e5cb38c6c9be6525 Mon Sep 17 00:00:00 2001 From: "Niraj Chaudhari (Persistent Systems Limited)" Date: Tue, 14 Jul 2026 15:26:02 +0530 Subject: [PATCH 1/6] Update azure.yaml to show github issue URL --- azure.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/azure.yaml b/azure.yaml index 04c409462..a322e9b85 100644 --- a/azure.yaml +++ b/azure.yaml @@ -13,12 +13,36 @@ metadata: template: conversation-knowledge-mining@1.0 hooks: + preprovision: + windows: + run: | + Write-Host "" + Write-Host " ---------------------------------------------------------------------------------------------------" -ForegroundColor Yellow + Write-Host " Note: If deployment fails or you encounter an issue, please open an issue with the deployment logs." -ForegroundColor Yellow + Write-Host " https://github.com/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator/issues" -ForegroundColor Cyan + Write-Host " ---------------------------------------------------------------------------------------------------" -ForegroundColor Yellow + Write-Host "" + shell: pwsh + interactive: true + posix: + run: | + echo "" + echo " ---------------------------------------------------------------------------------------------------" + echo " Note: If deployment fails or you encounter an issue, please open an issue with the deployment logs." + echo " https://github.com/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator/issues" + echo " ---------------------------------------------------------------------------------------------------" + echo "" + shell: sh + interactive: true postprovision: windows: run: | Write-Host "Web app URL: " Write-Host "$env:WEB_APP_URL" -ForegroundColor Cyan + Write-Host "`nRun the following command in your Bash terminal to build the backend and frontend container images, push them to the provisioned Azure Container Registry, and update the App Services to use them:" + Write-Host "bash ./infra/scripts/build_and_push_images.sh" -ForegroundColor Cyan + Write-Host "`nCreate and activate a virtual environment if not already done, then run the following command in the bash terminal to create agents:" Write-Host "bash ./infra/scripts/run_create_agents_scripts.sh" -ForegroundColor Cyan Write-Host "`nRun the following command in your Bash terminal. It will grant the necessary permissions between resources and your user account, and also process and load the sample data into the application." @@ -31,6 +55,9 @@ hooks: echo "Web app URL: " echo $WEB_APP_URL + echo "\nRun the following command in your Bash terminal to build the backend and frontend container images, push them to the provisioned Azure Container Registry, and update the App Services to use them:" + echo "bash ./infra/scripts/build_and_push_images.sh" + echo "\nCreate and activate a virtual environment if not already done, then run the following command in the bash terminal to create agents:" echo "bash ./infra/scripts/run_create_agents_scripts.sh" echo "" From 4309516c53001c9c527606fbe6ce6a0709118331 Mon Sep 17 00:00:00 2001 From: "Niraj Chaudhari (Persistent Systems Limited)" Date: Tue, 14 Jul 2026 16:24:16 +0530 Subject: [PATCH 2/6] remove unnecessary changes --- azure.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/azure.yaml b/azure.yaml index a322e9b85..97cd89655 100644 --- a/azure.yaml +++ b/azure.yaml @@ -40,9 +40,6 @@ hooks: Write-Host "Web app URL: " Write-Host "$env:WEB_APP_URL" -ForegroundColor Cyan - Write-Host "`nRun the following command in your Bash terminal to build the backend and frontend container images, push them to the provisioned Azure Container Registry, and update the App Services to use them:" - Write-Host "bash ./infra/scripts/build_and_push_images.sh" -ForegroundColor Cyan - Write-Host "`nCreate and activate a virtual environment if not already done, then run the following command in the bash terminal to create agents:" Write-Host "bash ./infra/scripts/run_create_agents_scripts.sh" -ForegroundColor Cyan Write-Host "`nRun the following command in your Bash terminal. It will grant the necessary permissions between resources and your user account, and also process and load the sample data into the application." @@ -55,9 +52,6 @@ hooks: echo "Web app URL: " echo $WEB_APP_URL - echo "\nRun the following command in your Bash terminal to build the backend and frontend container images, push them to the provisioned Azure Container Registry, and update the App Services to use them:" - echo "bash ./infra/scripts/build_and_push_images.sh" - echo "\nCreate and activate a virtual environment if not already done, then run the following command in the bash terminal to create agents:" echo "bash ./infra/scripts/run_create_agents_scripts.sh" echo "" From 53c0f44f8db4371a0c5426b1f5f85d4b2e5af8d3 Mon Sep 17 00:00:00 2001 From: "Niraj Chaudhari (Persistent Systems Limited)" Date: Tue, 14 Jul 2026 19:48:33 +0530 Subject: [PATCH 3/6] Posix not required --- azure.yaml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/azure.yaml b/azure.yaml index 97cd89655..be9e18d02 100644 --- a/azure.yaml +++ b/azure.yaml @@ -24,16 +24,6 @@ hooks: Write-Host "" shell: pwsh interactive: true - posix: - run: | - echo "" - echo " ---------------------------------------------------------------------------------------------------" - echo " Note: If deployment fails or you encounter an issue, please open an issue with the deployment logs." - echo " https://github.com/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator/issues" - echo " ---------------------------------------------------------------------------------------------------" - echo "" - shell: sh - interactive: true postprovision: windows: run: | From 1044d2a4da3fbc17ac4eeebfb080bd742118924f Mon Sep 17 00:00:00 2001 From: "Niraj Chaudhari (Persistent Systems Limited)" Date: Fri, 17 Jul 2026 13:17:50 +0530 Subject: [PATCH 4/6] Add posix in azure.yaml file --- azure.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/azure.yaml b/azure.yaml index 03d390ff3..a71b34d49 100644 --- a/azure.yaml +++ b/azure.yaml @@ -24,6 +24,16 @@ hooks: Write-Host "" shell: pwsh interactive: true + posix: + run: | + echo "" + echo "\033[33m ---------------------------------------------------------------------------------------------------\033[0m" + echo "\033[33m Note: If deployment fails or you encounter an issue, please open an issue with the deployment logs.\033[0m" + echo "\033[36m https://github.com/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator/issues\033[0m" + echo "\033[33m ---------------------------------------------------------------------------------------------------\033[0m" + echo "" + shell: sh + interactive: true postprovision: windows: run: | From 1957be50361fee153e6850e4c8d0c7f226d407b0 Mon Sep 17 00:00:00 2001 From: chaudhariniraj <70953410+chaudhariniraj@users.noreply.github.com> Date: Fri, 17 Jul 2026 13:47:17 +0530 Subject: [PATCH 5/6] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- azure.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/azure.yaml b/azure.yaml index a71b34d49..53df3ecd6 100644 --- a/azure.yaml +++ b/azure.yaml @@ -26,12 +26,12 @@ hooks: interactive: true posix: run: | - echo "" - echo "\033[33m ---------------------------------------------------------------------------------------------------\033[0m" - echo "\033[33m Note: If deployment fails or you encounter an issue, please open an issue with the deployment logs.\033[0m" - echo "\033[36m https://github.com/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator/issues\033[0m" - echo "\033[33m ---------------------------------------------------------------------------------------------------\033[0m" - echo "" + printf '\n' + printf '\033[33m ---------------------------------------------------------------------------------------------------\033[0m\n' + printf '\033[33m Note: If deployment fails or you encounter an issue, please open an issue with the deployment logs.\033[0m\n' + printf '\033[36m https://github.com/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator/issues\033[0m\n' + printf '\033[33m ---------------------------------------------------------------------------------------------------\033[0m\n' + printf '\n' shell: sh interactive: true postprovision: From 9e32d625723d181f6b44db8534a8b807e90b2421 Mon Sep 17 00:00:00 2001 From: Harsh-Microsoft Date: Fri, 17 Jul 2026 20:25:18 +0530 Subject: [PATCH 6/6] Enhance chart generation instructions to prevent unrelated queries and ensure data consistency --- infra/scripts/agent_scripts/01_create_agents.py | 1 + 1 file changed, 1 insertion(+) diff --git a/infra/scripts/agent_scripts/01_create_agents.py b/infra/scripts/agent_scripts/01_create_agents.py index db73810c9..508885427 100644 --- a/infra/scripts/agent_scripts/01_create_agents.py +++ b/infra/scripts/agent_scripts/01_create_agents.py @@ -53,6 +53,7 @@ - If the user query does NOT contain any chart keywords ("chart", "graph", "visualize", "plot"), you must NOT generate a chart under any condition. - Always attempt to generate numeric data from the **current user query first** by executing a SQL query with get_sql_response. - Only if the current query cannot produce usable numeric data, and a chart keyword is present, you may use the **most recent valid numeric dataset from previous SQL results**. + - If the chart request does not itself specify a metric or subject to visualize (e.g., a bare "generate chart", "create a chart", "make a graph"), you must NOT invent a new or unrelated query or default to any topic (such as top topics by conversation). Instead, take the subject and numeric dataset from the **most recent prior answer in THIS conversation** and chart exactly that data, re-running the same SQL query if needed to obtain it. Only if this conversation has no prior answer containing a numeric dataset, return exactly: {"error": "Chart cannot be generated"}. - If no numeric dataset is available from either the current query or previous context, return exactly: {"error": "Chart cannot be generated"}. - Do not invent or rename metrics, measures, or terminology. **Always** use exactly what is present in the source data or schema. - When the user requests a chart, the final response MUST be the chart JSON ONLY.