Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM mcr.microsoft.com/devcontainers/python:1-3.11-bullseye

# Remove Yarn apt repo entirely to avoid expired GPG key errors during feature installs
USER root
RUN rm -f /etc/apt/sources.list.d/yarn.list \
&& rm -f /usr/share/keyrings/yarn.gpg
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "Azure / AI / Claims Processing",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/azure-cli:1": {
"installBicep": true
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"version": "latest",
"enableNonRootDocker": "true"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "lts"
}
},
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/microhack,type=bind,consistency=cached",
"workspaceFolder": "/workspaces/microhack/03-Azure/01-04-AI/05_Claims_Processing",
"postCreateCommand": "pip3 install --user uv==0.9.17 && uv sync --frozen",
"customizations": {
"vscode": {
"extensions": [
"github.copilot",
"github.copilot-chat",
"ms-azuretools.vscode-azurefunctions",
"ms-python.autopep8",
"ms-python.debugpy",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.vscode-python-envs",
"ms-toolsai.jupyter",
"ms-toolsai.jupyter-keymap",
"ms-toolsai.jupyter-renderers",
"ms-toolsai.vscode-jupyter-cell-tags",
"ms-toolsai.vscode-jupyter-slideshow",
"benjaminbenais.copilot-theme",
"Azurite.azurite",
"ms-azuretools.vscode-azurestorage",
"ms-azuretools.vscode-bicep",
"vs-publisher-1448185.keyoti-changeallendoflinesequence",
"ms-windows-ai-studio.windows-ai-studio",
"mechatroner.rainbow-csv"
],
"settings": {
"workbench.colorTheme": "Copilot Theme",
"terminal.integrated.defaultProfile.linux": "bash"
}
}
},
"remoteUser": "vscode",
"postAttachCommand": "bash /workspaces/microhack/.devcontainer/welcome.sh"
}
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
{
"name": "Python 3",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/azure-cli:1": {
"installBicep": true
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"version": "latest",
"enableNonRootDocker": "true"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "lts"
}
},
"postCreateCommand": "pip3 install --user uv==0.9.17 && uv sync --frozen",
"customizations": {
"vscode": {
"extensions": [
"github.copilot",
"github.copilot-chat",
"ms-azuretools.vscode-azurefunctions",
"ms-python.autopep8",
"ms-python.debugpy",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.vscode-python-envs",
"ms-toolsai.jupyter",
"ms-toolsai.jupyter-keymap",
"ms-toolsai.jupyter-renderers",
"ms-toolsai.vscode-jupyter-cell-tags",
"ms-toolsai.vscode-jupyter-slideshow",
"benjaminbenais.copilot-theme",
"Azurite.azurite",
"ms-azuretools.vscode-azurestorage",
"ms-azuretools.vscode-bicep",
"vs-publisher-1448185.keyoti-changeallendoflinesequence",
"ms-windows-ai-studio.windows-ai-studio",
"mechatroner.rainbow-csv"
],
"settings": {
"workbench.colorTheme": "Copilot Theme"
}
}
}
}
{
"name": "Python 3",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/azure-cli:1": {
"installBicep": true
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"version": "latest",
"enableNonRootDocker": "true"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "lts"
}
},
"postCreateCommand": "pip3 install --user uv==0.9.17 && uv sync --frozen",
"customizations": {
"vscode": {
"extensions": [
"github.copilot",
"github.copilot-chat",
"ms-azuretools.vscode-azurefunctions",
"ms-python.autopep8",
"ms-python.debugpy",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.vscode-python-envs",
"ms-toolsai.jupyter",
"ms-toolsai.jupyter-keymap",
"ms-toolsai.jupyter-renderers",
"ms-toolsai.vscode-jupyter-cell-tags",
"ms-toolsai.vscode-jupyter-slideshow",
"benjaminbenais.copilot-theme",
"Azurite.azurite",
"ms-azuretools.vscode-azurestorage",
"ms-azuretools.vscode-bicep",
"vs-publisher-1448185.keyoti-changeallendoflinesequence",
"ms-windows-ai-studio.windows-ai-studio",
"mechatroner.rainbow-csv"
],
"settings": {
"workbench.colorTheme": "Copilot Theme"
}
}
}
}
62 changes: 31 additions & 31 deletions 03-Azure/01-04-AI/05_Claims_Processing/.env.example
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
# Copy this file to .env at the repository root, then replace required values
# with credentials supplied by the MicroHack platform or event coach.

