Skip to content

Commit e2f91c0

Browse files
authored
Merge pull request #2 from MicrosoftCloudEssentials-LearningHub/python311working-ai-vision
Terraform arch with llms + ai vision + doc intelligence
2 parents df766b8 + 5817539 commit e2f91c0

16 files changed

+1550
-645
lines changed

.gitignore

Lines changed: 99 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Local .terraform directories
22
.terraform/
3-
3+
**__pycache__
44
# .tfstate files
55
*.tfstate
66
*.tfstate.*
@@ -37,3 +37,101 @@ override.tf.json
3737
# Ignore CLI configuration files
3838
.terraformrc
3939
terraform.rc
40+
41+
# Python
42+
__pycache__/
43+
*.py[cod]
44+
*$py.class
45+
*.so
46+
.Python
47+
build/
48+
develop-eggs/
49+
dist/
50+
downloads/
51+
eggs/
52+
.eggs/
53+
lib/
54+
lib64/
55+
parts/
56+
sdist/
57+
var/
58+
wheels/
59+
pip-wheel-metadata/
60+
share/python-wheels/
61+
*.egg-info/
62+
.installed.cfg
63+
*.egg
64+
MANIFEST
65+
66+
# Azure Functions
67+
.azure/
68+
.vscode/
69+
local.settings.json
70+
.azurefunctions/
71+
72+
# Testing artifacts
73+
testing/results/
74+
testing/sample_pdfs/
75+
*.pdf
76+
*.png
77+
*.jpg
78+
*.jpeg
79+
80+
# Temporary files
81+
temp/
82+
tmp/
83+
*.tmp
84+
*.temp
85+
*.bak
86+
*.swp
87+
*.swo
88+
*~
89+
90+
# OS generated files
91+
.DS_Store
92+
.DS_Store?
93+
._*
94+
.Spotlight-V100
95+
.Trashes
96+
ehthumbs.db
97+
Thumbs.db
98+
99+
# IDE files
100+
.idea/
101+
*.iml
102+
*.ipr
103+
*.iws
104+
105+
# Log files
106+
*.log
107+
logs/
108+
109+
# Cache files
110+
.cache/
111+
*.cache
112+
113+
# Generated samples and cleanup scripts
114+
remove_emojis.py
115+
clean_makefile.py
116+
117+
# Alternative/duplicate test files
118+
extract_content_test.py
119+
test_pdf_analysis.py
120+
simple_pdf_analysis.py
121+
122+
# Generated metrics and documentation
123+
metrics.json
124+
README-SETUP.md
125+
126+
# Performance test results
127+
*.perf
128+
profile_output/
129+
130+
# Package files
131+
*.tar.gz
132+
*.zip
133+
*.rar
134+
135+
# VS Code specific files
136+
.vscode/
137+
*.code-workspace

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"ms-azuretools.vscode-azurefunctions",
4+
"ms-python.python"
5+
]
6+
}

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Attach to Python Functions",
6+
"type": "debugpy",
7+
"request": "attach",
8+
"connect": {
9+
"host": "localhost",
10+
"port": 9091
11+
},
12+
"preLaunchTask": "func: host start"
13+
}
14+
]
15+
}

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"azureFunctions.deploySubpath": "src",
3+
"azureFunctions.scmDoBuildDuringDeployment": true,
4+
"azureFunctions.pythonVenv": ".venv",
5+
"azureFunctions.projectLanguage": "Python",
6+
"azureFunctions.projectRuntime": "~4",
7+
"debug.internalConsoleOptions": "neverOpen",
8+
"azureFunctions.projectLanguageModel": 2
9+
}

.vscode/tasks.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "func",
6+
"label": "func: host start",
7+
"command": "host start",
8+
"problemMatcher": "$func-python-watch",
9+
"isBackground": true,
10+
"dependsOn": "pip install (functions)",
11+
"options": {
12+
"cwd": "${workspaceFolder}/src"
13+
}
14+
},
15+
{
16+
"label": "pip install (functions)",
17+
"type": "shell",
18+
"osx": {
19+
"command": "${config:azureFunctions.pythonVenv}/bin/python -m pip install -r requirements.txt"
20+
},
21+
"windows": {
22+
"command": "${config:azureFunctions.pythonVenv}\\Scripts\\python -m pip install -r requirements.txt"
23+
},
24+
"linux": {
25+
"command": "${config:azureFunctions.pythonVenv}/bin/python -m pip install -r requirements.txt"
26+
},
27+
"problemMatcher": [],
28+
"options": {
29+
"cwd": "${workspaceFolder}/src"
30+
}
31+
}
32+
]
33+
}

README.md

Lines changed: 449 additions & 449 deletions
Large diffs are not rendered by default.

