Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions challenge-1/agents/fault_diagnosis_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

]

Expand Down Expand Up @@ -111,3 +115,4 @@ async def main():

if __name__ == "__main__":
asyncio.run(main())

48 changes: 40 additions & 8 deletions challenge-1/create_knowledge_base.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down