General
PromptBeginner5 minmarkdown
Untitled Skill
193
LangChain Hub prompt for Pal
Loading actions...
Main instructions and any bundled files for this skill.
Prompts to be used with the PAL chain. These prompts should convert a natural language problem into a series of code snippets to be run to give an answer.
This is a description of the inputs that the prompt expects.
question: The question to be answered.Below is a code snippet for how to use the prompt.
from langchain.prompts import load_prompt
from langchain.chains import PALChain
llm = ...
stop = ...
get_answer_expr = ...
prompt = load_prompt('lc://prompts/pal/<file-name>')
chain = PALChain(llm=llm, prompt=prompt, stop=stop, get_answer_expr=get_answer_expr)
# Pal
# Description of PAL Prompts
Prompts to be used with the [PAL](https://arxiv.org/pdf/2211.10435.pdf) chain.
These prompts should convert a natural language problem into a series of code snippets to be run to give an answer.
## Inputs
This is a description of the inputs that the prompt expects.
1. `question`: The 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 PALChain
llm = ...
stop = ...
get_answer_expr = ...
prompt = load_prompt('lc://prompts/pal/<file-name>')
chain = PALChain(llm=llm, prompt=prompt, stop=stop, get_answer_expr=get_answer_expr)
```
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend li...
risks