From 558e86edaeae54df947f9657d675ff2bb6dba90f Mon Sep 17 00:00:00 2001 From: RobBreemen <132341628+RobBreemen@users.noreply.github.com> Date: Tue, 10 Feb 2026 19:33:09 +0000 Subject: [PATCH] Challenge 0 + 1 --- challenge-1/agents/fault_diagnosis_agent.py | 9 +++- challenge-1/create_knowledge_base.ipynb | 48 +++++++++++++++++---- 2 files changed, 47 insertions(+), 10 deletions(-) diff --git a/challenge-1/agents/fault_diagnosis_agent.py b/challenge-1/agents/fault_diagnosis_agent.py index de26229..5394eba 100644 --- a/challenge-1/agents/fault_diagnosis_agent.py +++ b/challenge-1/agents/fault_diagnosis_agent.py @@ -70,8 +70,12 @@ async def main(): require_approval="never", project_connection_id="machine-data-connection" ), - - # TODO: add Foundry IQ MCP tool + MCPTool( + server_label="machine-wiki", + server_url=machine_wiki_mcp_endpoint, + require_approval="never", + project_connection_id="machine-wiki-connection" + ) ] @@ -111,3 +115,4 @@ async def main(): if __name__ == "__main__": asyncio.run(main()) + diff --git a/challenge-1/create_knowledge_base.ipynb b/challenge-1/create_knowledge_base.ipynb index cd2eb2a..a67e797 100644 --- a/challenge-1/create_knowledge_base.ipynb +++ b/challenge-1/create_knowledge_base.ipynb @@ -76,10 +76,18 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "id": "331c2bf6", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "✅ Knowledge source 'machine-wiki-blob-ks' created or updated successfully.\n" + ] + } + ], "source": [ "\n", "index_client = SearchIndexClient(\n", @@ -147,10 +155,18 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "id": "cd2d30ff", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "✅ Knowledge base 'machine-kb' created or updated successfully.\n" + ] + } + ], "source": [ "\n", "index_client = SearchIndexClient(\n", @@ -194,10 +210,18 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "id": "dbfdb5d9", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "If curing_temperature exceeds 178°C, likely root causes include heating element malfunction, temperature sensor drift, steam pressure being too high, thermostat failure, or inadequate cooling water flow [ref_id:0].\n" + ] + } + ], "source": [ "\n", "kb_client = KnowledgeBaseRetrievalClient(\n", @@ -237,10 +261,18 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "id": "3165c7d5", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Connection 'machine-wiki-connection' created or updated successfully.\n" + ] + } + ], "source": [ "import requests\n", "from azure.identity import DefaultAzureCredential, get_bearer_token_provider\n",