Ultronprime commited on
Commit
eb9958d
·
verified ·
1 Parent(s): b5a207c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +59 -29
README.md CHANGED
@@ -1,43 +1,73 @@
1
  ---
2
- title: RAG Document Processing
3
- emoji: 📄
4
  colorFrom: blue
5
- colorTo: green
6
- sdk: docker
7
- app_port: 7860
8
- pinned: false
9
- models:
10
- - sentence-transformers/all-MiniLM-L6-v2
11
- - facebook/bart-large-cnn
12
- license: apache-2.0
13
  ---
14
 
15
- # RAG Document Processing
16
 
17
- This Hugging Face Space contains a RAG (Retrieval Augmented Generation) system for processing documents, built entirely with Hugging Face tools and models.
18
 
19
  ## Features
20
 
21
- - Automated processing of text files
22
- - OCR and document processing with HF models
23
- - Vector storage with FAISS
24
- - Embeddings with sentence-transformers
25
- - Simple query interface with Gradio
 
26
 
27
- ## Implementation
28
 
29
- This is a Hugging Face-native implementation of the original cloud-based RAG system. It uses:
30
-
31
- - Sentence Transformers for embeddings
32
- - FAISS for vector search
33
- - Transformers models for document processing
34
- - Persistent storage for data
35
- - A100 GPU acceleration (for pro users)
36
 
37
  ## Usage
38
 
39
- 1. Upload documents to be processed
40
- 2. The system automatically processes and indexes them
41
- 3. Query the processed documents through the interface
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
- See the CLAUDE_HF.md file for implementation details.
 
 
 
 
 
1
  ---
2
+ title: Email Thread Analyzer with AI Q&A
3
+ emoji: 📧
4
  colorFrom: blue
5
+ colorTo: indigo
6
+ sdk: gradio
7
+ sdk_version: 4.44.0
8
+ app_file: app.py
9
+ pinned: true
10
+ license: mit
 
 
11
  ---
12
 
13
+ # Email Thread Analyzer with AI Q&A
14
 
15
+ An AI-powered tool for analyzing email threads, searching for relevant conversations, and generating Q&A pairs based on email content.
16
 
17
  ## Features
18
 
19
+ - Microsoft Graph API integration for email access
20
+ - Email thread organization and visualization
21
+ - Semantic search for finding relevant threads
22
+ - AI-powered Q&A generation based on thread content
23
+ - Data visualization for email analytics
24
+ - Export functionality for thread data and Q&A
25
 
26
+ ## Authentication
27
 
28
+ 1. Click on the "Authentication" tab
29
+ 2. Click "Get Authentication URL" button
30
+ 3. Open the URL in a new browser tab and authenticate with Microsoft
31
+ 4. After successful authentication, you'll be redirected. Copy the authorization code from the URL
32
+ 5. Paste the code in the "Authorization Code" field and click "Submit"
 
 
33
 
34
  ## Usage
35
 
36
+ ### Email Extraction
37
+
38
+ 1. Select a mail folder from the dropdown
39
+ 2. Configure extraction parameters (max emails, batch size, date range)
40
+ 3. Click "Extract Emails" to fetch and organize email threads
41
+
42
+ ### Thread Analysis
43
+
44
+ 1. Click on the "Thread Analysis" tab
45
+ 2. Click "Generate Analytics" to visualize email metrics
46
+ 3. Explore the thread size distribution, activity timeline, and participant charts
47
+
48
+ ### Search
49
+
50
+ 1. Click on the "Search" tab
51
+ 2. Enter a search query and click "Search"
52
+ 3. Select a thread from the results and click "View Thread" to see details
53
+
54
+ ### Q&A
55
+
56
+ 1. Select a thread using the Search tab
57
+ 2. Click "Generate Q&A" to create AI-powered questions and answers
58
+ 3. Explore the generated Q&A pairs and summary
59
+ 4. Export the thread data with Q&A for further analysis
60
+
61
+ ## Privacy & Security
62
+
63
+ - All processing happens within the application
64
+ - Authentication is handled securely through Microsoft's OAuth2 flow
65
+ - No email data is stored persistently outside of your session
66
+
67
+ ## Technical Details
68
 
69
+ This application uses:
70
+ - MSAL for Microsoft authentication
71
+ - Sentence-Transformers for semantic search
72
+ - Transformers for question answering
73
+ - Plotly for data visualization