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: to allow more input variables in prompt template #183

Open
solohan22 opened this issue Jun 30, 2023 · 1 comment
Open

Feature: to allow more input variables in prompt template #183

solohan22 opened this issue Jun 30, 2023 · 1 comment

Comments

@solohan22
Copy link

Thank you for making this fantastic tool! Here's a feature request to consider:

Currently, when creating an extraction chain, only two optional input variables (type_description and format_instructions) are acceptable when defining the prompt template.

Would it make sense for it to accept more input variables? For instance, for use cases requiring the LLM to know current date and time, accepting an additional current_datetime input variable would be ideal to supply such context to the LLM.

@eyurtsev
Copy link
Owner

eyurtsev commented Jul 6, 2023

Hi @solohan22! Thanks for using the library and sorry for a late response -- I'm on vacation this month and have limited computer access until end of July.

I think this makes sense. The way to do this right now is by creating an extraction chain dynamically with the appropriate template already pre-filled. Instantiation of all the objects is fairly cheap so not really an issue for performance; however, I see how this could be inconvenient as an API.

I'm not planning on writing much code this month, but happy to review PRs if you want to work on this feature.

For instance, for use cases requiring the LLM to know current date and time

I'm wondering if you could explain a bit more about this use case. (I may be able to offer an alternative solution if you're actually working with datetime math.)

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