Spaces:
Sleeping
Sleeping
Update prompt
Browse files
app.py
CHANGED
@@ -51,18 +51,13 @@ def process_stream(rules, log, temperature, top_p, top_k, max_new_tokens, seed):
|
|
51 |
hashes = hash_algo((hashes + hash).encode()).hexdigest()
|
52 |
|
53 |
instruction = instruction.replace('\r\r\n', '\n')
|
|
|
|
|
|
|
54 |
|
55 |
prompt=f"""Below is an instruction that describes a task. Write a response that appropriately completes the request.
|
56 |
### Instruction:
|
57 |
-
|
58 |
-
|
59 |
-
Q: Read the rules stated below and check the queries for any violation. State the rules which are violated by a query (if any). Also suggest a possible remediation, if possible. Do not make any assumptions outside of the rules stated below.
|
60 |
-
|
61 |
-
{instruction}The queries are as follows:
|
62 |
-
{query}
|
63 |
-
|
64 |
-
A:
|
65 |
-
|
66 |
### Response:
|
67 |
Answer:"""
|
68 |
|
|
|
51 |
hashes = hash_algo((hashes + hash).encode()).hexdigest()
|
52 |
|
53 |
instruction = instruction.replace('\r\r\n', '\n')
|
54 |
+
|
55 |
+
full_req = "A conversation between a user and an LLM-based AI assistant. The assistant gives helpful and honest answers.\r\n\r\nQ: Read the rules stated below and check the queries for any violation. State the rules which are violated by a query (if any). Also suggest a possible remediation, if possible. Do not make any assumptions outside of the rules stated below.\r\n\r\n" + instruction + 'The queries are as follows:\r\n' + query + '\r\n \r\nA: '
|
56 |
+
full_req = full_req.replace('\r\n', '\n')
|
57 |
|
58 |
prompt=f"""Below is an instruction that describes a task. Write a response that appropriately completes the request.
|
59 |
### Instruction:
|
60 |
+
{full_req}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
### Response:
|
62 |
Answer:"""
|
63 |
|