The speaker discusses the evolution of "prompt engineering" from a niche skill to a more structured software engineering discipline due to the probabilistic nature of Large Language Models (LLMs). They illustrate this with an example of using an LLM to structure bug reports into precise JSON format, highlighting issues like inconsistent output. The speaker then introduces two tools, LangChain and PDL (Prompt Declaration Language), which address these challenges. LangChain is presented as a "code-first" framework that uses a pipeline of "runnables" for validation, retries, and fallbacks to ensure consistent LLM output. PDL is described as a "spec-first" declarative language using YAML files to define data shape, steps, and control flow for LLM workflows, emphasizing type checking and explicit control. Both tools are presented as essential for transforming prompt whispering into reliable software engineering practices.
Sign in to continue reading, translating and more.
Continue