Expand description
Functions for parsing the output of LLMs, including YAML and Markdown.
This module provides a set of functions that allow you to parse and extract useful information from the output of Large Language Models (LLMs) in YAML and Markdown formats. These functions can be used to transform the LLM output into a more structured and usable format, enabling seamless integration with your applications.
Key features include:
- Parsing YAML and Markdown content produced by LLMs
- Handling common edge cases and being lenient with LLM outputs
- Extracting and deserializing YAML objects from text
With these functions, you can easily work with the outputs of LLMs, simplifying the process of integrating LLMs into your applications and workflows.
Structs§
- Extraction
Error - Errors occuring when parsing
Functions§
- extract_
labeled_ text - Extracts labeled text from markdown
- find_
yaml - Attempts to find a YAML object in a string and deserialize it into the specified type.