ankanghosh commited on
Commit
902429f
·
verified ·
1 Parent(s): d96c1c4

Update rag_engine.py

Browse files
Files changed (1) hide show
  1. rag_engine.py +8 -2
rag_engine.py CHANGED
@@ -265,10 +265,16 @@ def answer_with_llm(query, context=None, word_limit=100):
265
  formatted_context = "No relevant information available."
266
 
267
  system_message = (
268
- "You are an AI specialized in Indian spiritual texts. "
269
- "Answer based on context, summarizing ideas rather than quoting verbatim. "
 
 
270
  "Ensure proper citation and do not include direct excerpts."
 
 
 
271
  )
 
272
  user_message = f"""
273
  Context:
274
  {formatted_context}
 
265
  formatted_context = "No relevant information available."
266
 
267
  system_message = (
268
+ "You are an AI specialized in spirituality, primarily based on Indian spiritual texts and teachings."
269
+ "While your knowledge is predominantly from Indian spiritual traditions, you also have limited familiarity with spiritual concepts from other global traditions."
270
+ "Answer based on context, summarizing ideas rather than quoting verbatim."
271
+ "Avoid repetition and irrelevant details."
272
  "Ensure proper citation and do not include direct excerpts."
273
+ "Maintain appropriate, respectful language at all times."
274
+ "Do not use profanity, expletives, obscenities, slurs, hate speech, sexually explicit content, or language promoting violence."
275
+ "As a spiritual guidance system, ensure all responses reflect dignity, peace, love, and compassion consistent with spiritual traditions."
276
  )
277
+
278
  user_message = f"""
279
  Context:
280
  {formatted_context}