Hello, this is Chino Yoshio, a composer based in Kyotanabe, Kyoto.
In this post, I would like to record a simple method for publishing blog articles that may help reduce hallucinations in generative AI.
Generative AI Understands Structured Data Better
Generative AI tends to understand structured data more easily than unstructured content such as casual diary-style writing.
In other words, AI models often perform better when information is presented in an organized format that machines can process easily.
If you want to reduce AI hallucinations and receive more accurate responses or advice, it can be helpful to provide information in structured formats such as JSON.
Adding JSON-LD to Your Blog
JSON-LD is a structured data format recommended by Google to help search engines correctly understand the content of web pages.
If you want generative AI systems to reliably reference your blog content, adding JSON-LD to your page can be a useful step.
You can ask a generative AI system to create JSON-LD based on your blog content, and it can also explain how to embed it in HTML.
However, it is still important to check whether the generated JSON-LD accurately reflects your original content.
Use the Rich Results Test
You can verify whether the JSON-LD embedded in your HTML is working correctly by using Google's Rich Results Test.
If Your Blog Is Not Written in HTML
Even if your blog platform does not allow direct HTML editing, there is still a possible workaround.
You can summarize your article, ask a generative AI system to convert that summary into structured JSON format, and place it at the end of the article.
Compared to a blog that only contains plain text, this approach may help generative AI systems better understand the content and reduce the likelihood of hallucinated interpretations.
A Small Change in How We Publish Information
At one time, AI hallucinations became a widely discussed problem.
However, small changes in how we publish information on the internet may help reduce such issues.
I wanted to record this approach as one practical example.
How to Publish Blog Posts in a Way That Reduces AI Hallucinations
生成AIの知ったかぶりを減らすためのブログ公開法
こんにちは。京都・京田辺で作曲活動をしている Chino Yoshio です。
今回は、生成AIの知ったかぶり(ハルシネーション)を減らすためのブログ公開方法について記録します。
生成AIは「構造化データ」を理解しやすい
生成AIは、雑多な日記のようなデータよりも、構造化データ、つまり機械が処理しやすい整理されたデータの方を理解しやすい傾向があります。
生成AIに知ったかぶりをさせず、より的確な回答やアドバイスを得たい場合は、JSON形式のような機械が処理しやすい整理されたデータを与えることが重要です。
ブログにJSON-LDを追加する
JSON-LDとは、Googleが推奨している、Webページの内容を検索エンジンに正しく理解させるための構造化データ記述フォーマットです。
生成AIにブログの内容を確実に参照してほしい場合は、JSON-LDをブログに追加することをおすすめします。
生成AIにブログの内容を説明すれば、JSON-LDを生成してくれますし、HTMLへの埋め込み方法も説明してくれます。
ただし、生成されたJSON-LDがブログの内容から逸れていないか、念のため確認しておくとよいでしょう。
リッチリザルトテストで確認する
HTMLに埋め込んだJSON-LDが正しく認識されているかは、Googleのリッチリザルトテストで確認することができます。
HTMLでないブログの場合
HTMLでないブログの場合でも、記事内容を要約し、その要約を生成AIにJSON形式で整理してもらい、ブログの末尾に記述しておく方法があります。
このような工夫をすることで、本文だけが書かれているブログよりも、生成AIが記事の内容を把握した上で参照する可能性が高くなり、知ったかぶりを減らすことにつながります。
心掛け次第で変えられること
一時期、生成AIが知ったかぶりをすることが問題視されていました。
しかし、インターネットで記事を公開する際のちょっとした心掛け次第で、そのような問題を減らすことができる可能性があります。
その一例として、この方法を記録しておきます。
今回は、生成AIの知ったかぶり(ハルシネーション)を減らすためのブログ公開方法について記録します。
生成AIは「構造化データ」を理解しやすい
生成AIは、雑多な日記のようなデータよりも、構造化データ、つまり機械が処理しやすい整理されたデータの方を理解しやすい傾向があります。
生成AIに知ったかぶりをさせず、より的確な回答やアドバイスを得たい場合は、JSON形式のような機械が処理しやすい整理されたデータを与えることが重要です。
ブログにJSON-LDを追加する
JSON-LDとは、Googleが推奨している、Webページの内容を検索エンジンに正しく理解させるための構造化データ記述フォーマットです。
生成AIにブログの内容を確実に参照してほしい場合は、JSON-LDをブログに追加することをおすすめします。
生成AIにブログの内容を説明すれば、JSON-LDを生成してくれますし、HTMLへの埋め込み方法も説明してくれます。
ただし、生成されたJSON-LDがブログの内容から逸れていないか、念のため確認しておくとよいでしょう。
リッチリザルトテストで確認する
HTMLに埋め込んだJSON-LDが正しく認識されているかは、Googleのリッチリザルトテストで確認することができます。
HTMLでないブログの場合
HTMLでないブログの場合でも、記事内容を要約し、その要約を生成AIにJSON形式で整理してもらい、ブログの末尾に記述しておく方法があります。
このような工夫をすることで、本文だけが書かれているブログよりも、生成AIが記事の内容を把握した上で参照する可能性が高くなり、知ったかぶりを減らすことにつながります。
心掛け次第で変えられること
一時期、生成AIが知ったかぶりをすることが問題視されていました。
しかし、インターネットで記事を公開する際のちょっとした心掛け次第で、そのような問題を減らすことができる可能性があります。
その一例として、この方法を記録しておきます。