This project is a starter for creating a chatbot using Astra DB and OpenAI. It's designed to be easy to deploy and use, with a focus on performance and usability.
npm install
in your terminal..env
file:ASTRA_DB_NAMESPACE
: The existing Astra Namespace/Keyspace in a vector-enabled DBOPENAI_API_KEY
: Your API key for OpenAIASTRA_DB_ID
: Your Astra DB vector database idASTRA_DB_REGION
: Your Astra DB database regionASTRA_DB_APPLICATION_TOKEN
: The generated app token for your Astra databaseConnect
tab and click Generate Token
. (your Application Token begins with AstraCS:...
)npm run seed
in your terminal.To start the development server, run npm run dev
in your terminal. Open http://localhost:3000 to view the chatbot in your browser.
You can easily deploy your chatbot to Vercel by clicking the button below:
Remember to set your environment variables to the values obtained when setting up your Astra DB and OpenAI accounts.
Note: Before you deploying to prod, you will want to remove seed script (npm run seed
) from the build step.
Starter project for creating a chatbot using Astra DB and OpenAI.
This project is a starter for creating a chatbot using Astra DB and OpenAI. It's designed to be easy to deploy and use, with a focus on performance and usability.
npm install
in your terminal..env
file:ASTRA_DB_NAMESPACE
: The existing Astra Namespace/Keyspace in a vector-enabled DBOPENAI_API_KEY
: Your API key for OpenAIASTRA_DB_ID
: Your Astra DB vector database idASTRA_DB_REGION
: Your Astra DB database regionASTRA_DB_APPLICATION_TOKEN
: The generated app token for your Astra databaseConnect
tab and click Generate Token
. (your Application Token begins with AstraCS:...
)npm run seed
in your terminal.To start the development server, run npm run dev
in your terminal. Open http://localhost:3000 to view the chatbot in your browser.
You can easily deploy your chatbot to Vercel by clicking the button below:
Remember to set your environment variables to the values obtained when setting up your Astra DB and OpenAI accounts.
Note: Before you deploying to prod, you will want to remove seed script (npm run seed
) from the build step.