ocdevel / gnothi

Gnothi is an open-source AI journal and toolkit for self-discovery. If you're interested in getting involved, we'd love to hear from you.
https://gnothiai.com
GNU Affero General Public License v3.0
166 stars 18 forks source link

Autoprompt & Prompt Chaining #163

Open lefnire opened 1 year ago

lefnire commented 1 year ago

One idea I've been bopping around in my head, is assigning a prompt to a tag, which gets auto-submitted based on filters including that tag. The idea goes like this:

You've toyed with prompt and found some prompts which you consider invaluable for almost every entry of a certain type. Eg, for dreams you always run the "interpret this dream" prompt. Eventually you decide you'd like this prompt to be run for every such entry automatically, and saved to the entry itself. The way this feature would allow it is that is in the Tags modal. You open up the tags modal, and click + prompt under a tag, type in the prompt and click save. Now whenever you're on an entry with that tag, or in list-view and said tag is present in your filters, the prompt will auto-trigger. If you're in new-entry and click save, the auto-prompt will save the response onto the entry itself, so you can later open up the entry and revisit already-generated prompts. See #164

The second part is to add Prompt Chaining. Some prompts would benefit from a bit of automated back-and-forth, eg #181