MilanM commited on
Commit
94d1888
·
verified ·
1 Parent(s): 3bc090c

Update neo_sages.py

Browse files
Files changed (1) hide show
  1. neo_sages.py +12 -0
neo_sages.py CHANGED
@@ -259,6 +259,12 @@ def fetch_response(user_input, milvus_client, emb, vector_index_properties, vect
259
  )
260
  prompt_data = prompt_data.replace("__grounding__", grounding)
261
 
 
 
 
 
 
 
262
  # For SYS-ter V. (third column)
263
  else:
264
  # Get chat history from MOD-ther S.
@@ -272,6 +278,12 @@ def fetch_response(user_input, milvus_client, emb, vector_index_properties, vect
272
  )
273
  prompt_data = prompt_data.replace("__grounding__", grounding)
274
 
 
 
 
 
 
 
275
  # Continue with normal processing for columns 2 and 3
276
  watsonx_llm = ModelInference(
277
  api_client=client,
 
259
  )
260
  prompt_data = prompt_data.replace("__grounding__", grounding)
261
 
262
+ # Add debug information to column 1 if enabled
263
+ if genparam.INPUT_DEBUG_VIEW == 1:
264
+ with st.columns(3)[0]: # Access first column
265
+ st.markdown(f"**{genparam.BOT_2_AVATAR} {genparam.BOT_2_NAME} Prompt Data:**")
266
+ st.code(prompt_data, language="text")
267
+
268
  # For SYS-ter V. (third column)
269
  else:
270
  # Get chat history from MOD-ther S.
 
278
  )
279
  prompt_data = prompt_data.replace("__grounding__", grounding)
280
 
281
+ # Add debug information to column 1 if enabled
282
+ if genparam.INPUT_DEBUG_VIEW == 1:
283
+ with st.columns(3)[0]: # Access first column
284
+ st.markdown(f"**{genparam.BOT_3_AVATAR} {genparam.BOT_3_NAME} Prompt Data:**")
285
+ st.code(prompt_data, language="text")
286
+
287
  # Continue with normal processing for columns 2 and 3
288
  watsonx_llm = ModelInference(
289
  api_client=client,