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やスカラー以外のオブジェクトがあるとエラーになります。 これらを使うと、 安全なデータのみを相手と受け渡しできます。
What are JSON, XML, and YAML? Text-file formats that can be used to store structured data that can be handy for embedded and Web applications. Most developers will be familiar with XML (Extensible ...
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 ...
CodeZine編集部では、現場で活躍するデベロッパーをスターにするためのカンファレンス「Developers Summit」や、エンジニアの生きざまをブーストするためのイベント「Developers Boost」など、さまざまなカンファレンスを企画・運営しています。 講演資料・動画 ...