This is a simple UI for searching vectors in MongoDB. It uses the MongoDB Vector Search API to search for vectors in a collection.
Configure and run the server in the /server folder and the UI in the /ui folder. You can enter a string to search. The code will convert the string to a vector and search for the closest vectors in the collection.
- Clone this repository
- Run
npm install - Copy
.env.exampleto.envand fill in the values in the/serverfolder - Run
npm run dev --workspace=serverandnpm run dev --workspace=ui - Go to
http://localhost:3000in your browser
For now running
npm run dev --workspacesdoes not run both apps at the same time. You will need to run them in separate terminals.
