Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit ec48310

Browse files
authored
Add READMEs for 5 utility chains (#27)
1 parent a10dd86 commit ec48310

File tree

5 files changed

+67
-0
lines changed

5 files changed

+67
-0
lines changed

chains/llm-bash/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# BashChain
2+
3+
## Description
4+
5+
The LLMBashChain takes in a task to perform and generates a series of bash commands that will perform the task.
6+
7+
## Chain type
8+
9+
LLMBashChain
10+
11+
## Input Variables
12+
13+
question: a question about how to perform a task in bash.

chains/llm-checker/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# LLMCheckerChain
2+
3+
## Description
4+
5+
The LLMCheckerChain is designed to generate better answers to factual questions. The chain works by first generating a draft answer based on the question. The model is then asked to list its assumptions for this statement. The model is then asked to determine whether each assertion is true or false, and explain why if it is false. Finally, the model is prompted to revise their answer based on the above checks and assertions.
6+
7+
## Chain type
8+
9+
LLMCheckerChain
10+
11+
## Input Variables
12+
13+
question: the question to answer

chains/llm-math/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# LLM Math
2+
3+
4+
## Description
5+
6+
A LLMMathChain that uses LLMs and the Python REPL to do complex word math problems.
7+
8+
## Chain type
9+
10+
LLMMathChain
11+
12+
## Input Variables
13+
14+
question: math problem to be solved.

chains/llm-requests/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# LLMRequestsChain
2+
3+
## Description
4+
5+
The LLMRequestsChain extracts answers from HTML results from a URL. Given a URL, and a query to extract information from the results, the chain will extract the answer to the query from the text of the results or return "not found" if the information is not contained in the results text.
6+
7+
## Chain type
8+
9+
LLMRequestsChain
10+
11+
## Input Variables
12+
13+
url: URL
14+
query: query to extract information from search results.

chains/pal/math/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# PAL Math Chain
2+
3+
## Description
4+
5+
The PALChain mplements Program-Aided Language Models, as in https://arxiv.org/pdf/2211.10435.pdf. Gives the model examples of math questions sent as text and answers written in Python, then provides the input question to do the same.
6+
7+
## Chain type
8+
9+
PALChain
10+
11+
## Input Variables
12+
13+
question: a math problem in plain text

0 commit comments

Comments
 (0)