Docfile commited on
Commit
716e476
·
1 Parent(s): 75fedc7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -12
app.py CHANGED
@@ -13,18 +13,14 @@ app = App.from_config(config={
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.
18
- If you don't know the answer, just say that you don't know, don't try to make up an answer.
19
-
20
- $context
21
-
22
- Query: $query
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": {