Skip to content

holisticon/tl-dr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TL;DR - Tool for Linguistic Document Reading

TL;DR is a tool designed to read and analyze documents, extracting key information and summarizing content for quick understanding.

How to start and run the application

  • create a file .env in the root directory of the project with the following content:
OPENAI_API_KEY=add_your_key_here
OPENAI_ORG_ID=org_12345
OPENAI_PROJECT_ID=proj_whatever

Replace the placeholders with your actual OpenAI API key, organization ID, and project ID.

  • build the project with ./mvnw clean package
  • run the application with ./mvnw clean spring-boot:run

Optionally, you can also configure the model and reasoning effort by adding the following lines to your .env file:

OPENAI_MODEL=gpt-5-mini

# Applies to gpt-5 only: currently supported values are minimal, low, medium, and high
OPENAI_MODEL_REASONING_EFFORT=minimal

Install tesseract and leptonica if you want to use OCR for image-based PDFs.

$ brew install tesseract
$ brew install leptonica

What happens under the hood

The file sample1.pdf is read and processed by the application. The application uses Spring AI to interact with OpenAI's GPT-4 model to analyze the content of the PDF and generate a summary.

Further Reading

About

TL;DR - Tool for Linguistic Document Reading - Using GenAi to supplement an OCR ETL pipeline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages