LangChain
AIエージェント
マルチエージェントシステム
AgentOps
LLMOps
LangChainとLangGraphによるRAG・AIエージェント
docs
https://docs.langchain.com/docs/
github
https://github.com/langchain-ai/langchain/tree/master/.github
大規模言語モデルと外部リソースとを融合させたアプリケーションを作ろう-langchainのご紹介-
https://qiita.com/wwwcojp/items/c7f43c5f964b8db8a890#:~:text=langchainは%E3%80%81LLMと外部,開発したPythonライブラリです%E3%80%82
LangChain の チャットモデル (ChatGPTの新しい抽象化) を試す|npaka
https://twitter.com/npaka123/status/1633238636056686593?s=20
GPT-index
長い文章を入れたい時に、indexを貼って解決
embeddingされたvectorとtextを対応つけながら保存しておく
GPTに質問文を入力する際に質問文のembeddingと保存されているembeddingの類似度を計算
llama_index, Question AnswerPrompt, GPTSimpleVectorIndex
Retrieverモデルっぽいな
正確なデータはむずかしそ〜
LangChain
https://medium.com/@jerryjliu98/how-unstructured-and-llamaindex-can-help-bring-the-power-of-llms-to-your-own-data-3657d063e30d
Agent:ユーザーからの入力に合わせてツールを選択して、情報追加
Google検索とか他のLLMとか使って、頑健性UP
正確性を極めるのはかなり難しい
fine-tuningしたものよりも、index貼った方が優先されそう
中をいじればいろいろできそう
英語で返して翻訳して返すとか良さそう
pdfの文字情報を取ってくる、
パワポだったら、ビジョンイメージトランスフォーマーで画像をテキストにしたり
かなり汚いものが入っている、本当はPDFじゃない方が良い、そもそもテキストでかかれてる方が良さそう
LangFlow
https://twitter.com/logspace_ai/status/1635709436835635202?s=20
質問を具体化し一つ一つ回答することで精度向上するのがgpt_indexでもできるようになったとか
https://twitter.com/akinoriosamura/status/1635489519226212356?s=20
LangChainの使い方
https://qiita.com/sakasegawa/items/d01dafdf0c77da133f24?utm_source=Qiitaニュース&utm_campaign=8414372155-Qiita_newsletter_558_03_22_2023&utm_medium=email&utm_term=0_e44feaa081-8414372155-34263329
https://qiita.com/sakasegawa/items/9b6c79dc11bc3a1bc0ed?utm_source=Qiitaニュース&utm_campaign=8414372155-Qiita_newsletter_558_03_22_2023&utm_medium=email&utm_term=0_e44feaa081-8414372155-34263329
ChatGPT Retrieval Pluginに任意のベクトル検索エンジンProviderを実装する
https://www.m3tech.blog/entry/chatgpt-retrieval-plugin-vector-search
やっぱちゃんとするには、LangChainでPythonに渡して処理するしかない、GPTだけで終わらせることを考えてはいけないな
Langchainの良いguide
https://python.langchain.com/en/latest/
非構造化データをどのように扱うか
https://github.com/aiplaybookin/novice-ChatGPT/tree/main/unstructuredToStructured
LangSmith
https://blog.langchain.dev/announcing-langsmith/
LangSmith クイックスタートガイド
https://note.com/npaka/n/n559293a2d482
LangFlow
https://www.langflow.org/
LangGraphでのHuman-in-the-loop
https://studyco.connpass.com/event/328389/presentation/?utm_campaign=new_event_links_to_group_member&utm_source=notifications&utm_medium=email&utm_content=detail_btn
LangGraph
https://www.langchain.com/langgraph
Introducing Pytest and Vitest integrations for LangSmith Evaluations
https://blog.langchain.dev/pytest-and-vitest-for-langsmith-evals/
Choosing the Right AI Agent Framework: LangGraph vs CrewAI vs OpenAI Swarm
https://blog.relari.ai/choosing-the-right-ai-agent-framework-langgraph-vs-crewai-vs-openai-swarm-56f7931b4249