In the age of AI, the way that search works has changed. A traditional keyword search that only matches words in the search term is no longer sufficient for modern applications. Instead, let’s take a look at a relatively new method called semantic search , which searches based on meaning rather than keywords.
In this tutorial, you’ll learn how to use MongoDB Vector Search with Mongoose by building a music recommender. You’ll type a description of a “ vibe ,” like “upbeat road trip with the windows down,” and get back a ranked list of songs that fit the feeling. Along the way, you’ll define a Mongoose schema and model for documents with vector embeddings, create a vector search index, and query it with $vectorSearch , using Voyage AI on MongoDB to generate the query embeddings.
This is a follow-up to another music recommender tutorial I posted, which builds the same app with the native MongoDB Node.js Driver. You don’t need to have read it to follow along.…