Lesson 7.1: Project Overview and Requirements
System Requirements
Functional:
- Support 10k concurrent users
- Sub-100ms query latency for features
- Store 1M+ documents for RAG
- Log all model predictions
- Track user conversations
- Real-time analytics dashboard
Non-Functional:
- ACID transactions for critical data
- Horizontal read scaling (replicas)
- Partitioning for time-series data
- Proper indexing (all queries under 100ms)
- Data retention policies
Architecture Diagram
User Query
โ
[API Layer]
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PostgreSQL (Primary) โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ RAG System โ โ
โ โ - documents โ โ
โ โ - chunks (with embeddings) โ โ
โ โ - permissions โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Feature Store โ โ
โ โ - user_features (cached) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Conversation Memory โ โ
โ โ - conversations โ โ
โ โ - messages โ โ
โ โ - agent_entities โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Model Logs (Partitioned) โ โ
โ โ - predictions_2024_01 โ โ
โ โ - predictions_2024_02 โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โ
[Read Replicas]
- Analytics
- Dashboard
Key Takeaways
- Capstone project builds a complete AI-powered customer support system
- Four main components: RAG system, feature store, conversation memory, model logs
- Functional requirements focus on scale (10k users, 1M+ documents)
- Performance requirements demand sub-100ms latency for features
- Architecture uses PostgreSQL primary + read replicas for horizontal scaling
- Time-series data requires partitioning for model predictions
- Production readiness includes ACID transactions, proper indexing, and retention policies
Up next ยท Lesson 40 of 45
Designing the RAG Pipeline
2 min read
39 of 45 lessons done

