Tagged articles
4 articles
Page 1 of 1
James' Growth Diary
James' Growth Diary
Apr 8, 2026 · Artificial Intelligence

Practical Guide to Output Parsers: Ensuring Stable JSON from LLMs

The article explains why LLMs often produce malformed JSON, categorizes three common failure types, and walks through modern solutions—including withStructuredOutput + Zod, JsonOutputParser, and OutputFixingParser—plus a decision tree to choose the right approach for production use.

FunctionCallingJSONLLM
0 likes · 14 min read
Practical Guide to Output Parsers: Ensuring Stable JSON from LLMs
James' Growth Diary
James' Growth Diary
Apr 7, 2026 · Artificial Intelligence

Parser vs withStructuredOutput: Choosing the Right Structured Output for LangChain

The article analyzes why LLMs often return unstructured text, compares LangChain's OutputParser and withStructuredOutput approaches, evaluates their stability, token usage, and model compatibility, and provides a decision guide and best‑practice recommendations for production‑grade structured output in 2025.

Function CallingLLMLangChain
0 likes · 10 min read
Parser vs withStructuredOutput: Choosing the Right Structured Output for LangChain
BirdNest Tech Talk
BirdNest Tech Talk
Oct 8, 2025 · Artificial Intelligence

How to Turn LLM Text into Structured Data with LangChain Output Parsers

This article explains why LLMs output plain text, introduces LangChain output parsers as the bridge to structured data, details their workflow, reviews built‑in parsers, and walks through a complete Python example that builds a prompt‑model‑parser chain to generate a JSON‑based joke.

LLMLangChainOutputParser
0 likes · 10 min read
How to Turn LLM Text into Structured Data with LangChain Output Parsers
JavaEdge
JavaEdge
Jun 23, 2024 · Artificial Intelligence

Build a Cultural Name‑Generator with LangChain, Custom Prompts, and Output Parsers

This tutorial walks through installing LangChain, creating an LLM (via own GPU resources or third‑party APIs), designing parameterized prompt templates, implementing a custom output parser for structured results, and running a complete Python example that generates culturally specific names.

AILLMLangChain
0 likes · 7 min read
Build a Cultural Name‑Generator with LangChain, Custom Prompts, and Output Parsers