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 request] Add support for templates. #63

Open
codetalker7 opened this issue Sep 1, 2024 · 3 comments
Open

[feature request] Add support for templates. #63

codetalker7 opened this issue Sep 1, 2024 · 3 comments

Comments

@codetalker7
Copy link
Contributor

Apologies in advanced if I'm wrong, but I don't think there's any support for prompt templates (I didn't find anything in the README, atleast)? If not, it'll be really nice to have this. For instance, something even as simple as system/user prompt templates (instead of whole chat templates) will be great.

As a usecase, I want to set the system prompt to something like:

system_message = "You are an expert in the {language} programming language. Your job is to assist the user in writing nice programs in {language}".

where {language} can be filled in.

@gsuuon
Copy link
Owner

gsuuon commented Sep 3, 2024

The general approach of this plugin right now is programmatic prompt building, so you could write something template-y and gsub it. I'd like to do a DX pass at some point to make everything easier to use, and maybe a prompt pack that's actually useful out of the box. If folks are interested getting some template helpers in the built-in utils feel free to drop a thumbs up here as well. Just to double check, you saw the prompts section of the readme? It may be a bit too far down now, the docs are due for a rewrite.

@codetalker7
Copy link
Contributor Author

The general approach of this plugin right now is programmatic prompt building, so you could write something template-y and gsub it.

Yes, that'll be a nice way to do it. Regarding the prompts section; yes, I did take a look. Though I agree, more additions to the documentation will be great! Also, thanks a ton for this amazing plugin!

@gsuuon
Copy link
Owner

gsuuon commented Sep 4, 2024

Glad you like it!

Though I agree, more additions to the documentation will be great!

I'd appreciate any specific feedback you have (issue in #28 ), writing docs is probably a weak point of mine.

I'll leave this issue open to track templating utils - would take PR's for this as well.

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