Skip to content
Sections
>> Trisquel >> Packages >> xolotl (13.0) >> python >> python3-partial-json-parser
[  xolotl  ]
[ Source: partial-json-parser  ]

Package: python3-partial-json-parser (0.2.1.1.post5-3)

to produce structural information instead of natural language

Sometimes we need LLM (Large Language Models) to produce structural information instead of natural language. The easiest way is to use JSON. But before receiving the last token of response, the JSON is broken, which means you can't use JSON.parse to decode it. But we still want to stream the data to the user. Here comes partial-json-parser, a lightweight and customizable library for parsing partial JSON strings. Here is a demo.

Other Packages Related to python3-partial-json-parser

  • depends
  • recommends
  • suggests
  • dep: python3
    interactive high-level object-oriented language (default python3 version)

Download python3-partial-json-parser

Download for all available architectures
Architecture Package Size Installed Size Files
all 10.0 kB52 kB [list of files]