Logo

dev-resources.site

for different kinds of informations.

OpenAI Assistants with Structured Outputs

Published at
1/3/2025
Categories
llm
openai
ai
appsmith
Author
joseph_appsmith
Categories
4 categories in total
llm
open
openai
open
ai
open
appsmith
open
Author
15 person written this
joseph_appsmith
open
OpenAI Assistants with Structured Outputs

OpenAI recently added support to their API for structured outputs, which allow you to define the response format using JSON Schema. Prior to this, the JSON response mode was able to reply with JSON, but there was no way to enforce a specific structure, define enum values, and specify required or optional fields. But with Structured Outputs, you can define every detail about the response, to ensure the data is ready to be passed on to your database or workflow.

In this guide, I'll be using OpenAI's Structured Outputs to analyze customer reviews for a hotel chain. The reviews only contain the rating (1-5), and the review text. The Structured Output feature will be used to add new datapoints for sentiment (positive, neutral, negative), offensiveContent (true/false), and tags (cleanliness, service, staff, etc).

This guide will cover:

  • Creating an OpenAI API key and saving it to an Appsmith datasource
  • Using the Chat /completions API
  • Building a UI to select and send reviews to the assistant
  • Defining a JSON Schema for the response

YOUTUBE: OpenAI Assistants with Structured Outputs

Written tutorial

openai Article's
30 articles in total
Favicon
5 Free AI Design Tools For Designers!
Favicon
Integrating Azure OpenAI with .NET Applications Using Microsoft.Extensions.AI
Favicon
Tech Spotlight: Daily Tech News
Favicon
Streaming Responses in AI: How AI Outputs Are Generated in Real-Time
Favicon
Build an AI code review assistant with v0.dev, litellm and Agenta
Favicon
Demystifying AIContents in Microsoft.Extensions.AI
Favicon
Managing AI Tools for Function Calling with Toolhouse SDK
Favicon
Evaluation as a Business Imperative: The Survival Guide for Large Model Application Development
Favicon
Atrium.st - Vercel for AI agents
Favicon
Optimize VLM Tokens with EmbedAnything x ColPali
Favicon
Build a Mac Tool to Fix Grammar Using TypeScript, OpenAI API, and Automator
Favicon
A Roadmap for Scaling Search and Learning in Reinforcement Learning
Favicon
AI Last Week: Friday the 10th of January 2025
Favicon
Building a Semantic Search Engine with OpenAI, Go, and PostgreSQL (pgvector)
Favicon
Temporary Chat Isn't That Temporary | A Look at The Custom Bio and User Instructions in ChatGPT
Favicon
AI Predictions: How You Used AI in 2025?
Favicon
Top 5 Strategies to Ensure Secure AI Model Training in 2025
Favicon
Azure OpenAI Error Handling in Semantic Kernel
Favicon
The Future of AI Model Development: Trends and Predictions
Favicon
Gen AI vs LLM: Understanding the Core Differences and Practical Insights
Favicon
The Benchmark Breakdown: How OpenAI's O1 Model Exposed the AI Evaluation Dilemma
Favicon
Daytona_Sample_Project : CareCradle
Favicon
2025: When Computers Started Creating Things
Favicon
OpenAI Assistants with Structured Outputs
Favicon
Simplifying Data Extraction with OpenAI JSON Mode and JSON Schemas
Favicon
Introducing GenAI Tweet Creator: Your AI-Powered Tweeting Assistant using Streamlit
Favicon
ChatGPT Client with LINE-Style UI Built with Flutter and Riverpod
Favicon
Building an Intelligent SQL Query Assistant with Neon, .NET, Azure Functions, and Azure OpenAI service
Favicon
🚀 OpenAI's Transition from Next.js to Remix: A Strategic Move in Web Development 🌐
Favicon
Introducing Navvy: A Simple AI-Powered Git Automation Tool

Featured ones: