microsoft / promptflow

Build high-quality LLM apps - from prototyping, testing to production deployment and monitoring.
https://microsoft.github.io/promptflow/
MIT License
9.06k stars 817 forks source link

[BUG] Evaluator respond with Nan values as the first token is a text #3522

Closed deepakas closed 6 days ago

deepakas commented 1 month ago

Describe the bug Similarity Evaluator responds with a response Nan as first token in response is 'Text" and promptflow is not able to convert text to integer.

How To Reproduce the bug Steps to reproduce the behavior, how frequent can you experience the bug:

  1. Calling promptflow evaluate method passing json file as input. Since it is customer data we can't share the exact data.

Expected behavior A clear and concise description of what you expected to happen.

It should respond with a number 1 to 5 as per the prompty - https://github.com/microsoft/promptflow/blob/main/src/promptflow-evals/promptflow/evals/evaluators/_similarity/similarity.prompty

Screenshots If applicable, add screenshots to help explain your problem.

Running Information(please complete the following information):

Additional context Add any other context about the problem here.

luigiw commented 1 month ago

@deepakas Can you share the model version you used? This is usually cased by the use of preview OpenAI models.

github-actions[bot] commented 1 week ago

Hi, we're sending this friendly reminder because we haven't heard back from you in 30 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 7 days of this comment, the issue will be automatically closed. Thank you!

luigiw commented 6 days ago

Fixed in 0.3.2 version.