Skip to content

Dee-Figure/sentient-summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dobby File Summarizer

Dobby File Summarizer is a web application that allows users to upload documents (PDF, DOCX, or TXT) and receive concise summaries, either as a paragraph or as bullet points. The summarization is powered by an AI model via the Fireworks API.

Features

  • File Upload: Supports PDF, DOCX, and plain text files.
  • Summarization Modes: Choose between a single-paragraph summary or bullet-point summary.
  • Modern UI: Responsive and clean interface.
  • AI-Powered: Uses the Fireworks AI API for high-quality document summarization.

Project Structure

summarizer-app/
│
├── package.json
├── backend/
│   ├── .env
│   ├── package.json
│   └── server.js
└── frontend/
    ├── app.js
    ├── index.html
    ├── logor.svg
    └── style.css
  • backend/: Node.js Express server that handles summarization requests and communicates with the Fireworks API.
  • frontend/: Static files for the web interface (HTML, CSS, JS, and assets).

Setup Instructions

Prerequisites

1. Clone the Repository

git clone https://github.com/DOREGO-dev/sentient-summarizer
cd d

2. Install Backend Dependencies

cd backend
npm install

3. Set Up API Key

  • The backend uses a Fireworks AI API key.
  • By default, the key is in backend/server.js as API_KEY.
  • As this is for testing,you can find it in the server.js but for security and future purpose.It is recommended to hardoded it in server.js as 'API_KEY' while it is being stored in .env

4. Start the Backend Server

npm start
  • The server will run on port 5000 by default.

5. Open the Frontend

Usage

  1. Upload a file: Click the file input and select a PDF, DOCX, or TXT file.
  2. Choose summary mode: Select either "One Paragraph" or "Bullet Points".
  3. Click "Summarize": The summary will appear below.

File Details

Supported File Types

  • PDF: Uses PDF.js in the browser to extract text.
  • DOCX: Uses Mammoth.js (must be included if you want DOCX support).
  • TXT: Plain text files.

Customization

  • API Model: The model used is set in backend/server.js as MODEL. You can change this to another Fireworks model if desired.
  • Frontend Assets: Replace logor.svg with your own logo if needed.

Troubleshooting

  • CORS Issues: The backend enables CORS for development.
  • API Errors: Check the backend console for error messages if summarization fails.
  • File Type Not Supported: Only PDF, DOCX, and TXT are supported.

**Made by Dee Figure using Express, Fireworks AI.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages