...
/Storing Audio and Metadata Embeddings to Vector Database
Storing Audio and Metadata Embeddings to Vector Database
Learn to store the embeddings we generated for our music dataset in the vector database.
We’ll use Chroma DB to store our embeddings. Let’s jump right in.
Create a chroma client
First, we import chromadb
and initialize a persistent Chroma client. This setup ensures that the database is saved and loaded on our local machine, with data being automatically persisted and reloaded upon startup if it exists.
Press + to interact
import chromadbclient = chromadb.PersistentClient(path="/usr/local/musicRecommendationSystemDir/database")