LegalOSS130ktracked
Contracts & Analysis ยท Legal AI & NLP

legal-tech-chat

tomasonjo-labs/legal-tech-chat

Extract structured data from CUAD contracts using LangChain, build a knowledge graph, and query insights through a LangGraph agent - transforming legal agreements into actionable intelligence.

Contracts & AnalysisLegal AI & NLPagentgeminilangchainllmneo4j

Agentic GraphRAG on commercial contracts

This repository processes the Contract Understanding Atticus Dataset (CUAD) using LangChain to extract structured data from legal contracts and build a comprehensive knowledge graph. The system includes a LangGraph-powered agent for intelligent querying and analysis of contract information.

See blog for more: https://towardsdatascience.com/agentic-graphrag-for-commercial-contracts/

๐Ÿ“„ About CUAD

The Contract Understanding Atticus Dataset (CUAD) consists of 500 contracts with annotations for 41 legal clauses. This dataset provides a rich source of legal text for information extraction and analysis.

๐Ÿš€ Features

  • Contract Processing: Extract structured data from 500 CUAD contracts using LangChain
  • Knowledge Graph Construction: Build a comprehensive graph database of contract relationships and clauses
  • Intelligent Query System: Utilize LangGraph agents to query and analyze the contract database

๐Ÿ› ๏ธ Setup and Installation

  1. Clone the repository
  2. Copy the environment file:
    copy .env.example to .env
    
  3. Start the application:
    docker-compose up