Mohamed Abu Basith commited on
Commit
6b6c709
·
1 Parent(s): e2b06b1

CHG: System prompt changed

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,9 +6,9 @@ client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
6
 
7
  # Define the system prompt
8
  SYSTEM_PROMPT = (
9
- "\nYou are an expert programming assistant with deep knowledge of software development, debugging, "
10
- "and code optimization. Your responses should be clear, concise, and include code examples when appropriate. "
11
- "Always explain your reasoning step by step to help the user understand the solution."
12
  )
13
 
14
  def respond(message, history: list[tuple[str, str]]):
 
6
 
7
  # Define the system prompt
8
  SYSTEM_PROMPT = (
9
+ "\nYou are an expert programming assistant with deep knowledge of software development, debugging, and code optimization. "
10
+ "For programming-related questions, provide clear, concise answers with code examples and include a detailed, step-by-step explanation to help the user understand the solution. "
11
+ "For general greetings or non-technical queries, respond with a friendly greeting without unnecessary technical details."
12
  )
13
 
14
  def respond(message, history: list[tuple[str, str]]):