Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
AnuradhaDhingan
Product and Topic Expert
Product and Topic Expert

Introduction

Contract Document Processing Use CaseContract Document Processing Use Case

Automate the extraction of relevant information from contract documents with Document Information Extraction with Generative AI (premium edition) by leveraging the capabilities of Large Language Models, ensuring faster, more accurate document processing with significantly reduced processing costs.

Process Supply Contract using Generative AI

Document Information Extraction Service does not come pre-configured with support for custom document type - Contract. So, let us create a custom schema utilising Large Language Models (LLMs) to specify the fields we wish to extract from the supply contract document.

Schema Creation for Supply Contract

Access Document Information Extraction Application as described in the tutorial Use Trial to Set Up Account for Document Information Extraction and Go to Application and create new schema.

Create Supply Contract SchemaCreate Supply Contract Schema

 

 

 

 

 

 

Supply Contract SchemaSupply Contract Schema

Addition of Fields

Access the supply contract schema and add fields at header and line item level.

Add Data FieldAdd Data Field

Note:

LLMs are used to extract the data from the document when you use setup type auto.

Added FieldsAdded Fields

Tip:

When adding field names and descriptions, consider yourself explaining what you want to extract to someone who doesn't know anything about it already.

The better you describe the information that you want to extract using generative AI, the better your results will be.

Similarly, fields can be added at line item level.

Schema Activation

Now, activate the supply contract schema.

Activated SchemaActivated Schema

Obtaining Extraction Results

Upload the contract document (sample below) using the newly created supply contract schema.

Sample Supply ContractSample Supply Contract

 

Supply Contract Schema associated Document UploadSupply Contract Schema associated Document Upload

Extraction ResultsExtraction Results

Conclusion

With the Schema Configuration feature from Document Information Extraction and LLMs, we have now successfully extracted information from a supply contract document without the need to create any templates.

Similarly, Document Information Extraction with Generative AI can be utilised for extracting structured information from other types of contracts.

 

Further Information

 

Please feel free to add a comment, should you have any queries.

Best Regards,
Anuradha Dhingan