# Microsoft Foundry project and models
AI_FOUNDRY_PROJECT_ENDPOINT=https://<foundry-resource>.services.ai.azure.com/api/projects/<project-name>
FOUNDRY_PROJECT_ENDPOINT=https://<foundry-resource>.services.ai.azure.com/api/projects/<project-name>
MODEL_DEPLOYMENT_NAME=gpt-5.4
FOUNDRY_MODEL=gpt-5.4
FOUNDRY_QUARANTINE_MODEL=gpt-5.4

# Mistral Document AI
MISTRAL_DOCUMENT_AI_ENDPOINT=https://<foundry-resource>.cognitiveservices.azure.com
MISTRAL_DOCUMENT_AI_KEY=<foundry-api-key>
MISTRAL_DOCUMENT_AI_DEPLOYMENT_NAME=mistral-document-ai-2512
MISTRAL_DOCUMENT_AI_API_VERSION=2024-05-01-preview

# Azure AI Search and Foundry IQ
FOUNDRY_IQ_SEARCH_ENDPOINT=https://<search-service>.search.windows.net
FOUNDRY_IQ_SEARCH_KEY=<search-admin-key>
FOUNDRY_IQ_SEARCH_INDEX_NAME=crash-statements
FOUNDRY_IQ_KNOWLEDGE_SOURCE_NAME=crash-statements-ks
FOUNDRY_IQ_KNOWLEDGE_BASE_NAME=crash-statements-kb
SEARCH_SERVICE_ENDPOINT=https://<search-service>.search.windows.net
SEARCH_ADMIN_KEY=<search-admin-key>

# Azure Storage policy documents
AZURE_STORAGE_CONNECTION_STRING=<storage-connection-string>
AZURE_POLICIES_CONTAINER_NAME=policies

# Sequential workflow
HUMAN_REVIEW_CONFIDENCE_THRESHOLD=0.9
# Copy this file to .env at the repository root, then replace required values
# with credentials supplied by the MicroHack platform or event coach.
# Microsoft Foundry project and models
AI_FOUNDRY_PROJECT_ENDPOINT=https://<foundry-resource>.services.ai.azure.com/api/projects/<project-name>
FOUNDRY_PROJECT_ENDPOINT=https://<foundry-resource>.services.ai.azure.com/api/projects/<project-name>
MODEL_DEPLOYMENT_NAME=gpt-5.4
FOUNDRY_MODEL=gpt-5.4
FOUNDRY_QUARANTINE_MODEL=gpt-5.4
# Mistral Document AI
MISTRAL_DOCUMENT_AI_ENDPOINT=https://<foundry-resource>.cognitiveservices.azure.com
MISTRAL_DOCUMENT_AI_KEY=<foundry-api-key>
MISTRAL_DOCUMENT_AI_DEPLOYMENT_NAME=mistral-document-ai-2512
MISTRAL_DOCUMENT_AI_API_VERSION=2024-05-01-preview
# Azure AI Search and Foundry IQ
FOUNDRY_IQ_SEARCH_ENDPOINT=https://<search-service>.search.windows.net
FOUNDRY_IQ_SEARCH_KEY=<search-admin-key>
FOUNDRY_IQ_SEARCH_INDEX_NAME=crash-statements
FOUNDRY_IQ_KNOWLEDGE_SOURCE_NAME=crash-statements-ks
FOUNDRY_IQ_KNOWLEDGE_BASE_NAME=crash-statements-kb
SEARCH_SERVICE_ENDPOINT=https://<search-service>.search.windows.net
SEARCH_ADMIN_KEY=<search-admin-key>
# Azure Storage policy documents
AZURE_STORAGE_CONNECTION_STRING=<storage-connection-string>
AZURE_POLICIES_CONTAINER_NAME=policies
# Sequential workflow
HUMAN_REVIEW_CONFIDENCE_THRESHOLD=0.9
105 changes: 50 additions & 55 deletions 03-Azure/01-04-AI/05_Claims_Processing/.gitignore
Original file line number Diff line number Diff line change
@@ -1,55 +1,50 @@
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
venv/
.venv/
ENV/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
.excalidraw-copilot
# VS Code
.vscode/
.idea/
*.swp
*.swo
*~
.copilot-tracking

# Environment
.env
.env.local
local.settings.json

# Node
node_modules/
package-lock.json
yarn.lock

# Azure Functions
AzureFunctionsProject.csproj
bin/
obj/

# Azurite
__azurite_db_*.json
__blobstorage__/

# macOS
.DS_Store
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
venv/
.venv/
ENV/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
.excalidraw-copilot
# VS Code
.vscode/
.idea/
*.swp
*.swo
*~
.copilot-tracking/
.ruff_cache/
.pytest_cache/
.github

# Environment
.env
.env.local
local.settings.json

# Node
node_modules/
package-lock.json
yarn.lock

# macOS
.DS_Store
.github/
Loading
Loading