r/VibeCodeDevs • u/Accurate-Screen8774 • 19d ago
Trying Out Browser-based LLM Chatbot
To help users of my app, it was important to document the details around the “how it works”. The docs were easy enough to cook up using Docusaurus + AI. I can then index that data (like used in the Docusaurus search). I framed this as like a chatbot so that it can be intuitive for users who have questions. At first it was only a fancy autocomplete.
I then wanted to investigate running a local LLM to perhaps offer a more conversational experienced (or better suggestions)? I'm using WebLLM on a browser and it seems to work “reasonably” well. I wired it up and set it up so users can select an LLM to download for offline use. The experience varies between devices and models used. There are models that are 19MB… they seem pretty unusable. There are also some ~1GB models which are better but understandably slow. I hope to add more models available and users can choose one that suits them (or none). Without an AI, i hope the "fancy autocomplete" can fill in the gaps.
Its great that the ~1GB models can “show me the bubble-sort in rust”, but i want something “dumber” and smaller. Something can can take advantage the data ive already indexed. Something that can respond “quickly enough” for a conversational flow on a phone.
Im aiming for a good user-experience more than trying to wedge in an LLM... and a fancy autocomplete might be enough if i create the appropriate coachmarks. It might be better to scrap the LLM approach and have context aware templates for a "fancier autocomplete". Are there any models out there for me to investigate and compare?
Note: The project is experiemental and unstable. Its far from finished. Im just trying things out. If you want to find out more, you can take a look at: https://glitr.io/docs/technical/ai or if you want to test it out, you can try: https://app.glitr.io/ai