docs/automated-PDFLayoutprocessing-FunctionApp-DocIntellig-AI-Vision.drawio

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<mxfile host="Electron" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/28.0.4 Chrome/138.0.7204.97 Electron/37.2.1 Safari/537.36" version="28.0.4">
1+
<mxfile host="Electron" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/28.0.6 Chrome/138.0.7204.100 Electron/37.2.3 Safari/537.36" version="28.0.6">
22
<diagram name="Page-1" id="_ZzkEdzZPlF0T37kGrCl">
3-
<mxGraphModel dx="732" dy="1532" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
3+
<mxGraphModel dx="1601" dy="2045" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
44
<root>
55
<mxCell id="0" />
66
<mxCell id="1" parent="0" />
@@ -27,10 +27,10 @@
2727
<mxCell id="SBEox3NDaokPfLYJbtWu-3" value="Employee" style="shape=umlActor;verticalLabelPosition=bottom;verticalAlign=top;html=1;outlineConnect=0;" parent="SBEox3NDaokPfLYJbtWu-10" vertex="1">
2828
<mxGeometry y="30" width="30" height="60" as="geometry" />
2929
</mxCell>
30-
<mxCell id="_wiV1sLz3M6k8l1JJ68s-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.126;entryY=0.408;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="SBEox3NDaokPfLYJbtWu-12" target="qB0o09IW0mbKmVrXtbLM-1" edge="1">
30+
<mxCell id="_wiV1sLz3M6k8l1JJ68s-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.031;entryY=0.621;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="SBEox3NDaokPfLYJbtWu-12" target="MwsIeyTlQLMsmfNamO9Q-1" edge="1">
3131
<mxGeometry relative="1" as="geometry">
3232
<Array as="points">
33-
<mxPoint x="510" y="18" />
33+
<mxPoint x="510" y="12" />
3434
</Array>
3535
</mxGeometry>
3636
</mxCell>
@@ -75,12 +75,13 @@
7575
</mxGeometry>
7676
</mxCell>
7777
<mxCell id="_wiV1sLz3M6k8l1JJ68s-1" value="Document Intelligence" style="image;aspect=fixed;html=1;points=[];align=center;fontSize=12;image=img/lib/azure2/ai_machine_learning/Form_Recognizers.svg;" parent="1" vertex="1">
78-
<mxGeometry x="680" y="90" width="63.2" height="68" as="geometry" />
78+
<mxGeometry x="760" y="58" width="63.2" height="68" as="geometry" />
7979
</mxCell>
8080
<mxCell id="_wiV1sLz3M6k8l1JJ68s-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.989;entryY=0.598;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="_wiV1sLz3M6k8l1JJ68s-1" target="SBEox3NDaokPfLYJbtWu-12" edge="1">
8181
<mxGeometry relative="1" as="geometry">
8282
<Array as="points">
83-
<mxPoint x="720" y="336" />
83+
<mxPoint x="790" y="124" />
84+
<mxPoint x="790" y="336" />
8485
</Array>
8586
</mxGeometry>
8687
</mxCell>
@@ -89,16 +90,23 @@
8990
<mxPoint as="offset" />
9091
</mxGeometry>
9192
</mxCell>
92-
<mxCell id="qB0o09IW0mbKmVrXtbLM-1" value="Azure &lt;br&gt;AI Vision&amp;nbsp;" style="image;aspect=fixed;html=1;points=[];align=center;fontSize=12;image=img/lib/azure2/ai_machine_learning/Computer_Vision.svg;" vertex="1" parent="1">
93-
<mxGeometry x="550" y="-10" width="68" height="68" as="geometry" />
93+
<mxCell id="qB0o09IW0mbKmVrXtbLM-1" value="Azure &lt;br&gt;AI Vision&amp;nbsp;" style="image;aspect=fixed;html=1;points=[];align=center;fontSize=12;image=img/lib/azure2/ai_machine_learning/Computer_Vision.svg;" parent="1" vertex="1">
94+
<mxGeometry x="670" y="-19" width="68" height="68" as="geometry" />
9495
</mxCell>
95-
<mxCell id="qB0o09IW0mbKmVrXtbLM-3" style="rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.609;entryDx=0;entryDy=0;entryPerimeter=0;edgeStyle=orthogonalEdgeStyle;elbow=vertical;shape=link;" edge="1" parent="1" source="_wiV1sLz3M6k8l1JJ68s-1" target="qB0o09IW0mbKmVrXtbLM-1">
96+
<mxCell id="qB0o09IW0mbKmVrXtbLM-3" style="rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1;entryY=0.609;entryDx=0;entryDy=0;entryPerimeter=0;edgeStyle=orthogonalEdgeStyle;elbow=vertical;shape=link;" parent="1" source="_wiV1sLz3M6k8l1JJ68s-1" target="qB0o09IW0mbKmVrXtbLM-1" edge="1">
9697
<mxGeometry relative="1" as="geometry">
9798
<Array as="points">
98-
<mxPoint x="710" y="31" />
99+
<mxPoint x="790" y="20" />
100+
<mxPoint x="738" y="20" />
99101
</Array>
100102
</mxGeometry>
101103
</mxCell>
104+
<mxCell id="MwsIeyTlQLMsmfNamO9Q-2" style="edgeStyle=elbowEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;shape=link;" edge="1" parent="1" source="MwsIeyTlQLMsmfNamO9Q-1" target="qB0o09IW0mbKmVrXtbLM-1">
105+
<mxGeometry relative="1" as="geometry" />
106+
</mxCell>
107+
<mxCell id="MwsIeyTlQLMsmfNamO9Q-1" value="AI Foundry&amp;nbsp;&lt;br&gt;LLMs" style="image;aspect=fixed;html=1;points=[];align=center;fontSize=12;image=img/lib/azure2/ai_machine_learning/AI_Studio.svg;" vertex="1" parent="1">
108+
<mxGeometry x="550" y="-30" width="64" height="68" as="geometry" />
109+
</mxCell>
102110
</root>
103111
</mxGraphModel>
104112
</diagram>

0 commit comments

Comments
 (0)