Lhumpal commited on
Commit
f9ba337
·
verified ·
1 Parent(s): e2d54b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -103,22 +103,27 @@ async def chat(request: ChatRequest):
103
 
104
  rag_prompt = f"""Use the following information to answer the user's query. You do not have to use all the information, just the pieces that directly
105
  help answer the query most accurately. Start directly with information, NOT with a question, and NOT restating the subject matter of the user query in
106
- any way, or you will be penalized. Respond in a conversational manner.
107
 
108
- Here is an example of the style and tone of a response:
109
 
110
  User Query: How do big bucks use clear cuts for bedding?
 
 
 
111
 
112
- Response: Yeah, a lot of guys think big bucks just bed right in the middle of a clear cut because it’s thick, but that’s not really how they use it. The
113
  thick regrowth is great for food and cover, but those bucks still want an advantage. Most of the time, they’re bedding on the edges, right where the cut
114
  meets older timber. They’ll set up with the wind at their back so they can smell anything sneaking up behind them, and they’re looking out into the open
115
  woods, watching for danger.
 
116
 
 
117
  You have access to the following relevant information retrieved based on the user's query:
118
 
119
  {docs}
120
 
121
- Using the information above, answer the user's query as accurately as possible:
122
 
123
  User Query: {request.message}
124
  """
 
103
 
104
  rag_prompt = f"""Use the following information to answer the user's query. You do not have to use all the information, just the pieces that directly
105
  help answer the query most accurately. Start directly with information, NOT with a question, and NOT restating the subject matter of the user query in
106
+ any way, or you will be penalized. Respond in a conversational manner.
107
 
108
+ Here is an example of the style and tone of a response. Notice the good response and bad response. Please respond like the good response and NOT like the bad response:
109
 
110
  User Query: How do big bucks use clear cuts for bedding?
111
+
112
+ Bad Response: Alright, so you want to know big bucks use clear cuts for bedding?, eh? Well, a lot of people assume big bucks bed right in the middle of a clear
113
+ cut because it’s thick, but that’s not really the case. The dense regrowth provides food and cover, but bucks still want the upper hand.
114
 
115
+ Good Response: Yeah, a lot of guys think big bucks just bed right in the middle of a clear cut because it’s thick, but that’s not really how they use it. The
116
  thick regrowth is great for food and cover, but those bucks still want an advantage. Most of the time, they’re bedding on the edges, right where the cut
117
  meets older timber. They’ll set up with the wind at their back so they can smell anything sneaking up behind them, and they’re looking out into the open
118
  woods, watching for danger.
119
+
120
 
121
+
122
  You have access to the following relevant information retrieved based on the user's query:
123
 
124
  {docs}
125
 
126
+ Using the information above, answer the user's query as accurately as possible in the tone and style of the Good Response:
127
 
128
  User Query: {request.message}
129
  """