How bchikitha/zepto-capstone-project works
This repository combines three data products: a Zepto policy-support RAG API, Titanic analysis and modeling, and a books-catalog ETL pipeline. The support workflow accepts a query at the API, classifies intent, then either retrieves policy context and responds or returns a direct response. The other workflows profile and model Titanic data, and scrape, transform, store, and query book data. Edges reflect the excerpts and README; the optional external-LLM path is documented but not shown in the sampled implementation.
Main entry points: graph.py Intent Workflow · main.py Ask API · prompts.py Prompt Templates · vector_db.py Vector Store
Components 20
Policy Support
- Ask API
support_assistant/main.py - Intent Workflow
support_assistant/graph.py - Intent Classifier
support_assistant/graph.py - Policy Answer
support_assistant/graph.py - Direct Answer
support_assistant/graph.py - Prompt Templates
support_assistant/prompts.py
Policy Knowledge
- Vector Store
support_assistant/vector_db.py - Policy Documents
support_assistant/docs
Titanic Analytics
- EDA and Cleaning
analytics/01_eda.py - Titanic CSV
analytics/titanic.csv - Model Training
analytics/02_modeling.py - Model Artifact
analytics/titanic_pipeline.joblib
Books ETL
- Catalog Scraper
data_pipeline.py - Data Transform
data_pipeline.py - Database Loader
data_pipeline.py - Books Database
data_pipeline/books_pipeline.db - Queries and Validation
data_pipeline.py
Other components
- Query Client
- External LLM
- Books Catalog
Connections 18
- Query Client → Ask API: submits query
README.md - Ask API → Intent Workflow: invokes graph
support_assistant/main.py - Intent Workflow → Intent Classifier: classifies intent
support_assistant/graph.py - Intent Classifier → Policy Answer: routes policy
support_assistant/graph.py - Intent Classifier → Direct Answer: routes general
support_assistant/graph.py - Policy Answer → Vector Store: queries top-k
support_assistant/graph.py - Vector Store → Policy Documents: indexes documents
README.md - Intent Workflow → Prompt Templates: uses optional prompt
README.md - Intent Workflow → External LLM: calls optional API
README.md - Prompt Templates → External LLM: supplies prompt
README.md - EDA and Cleaning → Titanic CSV: writes cleaned data
analytics/01_eda.py - Titanic CSV → Model Training: loads dataset
analytics/02_modeling.py - Model Training → Model Artifact: exports pipeline
analytics/02_modeling.py - Books Catalog → Catalog Scraper: serves catalog pages
data_pipeline.py - Catalog Scraper → Data Transform: returns raw records
data_pipeline.py - Data Transform → Database Loader: returns dataframe
data_pipeline.py - Database Loader → Books Database: writes tables
data_pipeline.py - Queries and Validation → Books Database: reads and queries
data_pipeline.py