Spaces:
Sleeping
Sleeping
gabrielaltay
commited on
Commit
•
7333f5e
1
Parent(s):
723ae91
prompt update
Browse files
app.py
CHANGED
@@ -47,19 +47,19 @@ PROMPT_TEMPLATES = {
|
|
47 |
|
48 |
Question: {question}""",
|
49 |
"v2": PREAMBLE
|
50 |
-
+ """ Each snippet starts with a header that includes a unique snippet number (snippet_num), a legis_id, and a title. Your response should
|
51 |
|
52 |
{context}
|
53 |
|
54 |
Question: {question}""",
|
55 |
"v3": PREAMBLE
|
56 |
-
+ """ Each excerpt starts with a header that includes a legis_id, and a title followed by one or more text snippets. When using text snippets in your response, you should
|
57 |
|
58 |
{context}
|
59 |
|
60 |
Question: {question}""",
|
61 |
"v4": PREAMBLE
|
62 |
-
+ """ The excerpts are formatted as a JSON list. Each JSON object has "legis_id", "title", and "snippets" keys. If a snippet is useful in writing part of your response, then
|
63 |
|
64 |
{context}
|
65 |
|
|
|
47 |
|
48 |
Question: {question}""",
|
49 |
"v2": PREAMBLE
|
50 |
+
+ """ Each snippet starts with a header that includes a unique snippet number (snippet_num), a legis_id, and a title. Your response should cite particular snippets using legis_id and title. If you don't know how to respond, just tell the user.
|
51 |
|
52 |
{context}
|
53 |
|
54 |
Question: {question}""",
|
55 |
"v3": PREAMBLE
|
56 |
+
+ """ Each excerpt starts with a header that includes a legis_id, and a title followed by one or more text snippets. When using text snippets in your response, you should cite the legis_id and title. If you don't know how to respond, just tell the user.
|
57 |
|
58 |
{context}
|
59 |
|
60 |
Question: {question}""",
|
61 |
"v4": PREAMBLE
|
62 |
+
+ """ The excerpts are formatted as a JSON list. Each JSON object has "legis_id", "title", and "snippets" keys. If a snippet is useful in writing part of your response, then cite the "title" and "legis_id" in the response. If you don't know how to respond, just tell the user.
|
63 |
|
64 |
{context}
|
65 |
|