Genpact Deduction Knowledge Center

Support

Configure Connection to AI Resources

Overview

Deduction supports various advanced models and tools (Open AI and DocIntel) for deduction processing. Before using the AI capabilities, you need to configure the connection to these AI resources.

You need to configure the configuration.yaml file.

Following is the sample YAML file:

kind: document
metadata:
  name: deduction/v1/documents/configuration
spec:
    configs:
        common: 
            values:
                documentType:
                  value: Invoice
                openAIUrl:      
                  value: https://werti-mbnpnuyf-eastus2.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2025-01-01-preview
                openAIKey:
                  value: '%%deduction:secrets:openAIKey%%'
                docIntelUrl:
                  value: https://doc-intel-or-latest-version.cognitiveservices.azure.com/documentintelligence/documentModels/prebuilt-layout:analyze?api-version=2024-11-30
                docIntelKey:
                  value: '%%deduction:secrets:docIntelKey%%'
        emailBillbackTemplate:
          values:
            fromEmail:
              value: abc@genpact.com
            toEmail:
              value: xyz@genpact.com
            subjectPart1:
              value: This is IWFID number
            subjectPart2:
              value: This is the amount