Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Introduce more preset prompts and a mechanism to load them #3

Open
tisonkun opened this issue Apr 4, 2023 · 3 comments
Open

Introduce more preset prompts and a mechanism to load them #3

tisonkun opened this issue Apr 4, 2023 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@tisonkun
Copy link
Member

tisonkun commented Apr 4, 2023

Maybe we can predefine some useful prompts following the work - https://www.clickprompt.org/en-US/chatgpt-general/

@tisonkun tisonkun added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Apr 4, 2023
@b-tao
Copy link

b-tao commented Apr 4, 2023

Hello, I think I can help with this. How can I start?

@tisonkun
Copy link
Member Author

tisonkun commented Apr 5, 2023

@b-tao Welcome! If you're asking about the collaboration workflow, just open a pull request, and I'll review it.

If you're asking about the technical implementation, I think it's about prepend prompt in the message field when querying GPT:

messages=[{"role": "user", "content": content}],

messages=self._messages,

The easy way is - to predefine some list of messages and prepend the messages in the parameter when users specify them by argument. The prompt candidates can be found at https://www.clickprompt.org/en-US/chatgpt-general/ or your best practice.

The hard way is - to implement a strategy for loading prompts from files and add those predefined prompts as files. For releasing, we should bundle the predefined files also, but you can take only the first part and I'll take care of the releasing part if you're unfamiliar with it.

@tisonkun
Copy link
Member Author

tisonkun commented May 4, 2023

In #10 I support load prompts locally. May or may not we can add prompts in JSON each row format now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants