...
To use this custom PDF page processing for a specific Scope or Content in the Knowledge Base, the ingestion config of the content needs to be adjusted. This is an example curl for that:
Single-Tenant
Code Block |
---|
curl --location --request POST 'https://gateway.<baseUrl>/ingestion/v1/folder/<scopeId>/properties' \
--header 'Authorization: Bearer <yourToken>' \
--header 'Content-Type: application/json' \
--data-raw '{
"properties": {
"ingestionConfig": {
"pdfReadMode": "CUSTOM_SINGLE_PAGE_API",
"customApiOptions": [{
"customisationType": "CUSTOM_SINGLE_PAGE_API",
"apiIdentifier": "Unique Text and Image Extraction API",
"apiPayload": "{\"languageModel\": \"AZURE_GPT_4o_2024_0806\",\"imagesInParallel\": 3}"
}]
}
},
"applyToSubScopes": true
}' |
Multi-Tenant
Code Block |
---|
curl --location --request POST 'https://gateway.unique.app/ingestion-gen2/v1/folder/<scopeId>/properties' \ --header 'Authorization: Bearer <yourToken>' \ --header 'Content-Type: application/json' \ --data-raw '{ "properties": { "ingestionConfig": { "pdfReadMode": "CUSTOM_SINGLE_PAGE_API", "customApiOptions": [{ "customisationType": "CUSTOM_SINGLE_PAGE_API", "apiIdentifier": "Unique Text and Image Extraction API", "apiPayload": "{\"languageModel\": \"AZURE_GPT_4o_2024_0806\",\"imagesInParallel\": 3}" }] } }, "applyToSubScopes": true }' |
...