CognitAI revolutionizes human-AI interaction by delivering an intelligent, context-aware assistant that understands, learns, and adapts to your unique needs. Built with cutting-edge technologies and a modern full-stack architecture, CognitAI bridges the gap between artificial intelligence and practical productivity.
Traditional AI assistants lack contextual understanding, struggle with complex queries, and fail to maintain coherent long-form conversations. Users need a smarter, more intuitive solution that truly understands their intent and delivers actionable insights.
CognitAI leverages state-of-the-art language models combined with intelligent session management and a responsive, user-friendly interface to create meaningful AI interactions that boost productivity and enhance decision-making.
- Persistent Context Memory: Maintains conversation history across sessions
- Adaptive Intelligence: Learns from user interactions to provide personalized responses
- Modular Architecture: Easily extensible with plugins and custom AI models
- Enterprise-Ready: Scalable backend with robust error handling and session management
- Beautiful UX: Clean, modern interface with Markdown rendering and responsive design
|
|
graph TB
subgraph "Frontend Layer"
A[React.js App] --> B[UI Components]
B --> C[State Management]
end
subgraph "API Gateway"
D[Express.js Server] --> E[Route Handlers]
E --> F[Middleware]
end
subgraph "AI Core"
G[OpenAI Integration] --> H[Context Manager]
H --> I[Response Generator]
end
subgraph "Data Layer"
J[MongoDB] --> K[User Sessions]
K --> L[Chat History]
end
A -->|HTTP/WebSocket| D
D -->|API Calls| G
G -->|Query/Store| J
style A fill:#61dafb,stroke:#000,stroke-width:2px
style D fill:#68a063,stroke:#000,stroke-width:2px
style G fill:#412991,stroke:#fff,stroke-width:2px
style J fill:#4db33d,stroke:#000,stroke-width:2px
- Node.js 18.x or higher
- MongoDB 6.0 or higher
- npm or yarn package manager
- OpenAI API key
git clone https://github.com/VAMSHIYADAV46/CognitAI.git
cd CognitAI# Navigate to backend directory
cd backend
# Install dependencies
npm install
# Create environment variables
cp .env.example .env
# Configure your .env file
nano .envEnvironment Variables (.env):
# Server Configuration
PORT=5000
NODE_ENV=development
# Database
MONGODB_URI=mongodb://localhost:27017/cognitai
DB_NAME=cognitai
# OpenAI API
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_MODEL=gpt-4
# Session
SESSION_SECRET=your_session_secret_here
JWT_SECRET=your_jwt_secret_here
# CORS
FRONTEND_URL=http://localhost:3000# Start MongoDB service
sudo systemctl start mongodb
# Run backend server
npm run dev# Open new terminal and navigate to frontend
cd ../frontend
# Install dependencies
npm install
# Create environment variables
cp .env.example .env
# Configure frontend .env
REACT_APP_API_URL=http://localhost:5000/api
# Start development server
npm startOpen your browser and navigate to:
- Frontend:
http://localhost:3000 - Backend API:
http://localhost:5000/api
- Sign Up/Login: Create an account or use demo credentials
- Start Chatting: Type your message in the input field
- Explore Features: Try different prompts and commands
User: "Help me write a Python function to calculate fibonacci numbers"
CognitAI: Here's an efficient Python function for calculating Fibonacci numbers:
```python
def fibonacci(n):
if n <= 1:
return n
a, b = 0, 1
for _ in range(2, n + 1):
a, b = b, a + b
return b- Basic chat interface
- OpenAI integration
- MongoDB setup
- Session management
- User authentication system
- Chat history persistence
- Dark mode toggle
- Export conversations
- Search functionality
- Multi-model support (Claude, Gemini, LLaMA)
- Voice input/output
- File upload and analysis
- Custom AI personas
- Collaborative sessions
- Admin dashboard
- Usage analytics
- Team workspaces
- API rate limiting
- Webhook integrations
- Docker containerization
- Kubernetes orchestration
- CI/CD pipeline
- Cloud deployment (AWS/GCP/Azure)
- Performance monitoring
We welcome contributions from the community! Here's how you can help:
-
Fork the Repository
git clone https://github.com/YOUR_USERNAME/CognitAI.git
-
Create Feature Branch
git checkout -b feature/AmazingFeature
-
Make Your Changes
- Write clean, documented code
- Follow existing code style
- Add tests for new features
-
Commit Changes
git add . git commit -m "✨ Add AmazingFeature"
-
Push to Branch
git push origin feature/AmazingFeature
-
Open Pull Request
- Provide clear description
- Reference related issues
- Include screenshots if applicable
- ✨
:sparkles:New features - 🐛
:bug:Bug fixes - 📚
:books:Documentation - 🎨
:art:Code style - ⚡
:zap:Performance - 🔧
:wrench:Configuration
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License
Copyright (c) 2024 Mekala Vamshi Yadav
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction...
-
🤖 OpenAI - For GPT-4 API
-
⚡ Groq - For Groq LLM
-
⚛️ React Team - For the amazing framework
-
🟢 Node.js Community - For the runtime
-
🍃 MongoDB Team - For the database
-
🎨 Tailwind CSS - For styling utilities
-
💎 All contributors and supporters
- ChatGPT - Conversational AI interface
- Notion AI - Productivity enhancements
- GitHub Copilot - Developer assistance
- 🌐 Repository: https://github.com/VAMSHIYADAV46/CognitAI
- 📖 Documentation: https://github.com/VAMSHIYADAV46/CognitAI/wiki
- 🐛 Issue Tracker: https://github.com/VAMSHIYADAV46/CognitAI/issues
- 💬 Discussions: https://github.com/VAMSHIYADAV46/CognitAI/discussions
⭐ Star this repository if you find it helpful!
Made with ❤️ by Mekala Vamshi Yadav