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

allow provider to report updated prompt? #718

Open
pelikhan opened this issue Apr 26, 2024 · 1 comment
Open

allow provider to report updated prompt? #718

pelikhan opened this issue Apr 26, 2024 · 1 comment

Comments

@pelikhan
Copy link

We have a framework that generates prompts on the fly (https://github.com/microsoft/genaiscript) which means that the prompt files built on the fly and sent to the LLM (This works great with the custom javascript provider model and we were able to integrate nicely with promptfoo)

This is problematic for the prompt source because it always ends up being the javascript source instead of the generated prompt, which disables a number of assertions that rely on the input.

Would there be a way to also provide the opportunity for the api provider to return the prompt it actually as part of the response? With a couple pointers, I would be happy to produce a PR.

@typpo
Copy link
Collaborator

typpo commented Apr 28, 2024

This request definitely makes sense - I'm thinking about the best way to implement and will provide some pointers.

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