DEV Community

piyushmishra06
piyushmishra06

Posted on

Document Summarizer

Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady Submission 🦥

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady

What I Built

Documents are always hectic to read , often they have their details tucked. A document Summarizer helps ease the tedious task of reading documents and understanding the key parts of it. I built docAnalyzer for that.

Code

https://github.com/piyushmishra0620/HacktoberFest-Week-3

How I Built It

Used fastApi backend to gathers the form data from the frontend through /api/Summarizer , extractor worker gets into work , picks the document to be read the document , scans them thoroughly and extracts the text . It uses the chunking method where the text longer than 12k characters are broken down into segments . It then sends the request to locally running gemma , which Summarizes the entire thing and gives out the response .
The response is served to the frontend.

The Lazy Payoff

It saves a lot of time as a reward , where people with less effor can be able to know all about the document , rather than reading it from top to bottom in a detailed manner.

Top comments (0)