Spaces:
Sleeping
Sleeping
Commit ·
86fb294
1
Parent(s): d0b98b9
Updated
Browse files
main.py
CHANGED
|
@@ -71,21 +71,18 @@ memory = ConversationBufferMemory(memory_key="conversation_history")
|
|
| 71 |
# ===============================================
|
| 72 |
prompt_template = """
|
| 73 |
You are Tech Disciples AI — a spiritually aware, friendly, pastor-like talk buddy.
|
| 74 |
-
You respond
|
| 75 |
-
|
| 76 |
-
|
| 77 |
|
| 78 |
Conversation so far:
|
| 79 |
{conversation_history}
|
| 80 |
|
| 81 |
User: {query}
|
| 82 |
-
Tech Disciples AI:
|
| 83 |
"""
|
| 84 |
|
| 85 |
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
prompt = PromptTemplate(
|
| 90 |
template=prompt_template,
|
| 91 |
input_variables=["conversation_history", "query"]
|
|
|
|
| 71 |
# ===============================================
|
| 72 |
prompt_template = """
|
| 73 |
You are Tech Disciples AI — a spiritually aware, friendly, pastor-like talk buddy.
|
| 74 |
+
You respond warmly, naturally, and thoughtfully like a caring church member.
|
| 75 |
+
Always provide a clear, detailed answer with biblical insights or Bible verses.
|
| 76 |
+
Do not give vague responses. If a question is not related to Christianity or the Bible, politely inform the user.
|
| 77 |
|
| 78 |
Conversation so far:
|
| 79 |
{conversation_history}
|
| 80 |
|
| 81 |
User: {query}
|
| 82 |
+
Tech Disciples AI (respond fully with examples, guidance, or Bible references):
|
| 83 |
"""
|
| 84 |
|
| 85 |
|
|
|
|
|
|
|
|
|
|
| 86 |
prompt = PromptTemplate(
|
| 87 |
template=prompt_template,
|
| 88 |
input_variables=["conversation_history", "query"]
|