> ## Documentation Index
> Fetch the complete documentation index at: https://wwwpoc.ibm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Contract Analysis

> Analyze contract documents using Granite and Docling.

This recipe provides an automated solution for contract analysis leveraging Granite and [Docling](https://github.com/DS4SD/docling). It simplifies the process of extracting, analyzing, and understanding key details from contract documents, enabling users to:

* Identify important clauses and terms
* Assess potential risks and obligations
* Generate actionable insights for better decision-making

The notebook is particularly useful for legal professionals, business analysts, and organizations handling contracts regularly, as it ensures consistency and scalability in the analysis process.

You will need the following credentials to run this recipe in Colab:

* Hugging Face token
* watsonx API Key
* watsonx Project ID
* watsonx url

Instructions for obtaining these credentials can be found [here](/granite/docs/use-cases/getting-credentials).

<CardGroup cols={2}>
  <Card title="Get started" icon="github" href="https://github.com/ibm-granite-community/granite-snack-cookbook/blob/main/recipes/Contract-Analysis/Granite_Recipes_Contracts_Analysis.ipynb">
    Explore sample code in a GitHub repo
  </Card>

  <Card title="Try it out" icon="https://mintcdn.com/ibmgranite/m3dncz2KrKeb3pcV/granite/docs/images/icons8-google-colab.svg?fit=max&auto=format&n=m3dncz2KrKeb3pcV&q=85&s=fb39ef667c012d0fcef53599b6c5c0fd" href="https://colab.research.google.com/github/ibm-granite-community/granite-snack-cookbook/blob/main/recipes/Contract-Analysis/Granite_Recipes_Contracts_Analysis.ipynb" width="144" height="144" data-path="granite/docs/images/icons8-google-colab.svg">
    Execute sample code in Colab
  </Card>
</CardGroup>
