https://promptfoo.dev/ logo
How to tie prompt to function/tool definition
# ❓|questions
h
Is there a way to tie prompt to function definition? I have multiple versions of prompts + functions that I would like to test. But I don't want to test every prompt with every function. I would like one prompt to always be used with one function definition. I may want to test them with multiple models of temperatures or variables though. Is there a way to achieve this? Thank you.
i
yes, I think the way to achieve this is to create a unique provider with each function definition, and then mapping specific prompts to each provider: https://promptfoo.dev/docs/configuration/parameters/#different-prompts-per-model
h
thanks, this is what I was looking for!