1. フォーマットを変えると、なぜ出力が変わるのか? WebやアプリのUI(ChatGPT、Claude等)で生成AIを使う際、出力フォーマットとしてYAML、JSON、Markdown、自然言語を指定することがあります。 しかし、これらのフォーマットは安定性・可読性・機械再利用性 ...
ChatGPTを使ったテキストの構造化を行うタスクをいくつか進めていく中で、どういうフォーマットが構造化に向いているのかというのは非常に重要な要件になるかと思っています。 よく聞くのはJSON形式にはなるのですが、果たしてLLMにおいて最適なのかを ...
今回は、 Python用のライブラリとして、 PyYAML、 libyaml for Pythonの2つのライブラリを紹介します。 yaml. dump()と同じですが、 listやmapやスカラー以外のオブジェクトがあるとエラーになります。 これらを使うと、 安全なデータのみを相手と受け渡しできます。
These text-file formats can all be used to store structured data for embedded and Web applications—but there are differences among them. What are JSON, XML, and YAML? Text-file formats that can be ...
onion_config is a Python package designed for easy configuration management. It supports loading and validating configuration data from environment variables and configuration files in JSON and YAML ...
Collects command functions automatically with a decorator. Prints results as JSON, YAML, or ASCII/pretty tables. Optional progress bars and a simple thread‑pool runner. Batteries for a pragmatic DVDT ...
JSON Prompting is a technique for structuring instructions to AI models using the JavaScript Object Notation (JSON) format, making prompts clear, explicit, and machine-readable. Unlike traditional ...