AI anime recommender
Recommends three anime per query by retrieving synopses from ChromaDB and prompting a Groq Llama model.
What it does
An anime CSV is cleaned and each title's name, synopsis and genres are combined into one text field, then embedded into a persisted ChromaDB store. A RetrievalQA chain on Groq's llama-3.1-8b-instant returns three numbered recommendations with plot summaries and reasons, served through Streamlit. The app runs on Minikube inside a Google Cloud VM, with cluster monitoring sent to Grafana Cloud through Helm.
What was built
- 01
Build pipeline merges name, synopsis and genres into a combined field and writes a processed CSV.
- 02
CSV rows are embedded with all-MiniLM-L6-v2 and persisted to a local ChromaDB directory.
- 03
Prompt template asks for exactly three titles, each with a short plot summary and match reason, and forbids invented answers.
- 04
Kubernetes Deployment and LoadBalancer Service run the Streamlit image on Minikube, with API keys from a secret.
- 05
Grafana Cloud Kubernetes monitoring is installed into a monitoring namespace with Helm.
The pipeline, layer by layer
Five layers, one pipeline.
L1Data
- Anime synopsis CSV
- Combined text field
L2Indexing
- MiniLM embeddings
- ChromaDB store
L3Recommendation
- RetrievalQA recommender
- Groq Llama 3.1 8B
- Three-title prompt
L4Serving
- Streamlit app
- Minikube on GCP VM
L5Monitoring
- Grafana Cloud via Helm