Skip to content

kevanwee/lexlynx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Lexlynx - OpenAI Case Law Summarization πŸ“šβš–οΈ

Lexlynx is an OpenAI wrapper designed to summarize case law. It uses the fitz library to read PDF files, OpenAI's API to generate summaries, and tqdm for a progress bar during processing. Lexlynx makes legal case summarization easy and efficient! πŸš€

Features ✨

  • PDF Text Extraction: Extracts and summarizes case law from PDF files πŸ“„.
  • Chunking: Breaks large PDFs into manageable chunks for processing πŸ“Š.
  • AI Summarization: Uses OpenAI's GPT-4 model to generate concise summaries, highlighting key legal issues, judgments, and precedents πŸ§ πŸ’‘.
  • Progress Bar: Displays a progress bar during the summarization process using tqdm ⏳.

Requirements πŸ› οΈ

To use this tool, you will need to install the following dependencies:

pip install fitz pymupdf
pip install tqdm
pip install --upgrade openai

Usage πŸƒβ€β™‚οΈπŸ’¨

python lexlynx.py

Input the PDF file name when prompted, the script will process the PDF, summarize the content, and output the summary of the case law.

Note ⚠️: Make sure to replace openai_key = "INPUT YOUR KEY HERE" with your actual OpenAI API key. πŸ”‘

About

openai wrapper that summarizes case law

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages