Legal Document Analysis

I want to process legal documents lets say “Agreements”. There are different clauses in a legal agreement. My use case is:

  1. Determine the type of agreement (Classificaiton)
  2. Extract Different Clauses out of it
  3. Extract data from the the clauses

I am planning to split document and index in vector store then process every. chink to identify which clauses it contains. After identifying the clause extract data from that. Store all this to some DB and then use it for downstream services.