Hands-On Application: Movie Recommendation Service
Walk through a movie recommendation application that uses Redis as a vector database.
We'll cover the following...
Let's learn how to use vector search in Redis to build a simple yet practical application. We will walk through how to implement a service that provides movie recommendations based on user-provided search criteria. This will be split into three important steps, which will be executed in order:
Create a search index.
Load the data into the index.
Use the movie recommendation service.
Below is the high-level architecture of the solution. In response to a user query for movie recommendations, the application executes a similarity search in Redis. The movie data is converted into vector embeddings and loaded into the database as a separate process.
Set up managed Redis service
Create a Redis Cloud account and a free database.
From the "Configuration" details for the new database, in the "General" section, copy the "Public endpoint" of the database.
Note down the endpoint because it will be used in subsequent steps.
From the "Configuration" details for the new database, get the password for the default user.
Note down the password because it will be used in subsequent steps.
Create search index
The search index will be used to execute vector searches across movies. This is specifically for Redis JSON since that's the data structure that will be used to store each movie's information. ...