Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSA Mentor Backend

A Node.js backend for DSA mentoring using AI models from Google Gemini, Groq, Mistral, and AWS.

Setup

  1. Install dependencies: npm install
  2. Create a .env file with your API keys:
    GOOGLE_API_KEY=your_google_api_key
    GROQ_API_KEY=your_groq_api_key
    MISTRAL_API_KEY=your_mistral_api_key
    AWS_ACCESS_KEY_ID=your_aws_access_key_id
    AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key
    AWS_REGION=us-east-1
    PORT=3000
    
  3. Start the server: npm start

API

POST /api/analyze

Analyzes DSA stats using the selected AI model.

Request Body:

{
  "stats": "your stats data here",
  "modelChoice": "brain" // brain, speed, logic, or expert
}

Response:

{
  "message": "Analysis report..."
}

Models

  • brain: Gemini-3-flash (Adaptive Thinking for massive datasets)
  • speed: Llama-3.3-70b-versatile (300+ tokens/sec)
  • logic: Mistral-small-3.2 (Perfect instruction-following for coding)
  • expert: Amazon Nova Pro (Complex reasoning and AWS integration)

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages