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

A unified prompt generator #25

Open
niansong1996 opened this issue Apr 5, 2023 · 0 comments
Open

A unified prompt generator #25

niansong1996 opened this issue Apr 5, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@niansong1996
Copy link
Contributor

niansong1996 commented Apr 5, 2023

Currently, how we load the prompt is by reading from a txt file. This is good for reproducibility, but not good when we have a large number of datasets, and when we want to use a non-fixed set of exemplars.

We would like to build a prompt generator that:

  • Take some examples and use a promptify function to turn them into a list of strings as exemplars, moreover, it should have:
    • An instruction (optional)
    • A list of promptified exemplars
      • natural language input x
      • additional input (e.g., programming context) c
      • ouput code y
  • Can still save the prompt in a txt file for reproducibility and debugging
  • It should also be able to adapt to the chat format

In the future, we should also consider turn this prompt generator to a standardized package so that people can reuse.

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

No branches or pull requests

1 participant