Skip to content
This repository was archived by the owner on Jan 8, 2026. It is now read-only.

IntelligentSandbox/gmail-rag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Personal Gmail RAG System

Local RAG pipeline that ingests Gmail emails, stores them in a vector database, and supports querying via an open-source LLM. Keeps previous email context for follow-up questions.

Install

python setup.py

Activate

source venv/bin/activate

Credentials

  1. Go to Google Cloud Console
  2. Search API & Services
  3. Open Credentials
  4. Click Create CredentialsOAuth Client ID
  5. Select Desktop app
  6. Download the JSON file
  7. Move it to src/credentials.json

Enable the Gmail API.

Ollama Model

Install the required Mistral model:

ollama pull mistral

The default mistral model uses Q4_K_M quantization (4.4GB size vs 14GB FP32) for optimal performance.

Database

./setup_database.sh

Usage

python src/main.py

Benchmark

python benchmark.py

Demo

Important

Please follow previous steps to setup the enviornment!

Run demo

python demo.py

References

About

No description or website provided.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors