Skip to content

amansinghal116/Ask-Enron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¨ Ask Enron – LLM Question Answering over the Enron Email Corpus

Live demo (Hugging Face Space): https://huggingface.co/spaces/singhalamaan116/Ask-Enron

Ask questions in natural language and get answers based on real Enron emails.
Under the hood, the app performs semantic search over the Enron email dataset and uses a small language model to generate answers from the retrieved emails.


πŸ”§ Tech Stack

  • Dataset: corbt/enron-emails
  • Embeddings: sentence-transformers/all-MiniLM-L6-v2
  • LLM: google/flan-t5-small
  • UI: Gradio (Blocks)
  • Infra: Hugging Face Spaces (CPU)

πŸš€ How it works

  1. User enters a question (e.g., β€œWhat trips were people planning in August 2000?”).
  2. The question is embedded with a sentence-transformers model.
  3. We compute cosine similarity with precomputed embeddings of ~20k Enron emails.
  4. The top-k emails are concatenated into a context.
  5. A Flan-T5 model reads the context and generates an answer.
  6. The app shows:
    • The answer
    • The exact emails used as context

πŸ“ Project structure

app.py          # Gradio app (Spaces entry point)
requirements.txt
README.md

About

Semantic search + LLM question answering over the Enron Email Corpus. Ask questions and get answers grounded in retrieved emails.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages