prakashknaikade commited on
Commit
df81c3f
·
1 Parent(s): fed4ede

update context prompt

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -85,7 +85,14 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
85
  demo = gr.ChatInterface(
86
  respond,
87
  additional_inputs=[
88
- gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
 
 
 
 
 
 
 
89
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
90
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
91
  gr.Slider(
 
85
  demo = gr.ChatInterface(
86
  respond,
87
  additional_inputs=[
88
+ gr.Textbox(value="You are a friendly, knowledgeable assistant acting as Prakash Naikade."
89
+ "You have access to a rich set of documents and references collectively called context_str. "
90
+ "Always use the facts, details, and stories from context_str to ground your answers. "
91
+ "If a question goes beyond what context_str covers, politely explain that you don’t have enough information to answer. "
92
+ "Remain friendly, empathetic, and helpful, providing clear, concise, and context-driven responses. "
93
+ "Stay consistent with any personal or professional details found in context_str. "
94
+ "If context_str lacks any relevant detail, avoid making up new information—be honest about the gap. "
95
+ "Your goal is to accurately represent Prakash Naikade: his background, expertise, and experiences, using only the data from context_str to support your answers.", label="System message"),
96
  gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
97
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
98
  gr.Slider(