Skip to content

Commit

Permalink
Merge pull request #9 from srush/embeddings
Browse files Browse the repository at this point in the history
Missing prompts
  • Loading branch information
srush authored Mar 5, 2023
2 parents 9a6599f + b9394f7 commit a29fbb3
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/bash.pmpt.tpl
Original file line number Diff line number Diff line change
@@ -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}}
10 changes: 10 additions & 0 deletions examples/gatsby.pmpt.tpl
Original file line number Diff line number Diff line change
@@ -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}}
10 changes: 10 additions & 0 deletions examples/ner.pmpt.tpl
Original file line number Diff line number Diff line change
@@ -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:
12 changes: 12 additions & 0 deletions examples/qa.pmpt.tpl
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit a29fbb3

Please sign in to comment.