Skip to content

Feat: Add AI-powered debugger backend and chatbot UI #4685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nafisa404
Copy link

This PR adds the first version of the AI-powered debugger as described in issue #4538.

What’s Included:

  • main.py: FastAPI backend using a local language model (tiny-gpt2)
  • /query endpoint: accepts user questions and returns AI-generated answers
  • chatbot.html: Simple web-based chatbot interface for testing

How It Works:

  • Run main.py with uvicorn
  • Open chatbot.html in browser
  • Type a Music Blocks-related question
  • The assistant returns a basic AI-generated answer

This sets up the foundation for future enhancements like:

  • Retrieval-augmented generation (RAG)
  • Better block context
  • Inline assistant inside the Music Blocks UI

Copy link

✅ All Jest tests passed! This PR is ready to merge.

@nafisa404
Copy link
Author

nafisa404 commented May 10, 2025

Hi @walterbender @sum2it @pikurasa

I've completed the initial implementation of the AI-powered debugger as outlined in issue #4538.

What I’ve built:

  • A FastAPI backend (main.py) that serves a basic LLM (using tiny-gpt2 for now)
  • A simple web-based chatbot (chatbot.html) that connects to the backend
  • The /query endpoint responds to Music Blocks-related questions

How to test:

  1. Run the FastAPI server using uvicorn main:app --reload
  2. Open chatbot.html in a browser
  3. Ask a Music Blocks question — the AI responds instantly!

This is a minimal MVP designed to be expanded with:

  • Retrieval-Augmented Generation (RAG)
  • Better document context indexing
  • UI integration inside the Music Blocks editor

Let me know what you think, and I’d love feedback on how you'd like this assistant to evolve further

Copy link

✅ All Jest tests passed! This PR is ready to merge.

@nafisa404 nafisa404 changed the title Feat: Add AI-powered debugger backend and chatbot UI Feat/ai debugger Feat: Add AI-powered debugger backend and chatbot UI May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant