dip:
  embedding:
    profiles:
      definitions:
        primary-only:
          embed-representation-types: [SEMANTIC_TEXT]

        primary-and-chunks:
          embed-representation-types: [SEMANTIC_TEXT, CHUNK]

        ted-semantic:
          embed-representation-types: [SEMANTIC_TEXT, TITLE_ABSTRACT, CHUNK]

        mail-message:
          embed-representation-types: [SEMANTIC_TEXT, ATTACHMENT_ROLLUP]

        attachment-chunks:
          embed-representation-types: [CHUNK]

        disabled:
          embed-representation-types: []

    policies:
      default-policy:
        policy-key: generic-default
        model-key: e5-default
        query-model-key: e5-default
        profile-key: primary-and-chunks
        enabled: true

      rules:
        - name: ted-notice
          when:
            document-family: TED_NOTICE
          use:
            policy-key: ted-default
            model-key: e5-default
            query-model-key: e5-default
            profile-key: ted-semantic
            enabled: true

        - name: email-root
          when:
            document-type: EMAIL
          use:
            policy-key: mail-default
            model-key: e5-default
            query-model-key: e5-default
            profile-key: mail-message
            enabled: true

        - name: mail-attachment-pdf
          when:
            source-type: MAIL_ATTACHMENT
            mime-type: application/pdf
          use:
            policy-key: mail-attachment-pdf
            model-key: e5-default
            query-model-key: e5-default
            profile-key: attachment-chunks
            enabled: true

        - name: skip-images
          when:
            mime-type: image/.*
          use:
            policy-key: no-embedding-images
            model-key: e5-default
            query-model-key: e5-default
            profile-key: disabled
            enabled: false
