Skip to content

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

Closed
nafisa404 wants to merge 1 commit intosugarlabs:masterfrom
nafisa404:feat/ai-debugger
Closed

Feat: Add AI-powered debugger backend and chatbot UI #4685
nafisa404 wants to merge 1 commit intosugarlabs:masterfrom
nafisa404:feat/ai-debugger

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

@github-actions
Copy link
Contributor

✅ 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

@github-actions
Copy link
Contributor

✅ 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
@github-actions
Copy link
Contributor

This pull request has been open for more than 60 days without any activity. It will be closed in 3 days unless the stale label is removed or commented on.

@github-actions github-actions bot added the Stale label Jul 19, 2025
@github-actions
Copy link
Contributor

Closed pull request due to inactivity for more than 63 days.

@github-actions github-actions bot closed this Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant