You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom meta data can optionally be passed along when submitting a file to be processed on the Content Processor API. This allows for external source system refereence information to be captured and passed through the processing steps. This information stays as reference only for down-stream reference and is not used in in processessing or modifying any data extraction, mapping, or transformation.
39
+
Custom meta data can optionally be passed along when submitting a file to be processed on the Content Processor API. This allows for external source system reference information to be captured and passed through the processing steps. This information stays as reference only for down-stream reference and is not used in processing or modifying any data extraction, mapping, or transformation.
40
40
41
41
## Security
42
42
Security is applied to the API by utilizing a vnet for traffic and network control. A service principal with permission can programmatically call the end points and is registered as an application registration in Azure.
## Step 3: Configure Application Registration - API Application
56
-
Add Web Application Registration's Client Id to API's Allowed client application list.
66
+
1. Grap Scope Name for Impersonation
67
+
- Go to deployed Container App **ca-< your environment >-< randomname >-api** and select **Authentication** menu then select created Application Registration
## Step 5: Update Environment Variable in Container App for Web Application
89
+
In previous 2 steps for [Configure Application Registration - Web Application](#step-2-configure-application-registration---web-application) and [Configure Application Registration - API Application](#step-3-configure-application-registration---api-application), we could grap Client Id for Web App's Application Registration and Scopes for Web and API's Application Registration.
90
+
91
+
Now, We will Edit and deploy Web Application Container with updated Environment variables.
92
+
93
+
1. Select **Containers** menu under **Application** then **click Edit and Deploy** menu.
2. Select Container image and Click **Edit**. under **Environment variables** sections, update 3 values which were taken in previous steps for **APP_MSAL_AUTH_CLIENT_ID**, **APP_MSAL_AUTH_SCOPE**, **APP_MSAL_TOKEN_SCOPE**.
97
+
Now updated Revision will be activated soon.
98
+
99
+
100
+
57
101
58
-
## Step 4: Update Environment Variable in Container App for Web Application
59
-
Update Environment variable for Client Id in Web App's application registration, Scope for Web as auth scope, Scope for API as token scope
Copy file name to clipboardExpand all lines: docs/CustomizeSchemaData.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Using AI, the processing pipeline will extract what is preceived as is the "invo
9
9
10
10
With this concept in mind, schemas need to be created specific to your business and domain requirements. A lot of times schemas may be generally common across industries, but this allows for variations specific to your use case.
11
11
12
-
A schema should be created that includes all fields you expect to extract and transformed to. Once a schema is added specific to your intended files, you can then programmatically call the API endpoints to submit and process the file for that schema or utilize the web UI to manually process and review.
12
+
A schema should be created that includes all fields you expect to extract and transform to. Once a schema is added specific to your intended files, you can then programmatically call the API endpoints to submit and process the file for that schema or utilize the web UI to manually process and review.
13
13
14
14
## Steps to add a Custom Schema
15
15
1.**Create .py class to define schema**<br/>
@@ -33,13 +33,13 @@ A schema should be created that includes all fields you expect to extract and tr
33
33
- Base import statements.
34
34
- Class and subclass definitions that inherit from pydantic BaseModel.
35
35
- Each class has fields, methods, and meta data.
36
-
- Classes include a class name, a string describing the class, it's attributes, and the attributes descriptions These are used during mapping and data transformation in the processing pipeline.
36
+
- Classes include a class name, a string describing the class, its attributes, and the attributes descriptions. These are used during mapping and data transformation in the processing pipeline.
37
37
- Classes also include fields and methods.
38
38
39
39
40
40
#### Fields
41
41
42
-
- Fields are defined in the class to represent what data this class hold. This is a 1-to-1 relationship with what gets extracted from a file being processed is mapped to this specific field. If your file has a field you'd like to extract called "invoice date", you'd have a field defined in your class to represent that.
42
+
- Fields are defined in the class to represent what data this class holds. This is a 1-to-1 relationship with what gets extracted from a file being processed is mapped to this specific field. If your file has a field you'd like to extract called "invoice date", you'd have a field defined in your class to represent that.
43
43
- Each field has annotations to designate if it is optional or required.
44
44
- Fields also have a string describing what it is and it is used as a prompt to help with data evaluation/validation, mapping and transformation in the processing pipeline. Include an example in the description to help with specificity or experiment with simple logic to help the LLM process the content correctly.
Copy file name to clipboardExpand all lines: docs/DeploymentGuide.md
+8-18Lines changed: 8 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,8 @@ Here are some example regions where the services are available: East US, East US
26
26
Pick from the options below to see step-by-step instructions for: GitHub Codespaces, VS Code Dev Containers, Local Environments, and Bicep deployments.
27
27
28
28
29
-
|[](https://codespaces.new/microsoft/content-processing-solution-accelerator)|[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/content-processing-solution-accelerator)|[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Fcontent-processing-solution-accelerator%2Fmain%2Finfra%2Fmain.json)|
30
-
|---|---|---|
29
+
|[](https://codespaces.new/microsoft/content-processing-solution-accelerator)|[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/content-processing-solution-accelerator)|
30
+
|---|---|
31
31
32
32
<details>
33
33
<summary><b>Deploy in GitHub Codespaces</b></summary>
@@ -48,7 +48,7 @@ You can run this solution using GitHub Codespaces. The button will open a web-ba
48
48
<details>
49
49
<summary><b>Deploy in VS Code</b></summary>
50
50
51
-
### VS Code Dev Containers
51
+
### VS Code Dev Containers
52
52
53
53
You can run this solution in VS Code Dev Containers, which will open the project in your local VS Code using the [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers):
54
54
@@ -66,7 +66,7 @@ You can run this solution in VS Code Dev Containers, which will open the project
66
66
<details>
67
67
<summary><b>Deploy in your local environment</b></summary>
68
68
69
-
### Local environment
69
+
### Local environment
70
70
71
71
If you're not using one of the above options for opening the project, then you'll need to:
72
72
@@ -89,20 +89,10 @@ You can run this solution in VS Code Dev Containers, which will open the project
89
89
90
90
</details>
91
91
92
-
<details>
93
-
<summary><b>Deploy with Bicep/ARM template</b></summary>
94
-
95
-
### Bicep
96
-
97
-
Click the following deployment button to create the required resources forthis solution directlyin your Azure Subscription.
98
-
99
-
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Fcontent-processing-solution-accelerator%2Fmain%2Finfra%2Fmain.json)
100
-
101
-
</details>
102
92
<br/>
103
93
94
+
Consider the following settings during your deployment to modify specific settings:
104
95
105
-
Next, consider the following settings during your deployment:
0 commit comments