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
Discussion
Sign in to join the discussion.
0 comments

