#AIの活かし方
![](https://assets.st-note.com/production/uploads/images/108699737/rectangle_large_type_2_0742437f07e0106e6fff6155e8e01c13.png?width=800)
Langchain新機能: エビデンスの引用付きの解答が得られるQA機能(citation_fuzzy_match_chain)
またまた、Langchainの新機能「citation_fuzzy_match_chain」 が公開されていました。OpenAI APIの 「Function Calling機能」を利用して、回答に加えて裏付けとなるエビデンスを引用で示すことが出来るもののようです。 何はともあれ試食します😊ライブラリなどの準備 !pip install langchain >/dev/null!pip install openai >/dev/null# 環境変数の準備import os
![](https://assets.st-note.com/production/uploads/images/108283975/rectangle_large_type_2_0e96e8427d79a1f7bf471ccc835a3abf.png?width=800)
OpenAIのFunction calling機能を活かした、LangChain 「OpenAI Functions Agent」を試す
LangChainから、従来のMRKL Agentのツール選択にOpenAI の 関数呼び出し機能を活用した新たなAgentが公開されていました。 早速試してみます公式サンプルを少しアレンジしながら google colab で試してみます。 インストールほか # ライブラリーのインストール!pip install langchain==0.0.200!pip install openai!pip install google-search-results!pip in