Implementing Agent Search Tree
Implementing Agent Search Tree
1 message
<reply+2h4ysx&25iqsb&&690de1bcab8101ba91462b3dd0f44ede5f47db8419d10bbe00c62424697e950e@mg1.substack.com>
To: boradjaydip.bj@gmail.com
👋 Hey Damien here! This is a sneak peek of today’s paid newsletter for our
premium subscribers. Get access to this issue and all future issues by
subscribing here:
Upgrade to paid
OCT 10 ∙ PREVIEW
READ IN APP
ReAct
Users can define various agent roles with specific capabilities and
responsibilities.
Tree of Thoughts
Before diving into LATS, it can be helpful to understand the Tree of Thoughts
method. Tree of Thoughts (ToT) is itself an extension of the Chain of
Thoughts (CoT) strategy. The idea is to induce a step-by-step reasoning for
the LLM before providing an answer. Here is an example of a typical CoT
prompt:
Solve the following problem step by step:
3) This $36 is the price before tax. Now we need to add the 7% sales
7% of $36 = 0.07 × $36 = $2.52
Therefore, the shirt will cost $38.52 after the discount and includi
tax.
Now, solve this new problem using the same step-by-step approach:
Question: A bakery sells cookies for $2.50 each. If you buy 3 dozen
there's a buy-two-get-one-free promotion, how much will you pay in t
including an 8% sales tax?
Solution:
The idea is that the LLM, by reading its own reasoning, will tend to produce
more coherent, logical, and accurate responses.
For example, here is how we could induce the generation of the next step:
Consider multiple approaches to solve the following problem. For eac
provide the first step of calculation:
1.
2.
3.
For each first step, briefly describe how you would continue the cal
The resulting response would need to be parsed to extract the possible steps.
The typical approach to understanding what step is better at each level is to
quantitatively assess them with a separate LLM call. Here is an example of
such a prompt:
Previous steps:
[Previous steps]
© 2024 AiEdge
548 Market Street PMB 72296, San Francisco, CA 94104
Unsubscribe