https://promptfoo.dev/ logo
How to map a model to a particular metric?
# ❓|questions
a
I want to use the similarity metric and llm rubric metric in my test.csv file. Both metrics use different models and I was wondering how to correctly map each model in the yaml file to a test mentioned in csv file.
i
Hi @anoushkaramesh, right now this can be done via properties in
defaultTest.options
in `promptfooconfig.yaml`:
Copy code
yaml
defaultTest:
  options:
    provider:
      text:
        id: azureopenai:chat:gpt-4-deployment
        config:
          apiHost: xxx.openai.azure.com
      embedding:
        id: azureopenai:embeddings:text-embedding-ada-002-deployment
        config:
          apiHost: xxx.openai.azure.com
llm-rubric
uses the
text
provider,
similarity
uses the
embedding
provider. This example is for Azure, but it will work for any providers you choose.
a
Awesome thanks!