Skip to content

Latest commit

 

History

History
81 lines (58 loc) · 2.14 KB

README.md

File metadata and controls

81 lines (58 loc) · 2.14 KB

Duck Duck Debug

Duck Duck Debug is an AI-powered debugging assistant designed to make debugging more interactive and intuitive. Inspired by rubber duck debugging, it listens as you verbally walk through your code and provides relevant insights, guiding questions, and code context to help you solve issues and better understand your codebase.

Devpost overview & demo: https://devpost.com/software/duck-duck-debug


Features

  • Voice-Based Debugging: Explain your code out loud, and Duck Duck Debug will analyze and respond.
  • Context-Aware Suggestions: Automatically retrieves relevant code snippets from your codebase to provide useful insights.
  • AI-Driven Guidance: Uses Retrieval-Augmented Generation (RAG) to help you understand and resolve bugs.
  • Speech-to-Text & Text-to-Speech: Converts voice input to text using OpenAI Whisper and responds using ElevenLabs.
  • Animated Debugging Interface: Smooth UI experience built with React.

Tech Stack

  • Machine Learning: BERT (trained on CoNaLa dataset)
  • AI Framework: Retrieval-Augmented Generation (RAG), OpenAI API
  • Speech Processing: Whisper (speech-to-text), ElevenLabs (text-to-speech)
  • Database: MongoDB
  • Backend: Express
  • RAG Microservices: Python
  • Frontend: React
  • APIs & Libraries: LangChain, OpenAI, ElevenLabs

Getting Started

Prerequisites


Installation

Clone the Repository

git clone SSH of Duck_Duck_Debug
cd Duck_Duck_Debug

Set Up Environment Variables

OPENAI_API_KEY=your_openai_api_key
ELEVENLABS_API_KEY=your_elevenlabs_api_key
MONGO_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret_key
PORT=8000

Install Backend and Frontend Dependencies

cd ../backend
pip install -r requirements.txt

cd ../frontend
npm install

Start Backend and Frontend Servers

cd ../backend
node server.js

cd ../backend/rag_services
python3 app.py

cd ../frontend
npm start