Skip to content

🧠 CognitAI — Next-Generation AI-Powered Cognitive Assistant Platform Revolutionizing human–AI interaction with intelligent, context-aware conversations. Built using React, Node.js, MongoDB, and OpenAI GPT-4, CognitAI learns, adapts, and personalizes every response to enhance productivity and decision-making.

Notifications You must be signed in to change notification settings

VAMSHIYADAV46/Cognit-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

🧠 CognitAI

Next-Generation AI-Powered Cognitive Assistant Platform

GitHub Repo Size GitHub Stars Last Commit Issues License

React Node.js MongoDB OpenAI

Live DemoDocumentationReport BugRequest Feature


🚀 Introduction

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.

💡 The Problem

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.

Our Solution

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.

🎯 What Makes CognitAI Unique

  • 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

Features

🎨 User Experience

  • 💬 Real-time Chat Interface - Seamless conversation flow
  • 📝 Markdown Support - Rich text formatting
  • 🎭 Multiple Personas - Switch between AI personalities
  • 📱 Responsive Design - Works on all devices
  • 🌗 Dark/Light Mode - Eye-friendly themes

🛠️ Technical Capabilities

  • 🧠 Context-Aware AI - Understands conversation history
  • Fast Response Time - Optimized API calls
  • 🔐 Secure Sessions - Protected user data
  • 📊 Analytics Dashboard - Track usage metrics
  • 🔌 Plugin System - Extend functionality

🏗️ System Architecture

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
Loading

🛠️ Tech Stack

Category Technology Description
Frontend React Component-based UI library
Styling Tailwind CSS Utility-first CSS framework
Backend Node.js JavaScript runtime
Framework Express Web application framework
Database MongoDB NoSQL database
AI/ML OpenAI GPT-4 language model
Auth JWT JSON Web Tokens
Testing Jest Testing framework

📦 Installation & Setup

Prerequisites

  • Node.js 18.x or higher
  • MongoDB 6.0 or higher
  • npm or yarn package manager
  • OpenAI API key

1️⃣ Clone the Repository

git clone https://github.com/VAMSHIYADAV46/CognitAI.git
cd CognitAI

2️⃣ Backend Setup

# Navigate to backend directory
cd backend

# Install dependencies
npm install

# Create environment variables
cp .env.example .env

# Configure your .env file
nano .env

Environment 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

3️⃣ Frontend Setup

# 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 start

4️⃣ Access the Application

Open your browser and navigate to:

  • Frontend: http://localhost:3000
  • Backend API: http://localhost:5000/api

💻 Usage

Getting Started

  1. Sign Up/Login: Create an account or use demo credentials
  2. Start Chatting: Type your message in the input field
  3. Explore Features: Try different prompts and commands

Example Interactions

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

🗺️ Roadmap

Phase 1: Foundation

  • Basic chat interface
  • OpenAI integration
  • MongoDB setup
  • Session management

Phase 2: Enhancement 🚧

  • User authentication system
  • Chat history persistence
  • Dark mode toggle
  • Export conversations
  • Search functionality

Phase 3: Advanced Features 📋

  • Multi-model support (Claude, Gemini, LLaMA)
  • Voice input/output
  • File upload and analysis
  • Custom AI personas
  • Collaborative sessions

Phase 4: Enterprise 🎯

  • Admin dashboard
  • Usage analytics
  • Team workspaces
  • API rate limiting
  • Webhook integrations

Phase 5: Deployment 🚀

  • Docker containerization
  • Kubernetes orchestration
  • CI/CD pipeline
  • Cloud deployment (AWS/GCP/Azure)
  • Performance monitoring

🤝 Contributing

We welcome contributions from the community! Here's how you can help:

Development Workflow

  1. Fork the Repository

    git clone https://github.com/YOUR_USERNAME/CognitAI.git
  2. Create Feature Branch

    git checkout -b feature/AmazingFeature
  3. Make Your Changes

    • Write clean, documented code
    • Follow existing code style
    • Add tests for new features
  4. Commit Changes

    git add .
    git commit -m "✨ Add AmazingFeature"
  5. Push to Branch

    git push origin feature/AmazingFeature
  6. Open Pull Request

    • Provide clear description
    • Reference related issues
    • Include screenshots if applicable

Commit Convention

  • :sparkles: New features
  • 🐛 :bug: Bug fixes
  • 📚 :books: Documentation
  • 🎨 :art: Code style
  • :zap: Performance
  • 🔧 :wrench: Configuration

📄 License

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...

🙏 Acknowledgements

Special Thanks To:

Inspirations:

  • ChatGPT - Conversational AI interface
  • Notion AI - Productivity enhancements
  • GitHub Copilot - Developer assistance

👨‍💻 Author

Mekala Vamshi Yadav

GitHub LinkedIn Portfolio


🔗 Project Links


⭐ Star this repository if you find it helpful!

Made with ❤️ by Mekala Vamshi Yadav

About

🧠 CognitAI — Next-Generation AI-Powered Cognitive Assistant Platform Revolutionizing human–AI interaction with intelligent, context-aware conversations. Built using React, Node.js, MongoDB, and OpenAI GPT-4, CognitAI learns, adapts, and personalizes every response to enhance productivity and decision-making.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published