Skip to content

Fixes issue #647 - Integrate the AI Assistant into eSim 2.6 with inst… - #654

Open
apoorvashiiii wants to merge 3 commits into
FOSSEE:masterfrom
apoorvashiiii:improve-ai-chatbot
Open

apoorvashiiii wants to merge 3 commits into
FOSSEE:masterfrom
apoorvashiiii:improve-ai-chatbot

Conversation

@apoorvashiiii

@apoorvashiiii apoorvashiiii commented Nov 11, 2026 •

Copy link
Copy Markdown

eSim AI Assistant & Circuit Debugging Upgrades (Fixes #647)

Summary of Core Features Added:

  1. Autonomous Netlist Error Resolution Loop (NgspiceWidget.py)

    • Intercepts Ngspice simulation failures using a background AutoFixThread (QThread).
    • Streams repair status (Attempt X/3) to the terminal UI while patching SPICE netlists using local Ollama models.
  2. KiCad Schematic Canvas Annotations (schematic_annotator.py)

    • Parses .kicad_sch S-expressions to extract (at X Y R) coordinate pairs for faulty components.
    • Injects temporary graphic warning markers (⚠️ AI: ...) on the Notes layer and wipes them clean once simulation converges.
  3. GraphRAG Circuit Topology Engine (graph_rag.py)

    • Implements a NetworkX directed knowledge graph of component pinouts, subcircuit dependencies, and hardware constraints (e.g., LM741 dual-rail power rules, BJT base resistor requirements).
    • Injects structural circuit rules directly into the LLM prompt context to eliminate hallucinated SPICE syntax.

Verification

  • 112 unit tests passing cleanly (python -m unittest discover -s src/chatbot/tests).

Chittalasailu and others added 3 commits October 5, 2026 12:02
…h installer support

- Port the chat window to PyQt6 and dock it in the main window.
- Add "Analyze Project Netlist" to the project right-click menu.
- Save the ngspice log of a failed simulation and send it to the assistant.
- Add an optional AI Assistant step to the Ubuntu and Windows installers.
- Add user and developer documentation and tests.
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.

Integrate the AI Assistant (chatbot) into eSim 2.6 with installer support

2 participants