Create a Weaviate cloud sandbox instance as described in this guide.
Collect the API key
and URL
from the Details
tab in Weaviate Cloud (WCD).
- your OpenAI API key as
OPENAI_APIKEY
(you can get this in your OpenAI platform settings) - your Weaviate API key as
WCD_API_KEY
(you can get this in your Weaviate dashboard under sandbox details) - your Weaviate host URL as
WCD_URL
(you can get this in your Weaviate dashboard under sandbox details)
To start the Weaviate instance, run the following command using the docker-compose.yml
file.
docker compose up -d
Before you can import data, add any images in the
public/images
folder.
To install all project dependencies, run:
npm i
To import your data into Weaviate and initialize a collection, run the following:
npm run import
Ensure your Weaviate instance runs with imported data before starting your web app.
To run the web app:
npm run dev
Open http://localhost:3000 with your browser to see the result.