tdecae commited on
Commit
5daaf5c
·
verified ·
1 Parent(s): 015031c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -55,15 +55,17 @@ llm = DeepSeekLLM()
55
 
56
  # ✨ Prompt template
57
  prompt = PromptTemplate.from_template("""
58
- You are the McEldrew Purtell chatbot. Your role is to answer questions about our law firm's team, services, and legal expertise.
59
- Use the following context to answer the user's question as accurately and professionally as possible.
60
- If you don't know, say "I'm not sure about that. You can contact us directly via our website."
 
61
  Context:
62
  {context}
63
  Question: {question}
64
  Answer:
65
  """)
66
 
 
67
  # 🔗 QA chain and rephraser
68
  qa_chain = load_qa_chain(llm, chain_type="stuff", prompt=prompt)
69
 
 
55
 
56
  # ✨ Prompt template
57
  prompt = PromptTemplate.from_template("""
58
+ You are the McEldrew Purtell chatbot, built to assist users by answering questions about our law firm's team, services, and public-facing details.
59
+ Use the context provided to respond clearly, confidently, and professionally. Include all relevant details from the context, including names, contact information, and employee profiles.
60
+ You are allowed to answer questions about individual team members including their roles, contact information, or personal facts like hobbies, pets, and interests — if such information appears in the context.
61
+ If a question cannot be answered based on the context, respond with: "I'm not sure about that. You can contact us directly via our website."
62
  Context:
63
  {context}
64
  Question: {question}
65
  Answer:
66
  """)
67
 
68
+
69
  # 🔗 QA chain and rephraser
70
  qa_chain = load_qa_chain(llm, chain_type="stuff", prompt=prompt)
71