Skip to content
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

better prompt for llm consistency check #206

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

FelipeAdachi
Copy link
Contributor

For some models, during the consistency check, the response would be one of the three categories with additional reasoning, which would throw off the score calculation. This change makes the instruction more explicit, stating the we only want the categories.

Copy link
Collaborator

@jamie256 jamie256 left a comment

Choose a reason for hiding this comment

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

LGTM!

We could also be more resilient in processing the output. What do you think about taking the first match to one of the categories in the output?

@FelipeAdachi FelipeAdachi merged commit fd93874 into main Dec 6, 2023
12 checks passed
@FelipeAdachi FelipeAdachi deleted the dev/felipe/hallucination-upgrade branch December 6, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants