Slide 13
Slide 13 text
© 2023 LayerX Inc.
15
軽量なLLMでReActを試す
alpaca-7B-q4などを使って、次のアクションを提案させるという遊びに取り組んだ。利用したPromptは以下。
This is a dialog in which the user asks the AI for instructions on a question, and the AI always
responds to the user's question with only a set of commands and inputs, without error.
To answer the given question, what input should be given to which of the following commands?
Commands:
calculate:
e.g. calculate: 4 * 7 / 3
Runs a calculation and returns the number - uses Python so be sure to use floating point syntax if
necessary
wikipedia:
e.g. wikipedia: Django
Returns a summary from searching Wikipedia
google_search:
e.g. google_search: Django
Search a webpage for that term
Always look things up on Wikipedia if you have the opportunity to do so.
Question: Where is the capital of Japan?
Thought: I need to search the capital of Japan.
Answer: wikipedia: Japan
Question: What is the population of France?
Thought: