A web app that leverages LLMs through Langchain.
Pre prompt your bots and integrate them with messaging platforms such us Discord and Slack.
Node v18.16.0
npm 9.5.1
Run nvm use
to use the correct node version.
(Follow the examples in the .env.example files)
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
Install dependencies
npm install
Prisma schema migration
npm run prisma:migrate
Prisma generate client
npm run prisma:generate
Build shared types
npm run shared:build
Start backend server in development mode
npm run start:backend:dev
Start frontend server in development mode
npm run start:frontend:dev
Build the image locally
docker build -t cogniverse-frontend . -f frontend.Dockerfile
docker build -t cogniverse-backend . -f backend.Dockerfile