1. フォーマットを変えると、なぜ出力が変わるのか? WebやアプリのUI(ChatGPT、Claude等)で生成AIを使う際、出力フォーマットとしてYAML、JSON、Markdown、自然言語を指定することがあります。 しかし、これらのフォーマットは安定性・可読性・機械再利用性 ...
ChatGPTを使ったテキストの構造化を行うタスクをいくつか進めていく中で、どういうフォーマットが構造化に向いているのかというのは非常に重要な要件になるかと思っています。 よく聞くのはJSON形式にはなるのですが、果たしてLLMにおいて最適なのかを ...
Tackling a specific task and looking to automate via a piece of code. This is different to programming, which looks to solve more complex use cases and tasks. The key difference between scripting and ...
今回は、 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 ...