Replies: 1 comment
|
Instructor can be used to build something like Mistral Document AI that would be cross-platform (unlike Mistral, which I think works only with Mistral models). Check examples:
They only differ in which LLM they use. Example using 1.0 API: // ...
$receipt = (new StructuredOutput)
->using('openai') // or 'anthropic', or 'gemini', or 'mistral'
->withInput(Image::fromFile(__DIR__ . '/receipt.png'))
->withResponseClass(Receipt::class)
->withPrompt('Extract structured data from the receipt.')
->withOptions(['max_tokens' => 4096])
->get();
// now you can work with $receipt object |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
can instructor work with mistral document AI, it is better than chat for extracting file data?
All reactions