langchain/docs
Scott Leibrand b4762dfff0
Refine Olivia Wilde's boyfriend example prompt to work better (#248)
With the original prompt, the chain keeps trying to jump straight to
doing math directly, without first looking up ages. With this two-part
question, it behaves more as intended:


> Entering new ZeroShotAgent chain...
How old is Olivia Wilde's boyfriend? What is that number raised to the
0.23 power?
Thought: I need to find out how old Olivia Wilde's boyfriend is, and
then use a calculator to calculate the power.
Action: Search
Action Input: Olivia Wilde's boyfriend age
Observation: While Wilde, 37, and Styles, 27, have both kept a low
profile when it comes to talking about their relationship, Wilde did
address their ...
Thought: Olivia Wilde's boyfriend is 27 years old.
Action: Calculator
Action Input: 27^0.23

> Entering new LLMMathChain chain...
27^0.23

```python
import math
print(math.pow(27, 0.23))
```

Answer: 2.1340945944237553

> Finished LLMMathChain chain.

Observation: Answer: 2.1340945944237553

Thought: I now know the final answer.
Final Answer: 2.1340945944237553
> Finished ZeroShotAgent chain.
2022-12-03 08:11:38 -08:00
..
examples Harrison/combine documents chain (#212) 2022-11-30 22:00:02 -08:00
explanation add react text world doc (#245) 2022-12-02 09:07:21 -08:00
getting_started Refine Olivia Wilde's boyfriend example prompt to work better (#248) 2022-12-03 08:11:38 -08:00
modules (WIP) agents (#171) 2022-11-22 06:16:26 -08:00
conf.py Harrison/redo docs (#130) 2022-11-13 20:13:23 -08:00
index.rst Harrison/list of examples (#218) 2022-11-29 20:08:00 -08:00
installation.md Harrison/redo docs (#130) 2022-11-13 20:13:23 -08:00
integrations.md Harrison/redo docs (#130) 2022-11-13 20:13:23 -08:00
make.bat initial commit 2022-10-24 14:51:15 -07:00
Makefile initial commit 2022-10-24 14:51:15 -07:00
requirements.txt Harrison/redo docs (#130) 2022-11-13 20:13:23 -08:00