<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hatakazu93</author_name>
  <author_url>https://blog.hatena.ne.jp/hatakazu93/</author_url>
  <blog_title>エンジニアリングとお金の話</blog_title>
  <blog_url>https://hatakazu.hatenablog.com/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>LangChainは非常に便利だけど自分が意図しないプロンプトが作成されていることがある｡確認する方法が無いか探していたらログに出力出来ることが分かった｡下記コードを追加することでログ上にLangChainが発行するプロンプトが出力される｡ import openai openai.log=&quot;debug&quot; 上記のコードはLangChainがOpenAIが提供しているopenai-python SDKを使用いるため､openai-pythonのログ出力設定を変更することでプロンプト内容が表示されるという感じである｡下記のyoutubeを参考した｡ www.youtube.com</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhatakazu.hatenablog.com%2Fentry%2F2023%2F07%2F04%2F122422&quot; title=&quot;LangChainが発行しているプロンプトを確認する方法について - エンジニアリングとお金の話&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-07-04 12:24:22</published>
  <title>LangChainが発行しているプロンプトを確認する方法について</title>
  <type>rich</type>
  <url>https://hatakazu.hatenablog.com/entry/2023/07/04/122422</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
