Skip to content

Kenya Law AI-Powered Legal Case Summarization #39

@OtienoP

Description

@OtienoP

Project name

Kenya Law AI-Powered Legal Case Summarization

Description

This project leverages data engineering, natural language processing, and cloud-based AI tools to automate the extraction and summarization of legal rulings from the Kenya Law website. The workflow includes the following steps:

  1. Web Scraping: A Python script scrapes relevant case metadata and PDF links from the Kenya Law website using Fabric Notebooks and PySpark.
  2. Data Extraction & Transformation: Metadata and PDF content are extracted, with text from PDFs processed and structured using Azure Data Engineering tools.
  3. Summarization: OpenAI GPT-4 is used to generate concise summaries from the extracted case rulings.
  4. Data Storage: The processed data is stored in a PostgreSQL database (acting as a staging environment) and then ingested into Microsoft Fabric for further analysis.
  5. Insights & Reporting: Summarized data is stored in Delta Tables within the Lakehouse, and Power BI is used to create interactive dashboards and visual reports, providing valuable insights for legal researchers and analysts.

Using OpenAI GPT-4, Azure Data Engineering tools, PostgreSQL, Microsoft Fabric, and Power BI, this solution makes judicial case records more accessible and digestible for legal researchers, analysts, and the general public.

Project Repository URL

https://github.com/maqas/Hackathon/tree/main

Project video

https://pathwaysinternationalke-my.sharepoint.com/:v:/g/personal/mark_mwangangi_pathwaystechnologies_com/EQEeYG6m7YBClYvgRXBvDXYBxojq_xcoWZ_sHSf5pTatVw?e=fLBuSp

Team members

maqus,daphneokwaro,OtienoP

Registration status.

  • I have completed registration

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalid:videoApplied when video URL isn't YouTube or GitHub mp4under reviewApplied to valid submissions

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions