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

Invalid JSON: EOF on example code for example of table extraction with GPT-V #456

Closed
3 of 8 tasks
duckduckgrayduck opened this issue Feb 20, 2024 · 2 comments
Closed
3 of 8 tasks

Comments

@duckduckgrayduck
Copy link

duckduckgrayduck commented Feb 20, 2024

  • This is an actually a bug report.
  • I am not getting good LLM Results
  • I have tried asking for help in the community on discord or discussions and have not received a response.
  • I have tried searching the documentation and have not found an answer.

What Model are you using?

  • gpt-3.5-turbo
  • gpt-4-turbo
  • gpt-4 (vision-preview)
  • Other (please specify)

Describe the bug
A clear and concise description of what the bug is.
I tried running the code in the example here:
https://jxnl.github.io/instructor/examples/extracting_tables/#top-10-grossing-apps-in-october-2023-ireland-for-ios-platforms

To Reproduce
Steps to reproduce the behavior, including code snippets of the model and the input data and openai response.
I've installed all of the dependencies and ran it using python3 main.py

Expected behavior
A clear and concise description of what you expected to happen.
I expect to see the two resulting tables like those in the tutorial.

Screenshots
If applicable, add screenshots to help explain your problem.
JSONError

I can confirm I have gpt-4-vision-preview working using a different really simple script:
Table

@jxnl
Copy link
Collaborator

jxnl commented Feb 20, 2024

I'm moving and unitesting the hub examples can you try of this is working better?

https://jxnl.github.io/instructor/hub/tables_from_vision/

@duckduckgrayduck
Copy link
Author

@jxnl This succeeds for me

@jxnl jxnl closed this as completed Feb 21, 2024
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

No branches or pull requests

2 participants