forked from Archives/langchain
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
818 B
Python
23 lines
818 B
Python
# flake8: noqa
|
|
from langchain.prompts.prompt import PromptTemplate
|
|
|
|
_PROMPT_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:
|
|
|
|
Question: "copy the files in the directory named 'target' into a new directory at the same level as target called 'myNewDirectory'"
|
|
|
|
I need to take the following actions:
|
|
- List all files in the directory
|
|
- Create a new directory
|
|
- Copy the files from the first directory into the second directory
|
|
```bash
|
|
ls
|
|
mkdir myNewDirectory
|
|
cp -r target/* myNewDirectory
|
|
```
|
|
|
|
That is the format. Begin!
|
|
|
|
Question: {question}"""
|
|
|
|
PROMPT = PromptTemplate(input_variables=["question"], template=_PROMPT_TEMPLATE)
|