Menu

Build a Music Recommender With Mongoose and MongoDB Vector Search
📰

Build a Music Recommender With Mongoose and MongoDB Vector Search

DEV Community: mongodb·Jordan Smith·4 days ago
#bXxwdLGp
#devtomongodb#devto#dev#search#mongoose
Long article (5996 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.