A modern, full-stack knowledge-sharing platform integrating an LLM (Large Language Model) backend for advanced text processing. This platform serves as a centralized hub for employees to share and access knowledge across the company.
- React.js
- Next.js (API routes, Server-Side Rendering)
- NextAuth.js (OAuth, email, social logins)
- PostgreSQL (Relational database)
- Prisma (Type-safe ORM for database management)
- Node.js (LLM processing)
- Qdrant (Vector database for embeddings)
- text-embedding-004 (Embedding model)
- LLM Model: gemini-1.5-flash (LLM for text generation)
- PostgreSQL & Prisma (LLM metadata storage)
- Node.js (v16+)
- npm/yarn
- PostgreSQL
- Qdrant account or local instance
-
Clone the repository:
git clone https://github.com/yourusername/your-project.git cd your-project -
Install dependencies:
npm install --force
-
Create a
.envfile and configure credentials:NODE_ENV="development" NEXT_PUBLIC_APP_URL="https://localhost:3000" DATABASE_URL="your_database_url" NEXTAUTH_SECRET="your_secret_key"
-
Ensure PostgreSQL is running and update the
DATABASE_URLaccordingly. -
Run the following Prisma commands:
npx prisma format npx prisma generate npx prisma db push
-
Start the development server:
npm run dev
-
Access the app at http://localhost:3000.
The project is deployed on Vercel for easy access. Follow these steps for deployment:
- Ensure the
.envvariables are configured correctly for production. - Push your code to your repository, and Vercel will automatically deploy the latest version.
Feel free to contribute to this project or report any issues!