Hey everyone! ๐
Iโm excited to share something weโve been working on for a while: Prompt Inspector ๐ต๏ธโโ๏ธ โ a browser-like inspect tool for debugging and understanding your prompts for large language models (LLMs). ๐งโ๐ป
๐ง Why we Built This
A few months ago, we were deep into a project that analyzed GitHub repos using LLMs. Our prompts were getting longer and more complex, and we kept running into the same problem:
๐ค Which part of my prompt was actually influencing the output?
It felt like we were flying blind, tweaking random lines and hoping for the best. It reminded me of the early days of web development-before browser devtools made debugging HTML and CSS so much easier. ๐ธ๏ธ
Thatโs when it hit us:
๐ก Why isnโt there an โInspect Elementโ for prompts?
๐ ๏ธ What Is Prompt Inspector?
Prompt Inspector is our answer to that question. Think of it as the โbrowser inspect tabโ for AI prompts:
- Paste your prompt on one side. โ๏ธ
- See the LLMโs output on the other. ๐
- Click on any part of the output to instantly highlight the section of your prompt that influenced it. ๐ฏ
- Visualize and debug your prompts with clarity. ๐ผ๏ธ
Itโs a simple idea, but itโs already saved us hours of guesswork. โณ
โ๏ธ How Does It Work?
This version is a quick and dirty prototype that runs another LLM check on top of the output (we are currently experimenting with attention maps and looking into more rigorous methods like Integrated Gradients to improve accuracy) to map output tokens back to their prompt origins.
You get a visual, interactive way to see how your instructions shape the modelโs response. ๐
- Open Source: We are planning to open source Prompt Inspector soon. I want the communityโs help to make it even better! ๐
- Selective Output Editing: I often wish I could tweak just one part of the output while keeping the rest unchanged. This feature is on my roadmap. โ๏ธ
- Better Attribution: We are exploring advanced attribution methods for more accurate mappings. ๐งฌ
- Your Ideas: Iโd love to hear how youโd use this tool, what features youโd want, and any feedback or naming ideas you have. ๐ฌ
๐งช Try It Out
Here's the live demo and I'll share the repo link soon (lemme know in the comments if you'd like a sneak peek into the current repo). ๐
Prompt engineering is becoming a core skill for anyone working with AI. But right now, itโs a lot of trial and error. I hope Prompt Inspector makes it a little less mysterious-and a lot more fun. ๐
If youโve ever wished you could โinspectโ your prompts like you inspect web pages, this one's for you and it's free to use. ๐
Stay tuned for the open source release!
Iโd love your feedback, feature requests, and thoughts in the comments. ๐ก
Thanks for reading, and happy proompting! ๐
Top comments (0)