SwiftieGPT knows Taylor all too well. Ask questions in a clear and concise manner and get back responses based on details from publicly available data on Taylor. From tour dates to song lyrics, learn everything there is to know about the songstress here.
- Astra DB Integration: Store and retrieve data from your Astra DB database with ease.
- OpenAI Integration: Leverage the power of OpenAI to generate intelligent responses.
- Easy Deployment: Deploy your chatbot to Vercel with just a few clicks.
- Customizable: Modify and extend the chatbot to suit your needs.
- An Astra DB account. You can create one here.
- An Astra Vector Database
- An OpenAI account and api key create one here
- A Cohere account and api key create one here
- Clone this repository to your local machine.
- Install the dependencies by running
npm install
in your terminal. - Set up the following environment variables in your IDE or
.env
file:OPENAI_API_KEY
: api key for OPENAICOHERE_API_KEY
: api key for COHEREASTRA_DB_ENDPOINT
: Your Astra DB vector database endpoint- Copy from the
Database Detail
- Copy from the
ASTRA_DB_APPLICATION_TOKEN
: The generated app token for your Astra database- To create a new token go to your database's
Connect
tab and clickGenerate Token
. (your Application Token begins withAstraCS:...
)
- To create a new token go to your database's
ASTRA_DB_COLLECTION
: The name of your Astra Collection
To start the development server, run npm run dev
in your terminal. Open http://localhost:3000 to view the chatbot in your browser.