✳flâneur — a map of the web's best reading

XML parser | 🦜️🔗 LangChain

python.langchain.com · 1,418 words · saved by 1 readers

Keep in mind that large language models are leaky abstractions! You'll have to use an LLM with sufficient capacity to generate well-formed XML. In the following example we use Claude model (https://docs.anthropic.com/claude/docs) which works really well with XML tags. Let's start with the simple request to the model. Now we will use the XMLOutputParser in order to get the structured output. Finally, let's add some tags to tailor the output to our needs. Find out api documentation for XMLOutputParser.

LangChain overview - Docs by LangChain Documentation Index Fetch the complete documentation index at: /llms.txt Use this file to discover all available pages before exploring further. Skip to main content Agent = Model + Harness. LangChain provides create_agent : a minimal, highly configurable harness. The harness is everything around the model loop: the prompt, the tools, and any middleware that shapes behavior. Start with the primitives and compose exactly what your use case needs. Supports OpenAI, Anthropic, Google, and more . LangChain vs. LangGraph vs. Deep Agents Start with Deep Agents f

Explore this link on the map →

related reading