Skip to content

Instantly share code, notes, and snippets.

@MLWhiz
Created May 16, 2025 08:23
Show Gist options
  • Save MLWhiz/8ee615c7f4ddd636375644a6f6780826 to your computer and use it in GitHub Desktop.
Save MLWhiz/8ee615c7f4ddd636375644a6f6780826 to your computer and use it in GitHub Desktop.
import pandas as pd
import numpy as np
from sentence_transformers import SentenceTransformer
import chromadb
import os
# Load the MovieLens dataset
movies = pd.read_csv('tmdb_5000_movies.csv')
credits = pd.read_csv('tmdb_5000_credits.csv')
# Let's take a peek at what we're working with
print(f"Total movies: {len(movies)}")
movies[['title', 'overview', 'genres', 'release_date']].head(2)
--------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment