IW2025 commited on
Commit
18f3fb8
·
verified ·
1 Parent(s): cfb8648

Update lm_trial_app.py

Browse files
Files changed (1) hide show
  1. lm_trial_app.py +4 -2
lm_trial_app.py CHANGED
@@ -419,7 +419,9 @@ Could you help me explain this to them in a friendly, educational way? I'd like
419
  - Add some helpful context if the slide is brief
420
  - Use bullet points or lists to make it clear
421
  - Make sure your answer directly addresses what they asked
422
- - Keep it CONCISE (2-3 sentences max)
 
 
423
  Thanks for your help! Here's what I'd tell the student:"""
424
 
425
  self.answer_prompt = PromptTemplate(
@@ -549,7 +551,7 @@ Thanks for your help! Here's what I'd tell the student:"""
549
  # Get LLM's answer
550
  response = self.anthropic_client.messages.create(
551
  model="claude-3-5-haiku-20241022",
552
- max_tokens=800,
553
  temperature=0.7,
554
  messages=[{"role": "user", "content": prompt}]
555
  )
 
419
  - Add some helpful context if the slide is brief
420
  - Use bullet points or lists to make it clear
421
  - Make sure your answer directly addresses what they asked
422
+ - Include code examples when relevant
423
+ - Provide detailed explanations with examples
424
+ - Be comprehensive and educational
425
  Thanks for your help! Here's what I'd tell the student:"""
426
 
427
  self.answer_prompt = PromptTemplate(
 
551
  # Get LLM's answer
552
  response = self.anthropic_client.messages.create(
553
  model="claude-3-5-haiku-20241022",
554
+ max_tokens=2000,
555
  temperature=0.7,
556
  messages=[{"role": "user", "content": prompt}]
557
  )