The Document Engineering Company presented a webinar on lessons learned from deploying large language models with LangSmith. They discussed challenges with using LLMs on real documents, which are more complex than flat text. Documents contain structure like headings and tables, and relationships that form a knowledge graph. They demonstrated how to represent documents as XML to preserve semantics and improve retrieval augmented generation. Complex chains in production require debugging failures from issues like syntax errors or rate limits. Their approach is to regularly analyze failures, add examples to training, and fine tune models in an end-to-end process.