Created
October 7, 2025 15:55
-
-
Save zseta/8e8a2e6b3d6fd6572b2110063c9db0de to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE KEYSPACE recommend WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor': '3'}; | |
| CREATE TABLE recommend.movies ( | |
| id INT, | |
| release_date TIMESTAMP, | |
| title TEXT, | |
| tagline TEXT, | |
| genre TEXT, | |
| imdb_id TEXT, | |
| poster_url TEXT, | |
| plot TEXT, | |
| plot_embedding VECTOR<FLOAT, 384>, | |
| PRIMARY KEY (id) | |
| ) WITH cdc = {'enabled': 'true'}; | |
| CREATE INDEX IF NOT EXISTS ann_index ON recommend.movies(plot_embedding) | |
| USING 'vector_index' | |
| WITH OPTIONS = { 'similarity_function': 'DOT_PRODUCT' }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment