<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ggen-sasashun</author_name>
  <author_url>https://blog.hatena.ne.jp/ggen-sasashun/</author_url>
  <blog_title>G-gen Tech Blog</blog_title>
  <blog_url>https://blog.g-gen.co.jp/</blog_url>
  <categories>
    <anon>トラブルシューティング</anon>
    <anon>生成AI (Generative AI)</anon>
    <anon>Vertex AI</anon>
    <anon>機械学習 (AI/ML)</anon>
    <anon>Google Cloud</anon>
    <anon>Python</anon>
  </categories>
  <description>G-gen の佐々木です。当記事では、生成 AI モデルである PaLM 2 のチャットボットを構築した際に、モデルからの回答文で同じ文章が何度も繰り返されてしまう事象の解決策を紹介します。 前提知識 事象 解決策 Frequency Penalty パラメータ サンプルコード Frequency Penalty の調整 前提知識 PaLM 2 は Google が開発した生成 AI モデルです。Google Cloud の機械学習サービスである Vertex AI で PaLM API として公開されており、生成 AI を使用したチャットボットの構築などに使用することができます。 PaLM …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.g-gen.co.jp%2Fentry%2Fpalm2-frequency-penalty&quot; title=&quot;PaLM 2で同じ文章が何度も繰り返される事象への対処法 - G-gen Tech Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/g/ggen-sugimura/20240226/20240226090009.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-02-26 09:00:00</published>
  <title>PaLM 2で同じ文章が何度も繰り返される事象への対処法</title>
  <type>rich</type>
  <url>https://blog.g-gen.co.jp/entry/palm2-frequency-penalty</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
