Aplikasi Web yang memanfaatkan LLMS melalui Langchain.
Pra -tingkatkan bot Anda dan berintegrasi dengan platform pesan seperti itu perselisihan dan kendur.
Node v18.16.0
npm 9.5.1
Run nvm use to use the correct node version.
(Ikuti contoh di file .env.example)
Create a .env file in /packages/backend/prisma with the following variables: (follow the example in .env.example)
DATABASE_URL denoting the database connection string Create a .env.local file in /packages/backend with the following variables:
PORT The port on which the backend server will runALLOWED_DOMAINS The allowed domains for CORSJWT_SECRET The secret used to sign JWT tokens OPEN_AI_API_KEY Your organization's openAI api key PINECONE_API_KEY Your Pinecone api keyPINECONE_INDEX Your Pinecone index namePINECONE_ENVIRONMENT Your Pinecone environment name GITHUB_OAUTH_CLIENT_SECRET Github oauth client secret
GITHUB_OAUTH_CLIENT_ID Github oauth client id
DISCORD_OAUTH_CLIENT_SECRET The client secret for discord oauth
DISCORD_OAUTH_CLIENT_ID The client id for discord oauth
DISCORD_OAUTH_REDIRECT_URI The redirect uri for discord oauth
DISCORD_BOT_TOKEN Your discord bot token
SLACK_BOT_TOKEN Your slack bot token
SLACK_SIGNING_SECRET Your slack signing secret
Create a .env.local file in /packages/frontend with the following variables:
NEXT_PUBLIC_BACKEND_API The backend api url (Port included if applicable)NEXT_PUBLIC_GITHUB_OAUTH_CLIENT_ID GITHUB OAUTH CLIENT IDNEXT_PUBLIC_DISCORD_OAUTH_CLIENT_ID DISCORD OAUTH CLIENT IDNEXT_PUBLIC_DISCORD_OAUTH_URL DISCORD OAUTH URL Instal dependensi
npm install
Migrasi skema prisma
npm run prisma:migrate
Prisma menghasilkan klien
npm run prisma:generate
Membangun jenis bersama
npm run shared:build
Mulai server backend dalam mode pengembangan
npm run start:backend:dev
Mulai Server Frontend dalam Mode Pengembangan
npm run start:frontend:dev
Bangun gambar secara lokal
docker build -t cogniverse-frontend . -f frontend.Dockerfile
docker build -t cogniverse-backend . -f backend.Dockerfile