File size: 558 Bytes
78eb10c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

---
tags:
- langchain
- prompt
---

# Description of LLM Math

Prompt designed to optionally output iPython syntax to be run in order to better answer math questions.

## Inputs

This is a description of the inputs that the prompt expects.

question: User question to be answered.

## Usage

Below is a code snippet for how to use the prompt.

```python
from langchain.prompts import load_prompt
from langchain.chains import LLMMathChain

llm = ...
prompt = load_prompt('lc://prompts/llm_math/<file-name>')
chain = LLMMathChain(llm=llm, prompt=prompt)
```