Skip to content

enelene/Jipitauri

 
 

Repository files navigation

Jipitauri - Based on GPT-3

Logo

example1 example2

Preview

sample-conversation


QuickStart

ENVIRONMENT SETUP

Follow env_example files at ./api/env_example and ./client/env_example

🔖 The project can work with any data source which is supported by Prisma.

📌 To proceed with a database other than MongoDB, some config modifications to schema.prisma file are needed.

  • E.g. to support MySQL, schema.prisma should look like this:
generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "mysql"
  url      = env("DATABASE_URL")
}

model Prompt {
  id        BigInt   @id @default(autoincrement()) @db.UnsignedBigInt
  sessionId String 
  input     String
  input_en  String
  output    String
  output_ge String
  summary   String
  createdAt DateTime @map("createdAt") @default(now())
  updatedAt DateTime @map("updatedAt") @updatedAt
}

model Feedback {
  id        BigInt   @id @default(autoincrement()) @db.UnsignedBigInt
  message   String
  value     String
  createdAt DateTime @map("createdAt") @default(now())
  updatedAt DateTime @map("updatedAt") @updatedAt
}

🔖 Meanwhile, we use MongoDB as our database provider because of its simplicity.


1. Navigate to `/api` folder
2. Install dependencies
   `pnpm i`
3. Prepare .env file
   Copy env_example file and create .env with your credentials
4. Run the app
   `npm start`
5. Navigate to `/client` folder
6. Install dependencies
   `pnpm i`
7. Prepare .env file
   Copy env_example file and create .env with your credentials
8. Run the app
   `npm start`

Or simply

Set up the environment then run 🐳 docker-compose up ...

About

Georgian chat bot based on GPT-3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 78.8%
  • CSS 12.4%
  • HTML 5.9%
  • JavaScript 2.3%
  • Dockerfile 0.6%