-
Notifications
You must be signed in to change notification settings - Fork 66
feat:text analysis by criteria #454
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
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| def get_text_criteria_analysis(text_input, text_criteria, model_name=None, azure=False, **kwargs): | ||
| """ | ||
| Get text criteria analysis using Azure OpenAI. To analyze how well a given text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
puede ser de Azure o no
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sigue sobrando este Azure
| if overall_match < threshold: | ||
| logger.error(f"Text criteria analysis failed: overall match {overall_match} " | ||
| f"is below threshold {threshold}\n" | ||
| f"Failed features: {analysis.get('features', [])}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guarda el mensaje en una variable para no duplicarlo en el log y en la excepción
No description provided.