Skip to content

jgillenwater/astra-db-chatbot-starter

 
 

Repository files navigation

Astra DB Chatbot Starter

Getting Started with Vercel

  1. Create or sign in to your Astra DB account.

  2. Create a vector database. Store the database id, region and namespace, and token for later.

  3. Create or sign in to your OpenAI account. Store your OpenAI key for later.

  4. Click to deploy the app to Vercel: Deploy with Vercel.

    Set your environment variables to the values created in steps 1 and 3.

Setting up your database and seeding with data

  1. 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
  1. Install Python dependencies:
pip install -r requirements.txt
  1. Run the collection creation script:
python populate_db/create_collection.py
  1. Run the data loading script:
python populate_db/load_data.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 49.4%
  • TypeScript 28.8%
  • CSS 16.3%
  • JavaScript 5.5%