Prepare architecture of a RAG system that gonna read all my emails from my email client…
- User
Prepare architecture of a RAG system that gonna read all my emails from my email client from last month, find emails with pricing, cost estimates, xls/xlsx files with pricing, pdf files with pricing etc. - will anderstand items - label it with item category and add it to the data base in google sheets.
Assistant
RAG System Architecture for Email Pricing Extraction
1. Data Ingestion Layer
- Email API connector (Gmail/Outlook API)
- Authentication system
- Attachment extractor for XLS/XLSX/PDF files
- Filter mechanism for last month's emails
2. Processing Pipeline
- Text extraction from email bodies
- PDF parser for pricing tables and text
- Excel processor for spreadsheet data
- Regular expression patterns for price detection
3. Intelligence Layer
- NLP model to identify items and their prices
- Entity recognition for product names and descriptions
- Classification model for item categorization
- Context analyzer to understand pricing structure
4. Data Storage & Management
- Structured data converter
- Google Sheets API integration
- Database schema with columns for: