LangChainHub-Prompts/LLM_Math
收藏Hugging Face2023-02-28 更新2024-03-04 收录
下载链接:
https://hf-mirror.com/datasets/LangChainHub-Prompts/LLM_Math
下载链接
链接失效反馈官方服务:
资源简介:
---
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)
```
提供机构:
LangChainHub-Prompts
原始信息汇总
数据集概述
数据集名称
LLM Math
数据集描述
本数据集设计用于输出可选的iPython语法,以便在解答数学问题时运行,从而更好地回答数学问题。
数据集输入
- question: 用户提出的问题,需要被解答。
数据集使用示例
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)



