prompt-tower icon indicating copy to clipboard operation
prompt-tower copied to clipboard

Feature idea: Documentation pass-along.

Open arthurwolf opened this issue 1 month ago • 1 comments

In the series of "things I need / would really love to have / would make my life so much easier".

It'd be great to have the following feature:

  1. I can provide a series of matching keywords (regexps?) and blocks of text. The block of text (in my use case, maybe somebody else will do something else with the same feature) is say, a markdown cheat sheet for vuetify (the syntax of the components etc). And the regexp is /vuetify/i .
  2. Now, every time the prompt-tower extension sees "vuetify" in the generated prompt, it "pulls" the vuetify cheat sheet, and adds it to the prompt.
  3. This way, anytime I write a prompt for a project/code that uses vuetify, I'm certain the LLM will have the exact "real" syntax for the components instead of just "inventing" them on the fly (as they still often do for "less well known" projects).

Not only that, but as I generate my "cheat sheets", I'd definitely share them with the project (so others can improve upon them), so you could even have some cheat sheets / documentation matchers "by default" in your project. Or it could be a separate extension that "plugs in" this one ?? Something like that.

This would be extremely useful to me, and I don't think it's too much of a massive effort to implement (at least I think...).

Just an idea :)

arthurwolf avatar May 05 '24 17:05 arthurwolf