-
Create or sign in to your Astra DB account.
-
Create a vector database. Store the database id, region and namespace, and token for later.
-
Create or sign in to your OpenAI account. Store your OpenAI key for later.
-
Click to deploy the app to Vercel: .
Set your environment variables to the values created in steps 1 and 3.
- Navigate to your IDE, set up the following environment variables:
- ASTRA_DB_NAMESPACE=existing Astra Namespace in a vector enabled DB
- OPENAI_API_KEY=api key for OPENAI
- ASTRA_DB_ID=Astra DB database id
- ASTRA_DB_REGION=Astra DB database region
- ASTRA_DB_APPLICATION_TOKEN=Generate app token for Astra database
- Install Python dependencies:
pip install -r requirements.txt
- Run the collection creation script:
python populate_db/create_collection.py
- Run the data loading script:
python populate_db/load_data.py