GPT-4 Turbo with Vision Generally Available
platform.openai.com
platform.openai.com
This means you can now use gpt-4-turbo vision to extract structured data from an image!
I was previously using a nasty hack where I'd run the image through the vision model to extract just the text, then run that text through regular gpt-4-turbo to extract structured data. I ditched that hack just now: https://github.com/datasette/datasette-extract/issues/19
How consistent and reliable is the extracted structure?
Did they add any kind of concept "for whatever token you generate/think it is next, "unit test it" / make sure it passes some sort of rules?"
I'm not 100% sure it's related but if you ask it to draw bounding boxes around things it's always off by quite a bit.
That's the $100B question.
Same story as basically everything relating to LLMs to be honest.
I've found success generally better with Textract and then passing the OCR'ed text to OpenAI and using Pydantic to get it structured.
https://github.com/ggerganov/llama.cpp/blob/master/grammars/...
But it is the solution to needing to run the model again and checking the format of the output to ensure that it conforms to you expectations.
I'm trying it for coding and have added it to my VS Code Copilot extension Overall I'd say it's better at coding than the previous GPT-4 Turbo. https://double.bot if anyone wants to try it :)
Have you noticed GPT-4 Vision do weird selections of dates for 2019? In doing some processing of some data for work, I ended up switching to textract and then passing the OCR'ed text to GPT-4 and mapping to a Pydantic schema due to this issue.
> "I’m hoping we can get evals out shortly to help quantify this. Until then - it’s a new model with various data and training improvements, resulting in better reasoning."[0]
> "- major improvements across the board in our evals (especially math)"[1]
[0] https://twitter.com/owencm/status/1777784000712761430
[1] https://twitter.com/stevenheidel/status/1777789577438318625
What does Vision mean? I've already been able to both upload docs, create images etc. for a while now?
What are the "other improvements" and what is Turbo, what is 4.5, what is this new one called?
How do i even see what version of the model i'm using in their interface when it just says "4"?
Vision means the model can see image inputs.
In the API, GPT with vision was previously available in a limited capacity (only some people, and didn't work with all features, like JSON mode and function calling). Now this model is available to everyone and it works with JSON mode and function calling. It also should be smarter at some tasks.
This model is now available in the API, and will roll out to users in ChatGPT. In the API, it's named `gpt-4-turbo-2024-04-09`. In ChatGPT, it will be under the umbrella of GPT-4.
https://www.datasette.cloud/blog/2024/datasette-extract/
YouTube video demo here: https://www.youtube.com/watch?v=g3NtJatmQR0 (3m43s)
Roughly, $100 will get you 5-10 novels worth of output, assuming 100-200k words.
That's a lot.
If you're a C# developer looking to take advantage of this improvement, check out our free open-source implementation at https://github.com/BackslashDev-LLC/img-to-json and our sample application at https://github.com/BackslashDev-LLC/med-intake-demo
GPT-4V in Open AI's chat interface is so seamless. LLM, Text, Speech input, Speech output with tones and emotion, Image Generation, Vision input, and soon its going to be outputting video with Sora...
its kind of amusing that GPT-4 early 2023 is still the benchmark of competition on both closed source and open source models when the lead is just expanding
I gave it two tries to respond and it wasn't even close to the correct answer.
Was it confused on colored eggs vs. "natural" eggs it might have been expecting? Should it have understood what I meant?
All of the leading edge models will output JSON in any format you ask for, such as {"fn_name": {"arg1":10}}. I think this is about making it more accurate and having a standard input/output format.
Function calling has been available for text inputs for awhile, now it's also available for image inputs. OpenAI's function calling/structured data mode is much more strict and reliable at following the schema than just putting "return the output in JSON" in a system prompt.
When used in multi-turn “call/response” mode it actually does start to unlock some new capabilities.
It's expensive though: Anthropic's Claude Haiku can process images significantly cheaper.
Is this basically the same functionality except through API?
Because if we are using just text, why is the extra output size reduced still?
https://platform.openai.com/playground/chat?model=gpt-4-turb...
Edit (4:57 ET): "gpt-4-turbo" shows the updated 4096 in playground. "gpt-4-turbo-2024-04-09" remains 2048 in playground.
gpt-3.5-turbo-0125 New
Updated GPT 3.5 Turbo The latest GPT-3.5 Turbo model with higher accuracy at responding in requested formats and a fix for a bug which caused a text encoding issue for non-English language function calls. Returns a maximum of 4,096 output tokens. Learn more.