Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
10いいね 294回再生

Get Instant Structured Output from Open Source AI models !

This video tutorial demonstrates how to obtain structured outputs from the open-source large language model Ollama, a functionality previously exclusive to OpenAI. The tutorial highlights the importance of using the latest Ollama version (5.0) and its Python library, guiding viewers through the installation and activation processes. It then showcases how to structure model responses using a JSON schema, exemplified by parsing data from text and images, yielding more consistent and reliable results compared to unstructured text outputs. The process involves defining a Python class representing the desired structured output format and incorporating it into the Ollama API call, effectively transforming the model's response into a structured JSON format that can be validated against the schema.

Please refer the code here :
*********************************************************
github.com/PraveenKS30/GenAI_OpenSource

Looking to enable Structured Output in OpenAI ? :
**********************************************************
   • You WON'T BELIEVE the Power of OpenAI API ...  

Looking for more GEN AI videos ?
**********************************************************
Generative AI using Native APIs :    • Generative AI using OpenAI API !  

Spring AI Tutorials : Generative AI for Java Developers :    • Spring AI  Tutorials : Generative AI for J...…

Getting Started with Azure AI Services :    • Getting Started with Azure AI Services  

コメント