Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] add preset Style/System prompt modifiers #12

Open
swyxio opened this issue May 20, 2023 · 5 comments
Open

[Feature] add preset Style/System prompt modifiers #12

swyxio opened this issue May 20, 2023 · 5 comments

Comments

@swyxio
Copy link
Contributor

swyxio commented May 20, 2023

most chat ux is just one textbox.

but actually it's useful to have little toggles or dropdowns that set the chatapps to respond in certain useful ways:

  • System/Role prompts
    • (None)
    • You are a programming assistant.
    • You are a chatbot for docs. Here is the following content of the docs:
    • You are a patient teacher explaining a concept to a competent but non-expert developer.
  • Style prompts
    • (None)
    • Respond with valid JSON and only JSON
    • Respond with valid Python code and only Python code. No backticks.
    • Respond with a markdown table.
    • Respond in Markdown with 2-3 bullet points for each section, with important keywords, concepts, people, dates, and numbers bolded
  • metaprompts
    • Help me craft a really good prompt for ChatGPT.
      First, ask me what I want to do. Pause and wait for my answer. Ask questions to clarify as needed.
      Second, once you have the information suggest a prompt that include context, examples, and chain of thought prompting where the prompt goes step by step through the problem.
      Third, show what your response as ChatGPT would be to the prompt.
      Fourth, ask if the user has any suggestions and help them revise the prompt

etc

questions

  • whats a nice UX/design for this?
  • how to make these system/style prompts customizable and saved by user?
@swyxio
Copy link
Contributor Author

swyxio commented May 20, 2023

@moismat thoughts?

@jmxo
Copy link
Collaborator

jmxo commented May 20, 2023

interesting! sounds easy to do. prompts are just strings that can be injected before what already gets injected now

ux can be:
icon in superprompt area, hover/click -> shows popup with list of prompts
and a link/icon that sends to preferences where you can edit prompts

Screen.Recording.2023-05-20.at.11.16.48.PM.mov

#idea 1:
click one of them -> gets inserted
have to click to insert it, no toggle
inserted into textarea as normal text, everything is editable
pro: no magic. user can edit/sort everything in the textarea

#idea 2:
every prompt has a toggle
currently active prompts are displayed in the superprompt area with a special style, greyed out, readonly, then the text the user types

to think about:

  • only inject in first message?
  • are we tunneling too much on developers?
  • how useful really are these prompts?
  • let people share their prompts somehow? a central collection, categorized?
  • at some point have different "profiles", each profile has certain prompts for different use cases. I'd love to hear how people have been using it and for what exactly

@jmxo
Copy link
Collaborator

jmxo commented May 22, 2023

edit:
it might be a good idea to stop and think what's the path forward for this project. is the goal to keep it as a very simple menu bar app for "quick access to chatgpt for one-off questions", or is the goal to transition into a fully fledged wrapper with more features like prompts, more models, etc?

For the latter, a few exist already with great UX for prompts (slash commands with a popup to pick a profile + load from central repo for prompts)
https://github.com/lencx/ChatGPT
https://github.com/mckaywrigley/chatbot-ui
https://github.com/Bin-Huang/chatbox
https://github.com/chathub-dev/chathub

we probably don't want to reimplement the same thing but with a smaller window. so we need to figure out what's the niche for this project

@swyxio
Copy link
Contributor Author

swyxio commented May 26, 2023

@moismat the vision is definitely to keep it smol :)

  • only inject in first message? yes makes sense.
  • are we tunneling too much on developers? no haha. devs all the way
  • how useful really are these prompts? quite!
  • let people share their prompts somehow? a central collection, categorized? they can PR in if they wish?
  • at some point have different "profiles", each profile has certain prompts for different use cases. I'd love to hear how people have been using it and for what exactly interesting idea, would punt on it for now

@jmxo
Copy link
Collaborator

jmxo commented Jun 13, 2023

very interesting implementation:

image.png

from https://github.com/jackMort/ChatGPT.nvim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants