Slide 1

Slide 1 text

Bedrock Claude Night2! Agent tubone24 (@meitante1conan)

Slide 2

Slide 2 text

@meitante1conan LLM 3 DX Yu Otsubo (tubone24)

Slide 3

Slide 3 text

それは突然やってくる!!!

Slide 4

Slide 4 text

AI Product いい感じの社内向け 作ってよ

Slide 5

Slide 5 text

いい感じ...?

Slide 6

Slide 6 text

AI Product Web LLM Agent ? ※ここでいうAgentとはReAct logicで動くLLMアプリケーションをLangChainで構築したものを指します

Slide 7

Slide 7 text

Bedrock Claude Night2! Agent tubone24 (@meitante1conan)

Slide 8

Slide 8 text

Autonomous Agent( ) Autonomous Agent Franklin, Stan and Graesser, Art (1997) "Is it an Agent, or just a Program?: A Taxonomy for Autonomous Agents," いい感じに考え、 行動するやつ

Slide 9

Slide 9 text

Intermediate Steps Tool Lookup Final Answer ReAct-based LangChain Agents Input Google Calucurator Python Evaluate Need more info &OPVHI

Slide 10

Slide 10 text

でもでも...?

Slide 11

Slide 11 text

Agent Agent LLM Web Python ( ) LLM Web LLM Agent ... Agent Retriever Memory Agent

Slide 12

Slide 12 text

Intermediate Steps Tool Lookup Final Answer ReAct-based LangChain Agents! ✨ Input Google Retriever xxxx Evaluate Need more info &OPVHI Memory

Slide 13

Slide 13 text

では作ってみましょう..!!

Slide 14

Slide 14 text

簡単に作れます

Slide 15

Slide 15 text

でも課題あり

Slide 16

Slide 16 text

Web search(Tool) Google 組み込めますが課題あり...!!! https://python.langchain.com/v0.2/docs/integrations/tools/google_search/

Slide 17

Slide 17 text

Retriever Tool Retriever Agent https://python.langchain.com/v0.1/docs/use_cases/question_answering/conversational_retrieval_agents/#retriever-tool

Slide 18

Slide 18 text

Knowledge Bases for Amazon Bedrock Knowledge Bases Agent 組み込めますが課題あり...!!!

Slide 19

Slide 19 text

ConversationBufferMemory LangChain ConversationBufferMemory 組み込めますが課題あり...!!!

Slide 20

Slide 20 text

Intermediate Steps Tool Lookup Final Answer 1: Google Input Google Knowledge base xxxxx Evaluate Need more info &OPVHI Memory

Slide 21

Slide 21 text

1: Google

Slide 22

Slide 22 text

Intermediate Steps Tool Lookup Final Answer 2: Knowledgebase Input Google Knowledge base xxxxx Evaluate Need more info &OPVHI Memory

Slide 23

Slide 23 text

2: Knowledgebase LangChain AmazonKnowledgeBasesRetriever metadata agent scratchpad

Slide 24

Slide 24 text

Intermediate Steps Tool Lookup Final Answer 3: Agent Memory Input Google Knowledge base xxxxx Evaluate Need more info &OPVHI Memory

Slide 25

Slide 25 text

3: Agent Memory Memory OpenAI

Slide 26

Slide 26 text

どうする...?

Slide 27

Slide 27 text

ドキュメント⾒る

Slide 28

Slide 28 text

Claude3 Opus Docs Opus XML https://docs.anthropic.com/ja/docs/use-xml-tags#xml

Slide 29

Slide 29 text

なければ実装する!!! と 言 っ て も ち ょ っ と し た 文 字 列 の 整 形 だ け で す . . !

Slide 30

Slide 30 text

Google search XML GoogleSearch XML

Slide 31

Slide 31 text

boto3 KB XML LangChain boto3

Slide 32

Slide 32 text

XML ... XML ... https://gist.github.com/tubone24/4ef910b152bc1017da36e7d7354e906d

Slide 33

Slide 33 text

Opus Opus Agent ...!!! 社内の反応も上々 ..!!

Slide 34

Slide 34 text

🐾 AWS !!!

Slide 35

Slide 35 text

今日覚えて帰ってほしいこと LangChainをちょ っといじって Opus使えば Agentは業務で も使えるよ! 「tubone 心の声」より

Slide 36

Slide 36 text

ありがとうございました!