Skip to content

Commit 81d30b8

Browse files
authored
Merge pull request #125 from Azure-Samples/scenario-us-tax-form
Add US Tax Form 1040 scenario with AI Document Intelligence Extraction + GPT Classification
2 parents 9cd1145 + cae25dd commit 81d30b8

File tree

70 files changed

+7860
-4155
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+7860
-4155
lines changed

.devcontainer/post-create.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ err() {
1212
# Ensure apt is in non-interactive to avoid prompts
1313
export DEBIAN_FRONTEND=noninteractive
1414

15-
# Install the local dependencies for Python
16-
pip --disable-pip-version-check --no-cache-dir install --user -r requirements.txt
15+
# Find all requirements.txt files in the repo directory and install them
16+
find ./ -name "requirements.txt" | while read -r requirements; do
17+
echo "Installing requirements from $requirements"
18+
pip install -r "$requirements"
19+
done

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
AZURE_RESOURCE_GROUP=
2+
AZURE_STORAGE_ACCOUNT_NAME=
3+
AZURE_AI_SERVICES_ENDPOINT=
4+
AZURE_OPENAI_ENDPOINT=
5+
AZURE_OPENAI_CHAT_DEPLOYMENT=
6+
AZURE_OPENAI_TEXT_EMBEDDING_DEPLOYMENT=
7+
AZURE_OPENAI_API_VERSION=
8+
AZURE_AI_PHI_ENDPOINT=
9+
AZURE_AI_PHI_PRIMARY_KEY=

.env.template

Lines changed: 0 additions & 10 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,3 +567,6 @@ cython_debug/
567567
samples/**/scenarios/invoices/*
568568
!samples/**/scenarios/invoices/*.py
569569
!samples/**/scenarios/invoices/*.ipynb
570+
samples/**/scenarios/us_tax/*
571+
!samples/**/scenarios/us_tax/*.py
572+
!samples/**/scenarios/us_tax/*.ipynb

.vscode/extensions.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
{
2-
"recommendations": [
3-
"GitHub.remotehub",
4-
"GitHub.copilot",
5-
"GitHub.copilot-chat",
6-
"github.vscode-pull-request-github",
7-
"GitHub.vscode-github-actions",
8-
"ms-azuretools.azure-dev",
9-
"ms-azuretools.vscode-bicep",
10-
"ms-azuretools.vscode-docker",
11-
"ms-azuretools.vscode-azureresourcegroups",
12-
"ms-azuretools.vscode-azurestorage",
13-
"ms-azuretools.vscode-azure-github-copilot",
14-
"ms-dotnettools.csdevkit",
15-
"ms-dotnettools.dotnet-interactive-vscode",
16-
"ms-python.python",
17-
"ms-python.vscode-pylance",
18-
"ms-python.autopep8",
19-
"ms-python.debugpy",
20-
"ms-toolsai.jupyter",
21-
"ms-vscode.vscode-node-azure-pack",
22-
"ms-vscode.powershell",
23-
"ms-vscode-remote.vscode-remote-extensionpack",
24-
"esbenp.prettier-vscode",
25-
"VisualStudioExptTeam.vscodeintellicode",
26-
"eamodio.gitlens",
27-
"EditorConfig.EditorConfig"
28-
]
29-
}
2+
"recommendations": [
3+
"GitHub.remotehub",
4+
"GitHub.copilot",
5+
"GitHub.copilot-chat",
6+
"github.vscode-pull-request-github",
7+
"GitHub.vscode-github-actions",
8+
"ms-azuretools.azure-dev",
9+
"ms-azuretools.vscode-bicep",
10+
"ms-azuretools.vscode-docker",
11+
"ms-azuretools.vscode-azureresourcegroups",
12+
"ms-azuretools.vscode-azurestorage",
13+
"ms-azuretools.vscode-azure-github-copilot",
14+
"ms-dotnettools.csdevkit",
15+
"ms-dotnettools.dotnet-interactive-vscode",
16+
"ms-python.python",
17+
"ms-python.vscode-pylance",
18+
"ms-python.autopep8",
19+
"ms-python.debugpy",
20+
"ms-toolsai.jupyter",
21+
"ms-vscode.vscode-node-azure-pack",
22+
"ms-vscode.powershell",
23+
"ms-vscode-remote.vscode-remote-extensionpack",
24+
"esbenp.prettier-vscode",
25+
"VisualStudioExptTeam.vscodeintellicode",
26+
"eamodio.gitlens",
27+
"EditorConfig.EditorConfig"
28+
]
29+
}

README.md

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

Setup-Environment.ps1

Lines changed: 0 additions & 64 deletions
This file was deleted.

azure.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
2+
3+
name: azure-ai-document-processing-samples
4+
metadata:
5+
template: azd-init@1.13.2
6+
resourceGroup: ${AZURE_RESOURCE_GROUP_NAME}
7+
hooks:
8+
preprovision:
9+
posix:
10+
shell: sh
11+
run: bash ./infra/scripts/deploy.sh $AZURE_ENV_NAME $AZURE_RESOURCE_GROUP_NAME $AZURE_LOCATION

images/dotnet-notebook-kernel.png

15.7 KB
Loading

images/python-notebook-kernel.png

15.3 KB
Loading

0 commit comments

Comments
 (0)