r/PythonProjects2 • u/Hellothere7997 • May 08 '26
Info Update on my local JARVIS assistant: Scrapped JSON for SQLite, added a Plugin system, and fixed TTS crashes. (v1.2.0)
Hey guys,
A while ago, I shared my local JARVIS assistant built on top of Ollama and PyQt6. Thanks to your feedback, I realized the initial MVP architecture wasn't going to scale, especially the memory handling.
I just pushed **v1.2.0**, which is basically a complete rewrite of the core handling systems.
**What changed:**
- **SQLite replaced JSON:** As the context grew, flat JSON files became a bottleneck. I migrated the entire short-term history and long-term facts database to SQLite. The tool calling `consultar_memoria` is now instantly querying the `.db`.
- **Plugin Architecture:** You no longer need to edit the main `jarvis.pyw` file to add tools. I built a plugin manager—just drop a `.py` script in the plugins folder, and it dynamically injects its tools into the LLM's system prompt.
- **Piper TTS RegEx filter:** Piper kept crashing (Error 0) when the LLM decided to pull raw phonetic IPA text from Wikipedia searches. I added a 6-stage RegEx pipeline to strip phonetics, brackets, and emojis before synthesis.
- **UI Tweaks:** Added a custom QPainter audio visualizer that syncs with the TTS, and fixed the text wrapping/alignment issues on the PyQt6 transparent window.
Thanks to everyone who gave feedback on the first version. If anyone wants to write a custom plugin or review the new DB implementation, the repo is open!
🔗 **GitHub Repo:** https://github.com/Jm7997/JARVIS
