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

Improvement for the issue : Not working with LLM #396 #397

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brPreetham
Copy link

@brPreetham brPreetham commented Apr 8, 2024

Explicitly informing the model not to include unnecessary sections in its response. This is done because some models like llama2 70B outputs sections such as "Explanation:" or "Justification:" after the JSON response. This will cause the validate_response function to fail. And as a consequence, console will show the error "Invalid response from model , trying again" infinitely.
This is not a surefire fix though. The model (llama2) will still includes explanation and justification sections at times despite this explicit instruction in the prompt

in its output. This is done because some models like llama2 provide
sections such as "Explanation:" or "Justification:" after the JSON
response.
This is not a surefire fix though. The model (llama2) will still
includes explanation and justification sections at times despite this
explicit instruction in the prompt
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.

None yet

1 participant