#llm #pasting #file #xml #shrink #numbers

app llm-minify

shrink files when pasting into LLMs

2 releases

0.1.1 Apr 11, 2023
0.1.0 Apr 9, 2023

#6 in #pasting

21 downloads per month

MIT license

6KB
118 lines

llm-minify

Minimize the number of tokens a file requires for an LLM to understand it. For instance:

<xml>
    <foo>
        <bar>baz</bar>
    </foo>
</xml>

becomes

a=xml,b=foo,c=bar
<a><b><c>baz</c></b></a>

Dependencies

~5–7MB
~130K SLoC