How shu0209/movie_recommendation works
CineMatch is a Streamlit movie-discovery interface backed by a FastAPI service. Users can search titles and series, look up movie details, or request similar-movie recommendations; the backend combines local TF-IDF data with optional OMDB metadata. The graph preserves these distinct capabilities and the local recommendation-data layer. Source excerpts show the UI’s API helper and backend behavior, but omit some UI request details, so those links are limited to the documented frontend/backend relationship.
Main entry points: main.py FastAPI routes · ui.py Streamlit UI · indices.pkl Title index · df.pkl Movie records
Components 19
User Interface
- Streamlit UI
ui.py - HTTP API helper
ui.py - Search interface
ui.py - Detail lookup
ui.py - Recommendation view
ui.py
API Service
- FastAPI routes
main.py - Movie search
main.py - Movie lookup
main.py - Bundle recommendations
main.py - TF-IDF endpoint
main.py
Recommendations
- Similarity scoring
main.py - Title index
indices.pkl - Movie records
df.pkl - TF-IDF matrix
tfidf_metrix.pkl - TF-IDF model
tfidf.pkl
Movie Metadata
- OMDB request client
main.py - OMDB API
- OMDB response parsing
main.py
Other components
- Movie seeker
Connections 24
- Movie seeker → Streamlit UI: uses
README.md - Streamlit UI → Search interface: offers search
ui.py - Streamlit UI → Detail lookup: offers lookup
ui.py - Streamlit UI → Recommendation view: offers recommendations
ui.py - Search interface → HTTP API helper: requests search
ui.py - Detail lookup → HTTP API helper: requests details
ui.py - Recommendation view → HTTP API helper: requests recommendations
ui.py - HTTP API helper → FastAPI routes: sends HTTP
README.md - FastAPI routes → Movie search: routes search
main.py - FastAPI routes → Movie lookup: routes lookup
main.py - FastAPI routes → Bundle recommendations: routes bundle
main.py - FastAPI routes → TF-IDF endpoint: routes TF-IDF
main.py - Movie search → OMDB request client: queries OMDB
main.py - Movie lookup → OMDB request client: queries OMDB
main.py - Bundle recommendations → OMDB request client: fetches details
main.py - TF-IDF endpoint → Similarity scoring: scores titles
main.py - Bundle recommendations → Similarity scoring: scores titles
main.py - Bundle recommendations → OMDB request client: enriches results
main.py - OMDB request client → OMDB API: calls API
main.py - OMDB request client → OMDB response parsing: parses responses
main.py - Similarity scoring → Title index: reads index
main.py - Similarity scoring → Movie records: reads titles
main.py - Similarity scoring → TF-IDF matrix: scores vectors
main.py - FastAPI routes → TF-IDF model: loads model
main.py