This demo is based on the blog post by Benjamin Flast
You can create your own demo in just a few minutes using the install.sh script in the root of this repository.
Everything works on an Atlas Free Tier. No Credit Card needed, free forever
- Clone this repo and go to the directory
git clone https://github.com/phil2211/vector-search-demo && \
cd vector-search-demo
- Go to https://platform.openai.com/api-keys and create your own API key and paste this key to the
openai.keyfile in the root of this project.
echo "your openai api key" > openai.key
- You need the following prerequisits met to follow along
- MongoDB Atlas Account (Free account available, no credit card needed)
- Atlas CLI
- NodeJS
- Realm CLI
I use Homebrew to do this on MacOS. If you don't have Homebrew, please follow the very simple instructions on the Hombrew website to install it. The command below will install all necessary tools at once. If you are using Windows or Linux, see the links above for installation instructions for each component.
brew tap mongodb/brew && \
brew install mongodb-atlas-cli node npm
- Install the Realm CLI
npm install -g mgeneratejs atlas-app-services-cli
- Restart your shell to use it
Now execute the install.sh script to spin up your own free MongoDB Atlas instance. Please wait until the cluster is deployed and the testdata is loaded. PLEASE DO NOT CTRL+C during that process.
After ~5 minutes your browser should start on http://localhost:3000 and you can start asking natural language questions to query the movie database. You can also use MongoDB Compass to connect to your cluster directly to browse the data.
Please feel free to contacte me if you have further questions or feedback to this demo.


