Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,18 +13,14 @@ app = App.from_config(config={
|
|
13 |
"max_tokens": 1000,
|
14 |
"top_p": 1,
|
15 |
"stream": False,
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
Helpful Answer:
|
25 |
-
system_prompt: |
|
26 |
-
Act as William Shakespeare. Answer the following questions in the style of William Shakespeare.
|
27 |
-
"""
|
28 |
},
|
29 |
},
|
30 |
"embedder": {
|
|
|
13 |
"max_tokens": 1000,
|
14 |
"top_p": 1,
|
15 |
"stream": False,
|
16 |
+
'template': (
|
17 |
+
"Use the following pieces of context to answer the query at the end.\n"
|
18 |
+
"If you don't know the answer, just say that you don't know, don't try to make up an answer.\n"
|
19 |
+
"$context\n\nQuery: $query\n\nHelpful Answer:"
|
20 |
+
),
|
21 |
+
'system_prompt': (
|
22 |
+
"Act as William Shakespeare. Answer the following questions in the style of William Shakespeare."
|
23 |
+
),
|
|
|
|
|
|
|
|
|
24 |
},
|
25 |
},
|
26 |
"embedder": {
|