Commit
·
01c396a
1
Parent(s):
ecd800e
Update parquet files
Browse files- LangChainHub--LLM_Bash/json-train.parquet +3 -0
- README.md +0 -34
- prompt.json +0 -1
LangChainHub--LLM_Bash/json-train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ab716e8dd40f02ceeaf0f8abed805972a8d8fba969c20e06cde1deb604aa8d86
|
| 3 |
+
size 6787
|
README.md
DELETED
|
@@ -1,34 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
---
|
| 3 |
-
tags:
|
| 4 |
-
- langchain
|
| 5 |
-
- prompt
|
| 6 |
-
---
|
| 7 |
-
|
| 8 |
-
# Description of LLM Bash
|
| 9 |
-
|
| 10 |
-
Prompt designed to convert natural language to bash command.
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
## Inputs
|
| 15 |
-
|
| 16 |
-
This is a description of the inputs that the prompt expects.
|
| 17 |
-
|
| 18 |
-
question: User question to be answered by writing a bash command.
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
## Usage
|
| 23 |
-
|
| 24 |
-
Below is a code snippet for how to use the prompt.
|
| 25 |
-
|
| 26 |
-
```
|
| 27 |
-
from langchain.prompts import load_prompt
|
| 28 |
-
from langchain.chains import LLMBashChain
|
| 29 |
-
|
| 30 |
-
llm = ...
|
| 31 |
-
prompt = load_prompt('lc://prompts/llm_bash/<file-name>')
|
| 32 |
-
chain = LLMBashChain(llm=llm, prompt=prompt)
|
| 33 |
-
```
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
prompt.json
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
{"input_variables": ["question"], "output_parser": null, "template": "If someone asks you to perform a task, your job is to come up with a series of bash commands that will perform the task. There is no need to put \\\"#!/bin/bash\\\" in your answer. Make sure to reason step by step, using this format:\\n\\nQuestion: \\\"copy the files in the directory named 'target' into a new directory at the same level as target called 'myNewDirectory'\\\"\\n\\nI need to take the following actions:\\n- List all files in the directory\\n- Create a new directory\\n- Copy the files from the first directory into the second directory\\n```bash\\nls\\nmkdir myNewDirectory\\ncp -r target/* myNewDirectory\\n```\\n\\nThat is the format. Begin!\\n\\nQuestion: {question}", "template_format": "f-string"}
|
|
|
|
|
|