Update app.py
Browse files
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
|
| 59 |
-
Use the
|
| 60 |
-
|
|
|
|
| 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 |
|