Eine Web -App, die LLMs über Langchain nutzt.
Setzen Sie Ihre Bots vor und integrieren Sie sie in Messaging -Plattformen wie US -Zwietracht und Lack.
Node v18.16.0
npm 9.5.1
Run nvm use to use the correct node version.
(Folgen Sie den Beispielen in den .Env.example -Dateien)
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 Abhängigkeiten installieren
npm install
Prisma -Schema -Migration
npm run prisma:migrate
Prisma erzeugen Kunden
npm run prisma:generate
Gemeinsame Typen erstellen
npm run shared:build
Start Backend Server im Entwicklungsmodus
npm run start:backend:dev
Starten Sie den Frontend Server im Entwicklungsmodus
npm run start:frontend:dev
Bauen Sie das Bild lokal auf
docker build -t cogniverse-frontend . -f frontend.Dockerfile
docker build -t cogniverse-backend . -f backend.Dockerfile