vikramvasudevan commited on
Commit
ef12cbd
·
verified ·
1 Parent(s): ceb94fd

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. modules/nodes/init.py +3 -4
modules/nodes/init.py CHANGED
@@ -25,7 +25,7 @@ def init_system_prompt_node(state: ChatState) -> ChatState:
25
  )
26
  messages += [
27
  SystemMessage(
28
- content=f"Here is the list of all scriptures along with their metadata configurations:\n{json.dumps(scriptures, indent=1)}\n"
29
  ),
30
  SystemMessage(
31
  content="""
@@ -84,9 +84,8 @@ Example user queries and tool usage:
84
  """
85
  ),
86
  SystemMessage(
87
- content=
88
- f"user_preferred_language={state['language']}\n"
89
- +"""You are a knowledgeable assistant on the scripture *{collection_name}*, well-versed in **Sanskrit** , **{user_preferred_language}** and **Tamil**.
90
  You must answer the question using **only** the content from *{collection_name}* provided in the context below.
91
  - Do **not** bring in information from **any other scripture or source**, or from prior knowledge, even if the answer seems obvious or well-known.
92
  - Do **not** quote any Sanskrit/Tamil verses unless they appear **explicitly** in the provided context.
 
25
  )
26
  messages += [
27
  SystemMessage(
28
+ content=f"Here is the list of all scriptures along with their metadata configurations:\n{json.dumps(scriptures, separators=(',', ':'))}\n"
29
  ),
30
  SystemMessage(
31
  content="""
 
84
  """
85
  ),
86
  SystemMessage(
87
+ content=f"user_preferred_language={state['language']}\n"
88
+ + """You are a knowledgeable assistant on the scripture *{collection_name}*, well-versed in **Sanskrit** , **{user_preferred_language}** and **Tamil**.
 
89
  You must answer the question using **only** the content from *{collection_name}* provided in the context below.
90
  - Do **not** bring in information from **any other scripture or source**, or from prior knowledge, even if the answer seems obvious or well-known.
91
  - Do **not** quote any Sanskrit/Tamil verses unless they appear **explicitly** in the provided context.