Skip to content

jansigoswami/synapse-ai-tutor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Synapse AI Tutor

Synapse AI Tutor Banner

🤖 Cerebras Integration

This project leverages the power of the Cerebras AI platform and Meta Llama 4 to deliver advanced natural language processing capabilities. The backend connects to a Cerebras model endpoint, which is configured to use the Meta Llama 4 large language model, to generate high-quality, context-aware responses for coding questions and tutoring sessions. By utilizing Cerebras and Meta Llama 4, Synapse AI Tutor benefits from:

  • State-of-the-art AI models (Meta Llama 4) for code understanding and generation
  • Scalable inference for real-time chat interactions
  • Efficient deployment of large language models for educational use cases

Meta Llama 4

Meta Llama 4 is a cutting-edge large language model developed by Meta, known for its strong performance in code generation, reasoning, and natural language understanding. In this project, the backend is configured to use Meta Llama 4 via the Cerebras API, ensuring that all chat responses and code explanations are generated by this advanced model. This allows Synapse AI Tutor to provide:

  • Highly relevant and accurate coding assistance
  • Natural, conversational interactions
  • Support for a wide range of programming topics and languages

The integration is handled in the backend (see synapse/src/backend/main.py), where user messages are sent to the Cerebras API (with Meta Llama 4 as the underlying model), and the AI-generated responses are returned to the frontend chat interface.


🚀 Overview

Synapse AI Tutor is an interactive, AI-powered coding tutor designed to help users learn programming languages in a personalized and engaging way. Built with Next.js and React, Synapse provides a chat-based interface where users can ask questions, receive code explanations, and practice coding in real time.


✨ Features

  • Conversational AI Chat: Ask coding questions and get instant, clear answers.
  • Typing Animation: Realistic assistant responses with smooth typing effects.
  • Multi-Language Support: Choose your preferred programming language to learn.
  • Session Customization: Set your learning duration and hours for a tailored experience.
  • Modern UI: Clean, responsive, and visually appealing interface.
  • Markdown & Syntax Highlighting: Code and explanations are beautifully formatted.

🖥️ Tech Stack

  • Frontend: Next.js, React, Tailwind CSS
  • Backend: Python (FastAPI)
  • Icons: Lucide React
  • Markdown Rendering: React Markdown

📦 Installation

  1. Clone the repository:
    git clone https://github.com/jansigoswami/synapse-ai-tutor.git
    cd synapse-ai-tutor/synapse
  2. Install frontend dependencies:
    npm install
  3. Start the frontend:
    npm run dev
  4. Set up the backend:
    • Navigate to synapse/src/backend
    • Install Python dependencies:
      pip install -r requirements.txt
    • Start the backend server:
      uvicorn main:app --reload --port 8000

🛠️ Project Structure

synapse-ai-tutor/
├── synapse/
│   ├── src/
│   │   ├── app/           # Frontend React components
│   │   ├── backend/       # FastAPI backend
│   │   └── public/        # Static assets
│   ├── package.json       # Frontend dependencies
│   └── ...
├── README.md
└── ...

🤖 Usage

  • Open the app in your browser at http://localhost:3000.
  • Start chatting with Synapse to learn and practice coding.
  • Make sure the backend server is running at http://localhost:8000 for full functionality.

🌿Connect with me -

https://linktr.ee/jansigoswami

📷 Screenshots


🙌 Contributing

Contributions are welcome! Please open issues or submit pull requests for improvements, bug fixes, or new features.


📄 License

This project is licensed under the MIT License.


💡 Credits

  • Developed by jansigoswami
  • Powered by Next.js, React, and FastAPI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors