RAGBot Starter — An Astra DB and OpenAI chatbot

R
Renaudil y a 2 jours
0

Description

Starter project for creating a chatbot using Astra DB and OpenAI.

npx boilerapp ragbot-starter

文档

RAGBot Starter

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.

Features

  • 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.

Getting Started

Prerequisites

Deployment

Easily deploy your chatbot to Vercel by clicking the button below:

Deploy with Vercel

Configure the Astra DB integration and add your OPENAI_API_KEY environment variable.

Note: Before you deploying to prod, you will want to remove seed script (npm run seed) from the build step.

Local Development

  1. Clone this repository to your local machine.
  2. Install the dependencies by running npm install in your terminal.
  3. Set up the following environment variables in your IDE or .env file:
    • OPENAI_API_KEY: Your API key for OpenAI
    • ASTRA_DB_API_ENDPOINT: Your Astra DB vector database endpoint
    • 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 click Generate Token. (your Application Token begins with AstraCS:...)
    • ASTRA_DB_NAMESPACE: (Optional) The existing Astra Namespace/Keyspace in a vector-enabled DB
  4. Populate your database with sample data by running npm run seed in your terminal.

Running the Project

To start the development server, run npm run dev in your terminal. Open http://localhost:3000 to view the chatbot in your browser.

Prix

Gratuit

FREE

评论 (0)

常见问题

常见问题解答 (FAQ)

有问题?我们有答案。如果您找不到想要的答案,请随时联络我们。

Boilerapp 是一个专门用于分享 Boilerplates、入门套件(Starter Kits)和项目模版的开发者社区平台。我们的目标很简单:为您节省初始配置(Setup)的时间,让您可以专注于真正重要的代码。无论您是在寻找简单的代码库还是完整的 SaaS 项目,都能在这里找到。

还有其他问题?

我们的团队随时为您提供帮助。联络我们,我们将尽快回复。