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 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.
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.
- 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.
- Frontend: Next.js, React, Tailwind CSS
- Backend: Python (FastAPI)
- Icons: Lucide React
- Markdown Rendering: React Markdown
- Clone the repository:
git clone https://github.com/jansigoswami/synapse-ai-tutor.git cd synapse-ai-tutor/synapse - Install frontend dependencies:
npm install
- Start the frontend:
npm run dev
- 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
- Navigate to
synapse-ai-tutor/
├── synapse/
│ ├── src/
│ │ ├── app/ # Frontend React components
│ │ ├── backend/ # FastAPI backend
│ │ └── public/ # Static assets
│ ├── package.json # Frontend dependencies
│ └── ...
├── README.md
└── ...
- 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:8000for full functionality.
https://linktr.ee/jansigoswami
Contributions are welcome! Please open issues or submit pull requests for improvements, bug fixes, or new features.
This project is licensed under the MIT License.
- Developed by jansigoswami
- Powered by Next.js, React, and FastAPI
