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

This example hangs if the JSON data is either marked as human or AI, it only works for me when marked as system #670

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

timmattison
Copy link
Contributor

This example hangs if the JSON data is either marked as human or AI, it only works for me when marked as system. This PR makes it so the example no longer hangs.

Copy link
Owner

@tmc tmc left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM. Surprised this would result in a hang but SGTM.

@tmc tmc merged commit eecf58c into tmc:main Mar 13, 2024
6 checks passed
@timmattison timmattison deleted the fix-ollama-functions-example branch March 14, 2024 01:51
@corani
Copy link
Contributor

corani commented Mar 14, 2024

I'm not convinced that human vs system makes the difference here. With more testing I indeed can get it to hang sometimes (might be on the Ollama side?), but I managed that in either case.

It happens (at least for me) when Ollama isn't responding with the correct format so we retry. After a couple of retries it seems to hang.

Maybe a bit of prompt engineering or backtracking would improve things, but I'm surprised at well that we hang.

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.

3 participants