26 lines
574 B
ReStructuredText
26 lines
574 B
ReStructuredText
|
|
AI output parser
|
||
|
|
================
|
||
|
|
|
||
|
|
Description
|
||
|
|
---------------
|
||
|
|
|
||
|
|
A Python script that parses the markdown output of a reasonning LLM output,
|
||
|
|
it processes the output, it:
|
||
|
|
|
||
|
|
- extracts the `think` inner monolog
|
||
|
|
<!-- - extracts a Rougail YAML output -->
|
||
|
|
<!-- extracting the Rougail documentation description -->
|
||
|
|
- erases the inner monologs
|
||
|
|
- ...
|
||
|
|
|
||
|
|
Usage
|
||
|
|
--------
|
||
|
|
|
||
|
|
::
|
||
|
|
|
||
|
|
./bin/ai_output_parser
|
||
|
|
usage: ai_output_parser [-h] (--think | --explanation | --yaml) file_path
|
||
|
|
|
||
|
|
The `file_path` argument is required and
|
||
|
|
one of the arguments --think --explanation --yaml is required.
|