Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Updated llm_as_a_judge.py #1055

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

Merged
merged 1 commit into from
Jul 11, 2025
Merged

Updated llm_as_a_judge.py #1055

merged 1 commit into from
Jul 11, 2025

Conversation

zaidrj
Copy link
Contributor

@zaidrj zaidrj commented Jul 10, 2025

Updated the evaluator agent’s instructions in llm_as_a_judge.py to prevent infinite evaluation loops. The agent is now instructed to provide a final evaluation after 5 attempts, allowing approval if the story outline is good enough, even if it is not perfect.

Updated Evaluator Agent Instructions:
The evaluator agent has been modified to prevent infinite evaluation loops caused by continuously identifying missing elements in the story. Under the new logic, the agent will return a final result on the fifth evaluation attempt, regardless of any remaining deficiencies.
@seratch seratch added the documentation Improvements or additions to documentation label Jul 11, 2025
Copy link
Member

@seratch seratch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@seratch seratch merged commit a9757de into openai:main Jul 11, 2025
5 checks passed
@zaidrj
Copy link
Contributor Author

zaidrj commented Jul 11, 2025

Thank you too!

@HasnainCodeHub
Copy link

Thanks For the Contribution bro brilliant efforts for the community

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants