From b9394f7d9e22fddafd69ccd97fe593d04d487dc3 Mon Sep 17 00:00:00 2001 From: Sasha Rush Date: Sun, 5 Mar 2023 11:33:56 -0500 Subject: [PATCH] save --- examples/bash.pmpt.tpl | 17 +++++++++++++++++ examples/gatsby.pmpt.tpl | 10 ++++++++++ examples/ner.pmpt.tpl | 10 ++++++++++ examples/qa.pmpt.tpl | 12 ++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 examples/bash.pmpt.tpl create mode 100644 examples/gatsby.pmpt.tpl create mode 100644 examples/ner.pmpt.tpl create mode 100644 examples/qa.pmpt.tpl diff --git a/examples/bash.pmpt.tpl b/examples/bash.pmpt.tpl new file mode 100644 index 0000000..2813888 --- /dev/null +++ b/examples/bash.pmpt.tpl @@ -0,0 +1,17 @@ +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}} \ No newline at end of file diff --git a/examples/gatsby.pmpt.tpl b/examples/gatsby.pmpt.tpl new file mode 100644 index 0000000..0caa847 --- /dev/null +++ b/examples/gatsby.pmpt.tpl @@ -0,0 +1,10 @@ +Context information is below. +--------------------- + +{% for doc in docs %} +* {{doc}} +{% endfor %} + +--------------------- + +Given the context information and not prior knowledge, answer the question: {{question}} \ No newline at end of file diff --git a/examples/ner.pmpt.tpl b/examples/ner.pmpt.tpl new file mode 100644 index 0000000..7a1dcf8 --- /dev/null +++ b/examples/ner.pmpt.tpl @@ -0,0 +1,10 @@ +You are a highly intelligent and accurate {{ domain }} domain Named-entity recognition(NER) system. You take Passage as input and your task is to recognize and extract specific types of {{ domain }} domain named entities in that given passage and classify into a set of following predefined entity types: + +{% for l in labels %} +* {{ l }} +{% endfor %} + +Your output format is only {{ output_format|default('[{"T": type of entity from predefined entity types, "E": entity in the input text}]') }} form, no other form. + +Input: {{ text_input }} +Output: \ No newline at end of file diff --git a/examples/qa.pmpt.tpl b/examples/qa.pmpt.tpl new file mode 100644 index 0000000..618e740 --- /dev/null +++ b/examples/qa.pmpt.tpl @@ -0,0 +1,12 @@ +Answer the question as truthfully as possible using the provided context, and if the answer is not contained within the text below, say "I don't know." + +Context: + +{% for doc in docs %} +* {{doc}} +{% endfor %} + + Q: {{question}} + + A: +