Coder Social home page Coder Social logo

auenkr / email-classifer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 67 KB

A email (only gmail) classifier and summarize using LLM

Home Page: https://classifier.auenkr.me/

Shell 0.21% Dockerfile 0.39% JavaScript 0.71% TypeScript 96.29% CSS 2.40%

email-classifer's Introduction

Gmail Classifier with LLM

1. Multi-class Classification:

  • Classify emails into categories like Important, Promotions, Social, Marketing, and Spam based on LLM insights and keywords.

2. General Fallback:

  • If the LLM analysis is inconclusive, categorize the email as "General."

To start Project locally

Pre-requisites:

  1. Node or Docker
  2. Google OAuth account setup with scope more detail
      - openid
      - email
      - profile
      - https://www.googleapis.com/auth/gmail.readonly
      - https://www.googleapis.com/auth/gmail.addons.current.message.readonly
    
  3. OpenAi API key

Steps

copy .env.sample to .env and get all environmental variable

Using Docker

For Linux user run docker compose up

For Windows/Mac docker-compose up

Mannual Install

Change postgres connection string also

npm install
npm run db:generate && npm run db:migrate
npm run dev

email-classifer's People

Contributors

auenkr avatar

Watchers

 avatar

email-classifer's Issues

Optimise the email fetch query

  1. Without saving on db
  2. Cache the old result
    Eg: if initial latest 10 email render then fetch query should no ho for these again
  3. Implementation it in both backend and frontend

CiCd pipeline

  1. Lint
  2. Docker image push to docker hub
  3. Pull image into ec2 mc and run it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.