Nelly-43 commited on
Commit
0bcd06b
·
verified ·
1 Parent(s): 052fd38

Update src/prompts.py

Browse files
Files changed (1) hide show
  1. src/prompts.py +0 -8
src/prompts.py CHANGED
@@ -280,19 +280,11 @@ Output:
280
  USER'S QUESTION: {query}
281
  Return only the JSON object. Do not provide explanations, markdown, or additional text.
282
  """
283
-
284
- def list_to_string(l, key, indent, result=""):
285
- spacing = " " * indent
286
- result += ", ".join(l) + "\n\n"
287
-
288
- return result
289
 
290
  def dict_to_string(d, indent=0):
291
  result = ""
292
  spacing = " " * indent
293
  for key, value in d.items():
294
- # Add indentation based on nesting depth
295
-
296
  if isinstance(value, dict):
297
  result += f"{spacing*2}{key}:\n\n" + dict_to_string(value, indent + 1)
298
  elif isinstance(value, list):
 
280
  USER'S QUESTION: {query}
281
  Return only the JSON object. Do not provide explanations, markdown, or additional text.
282
  """
 
 
 
 
 
 
283
 
284
  def dict_to_string(d, indent=0):
285
  result = ""
286
  spacing = " " * indent
287
  for key, value in d.items():
 
 
288
  if isinstance(value, dict):
289
  result += f"{spacing*2}{key}:\n\n" + dict_to_string(value, indent + 1)
290
  elif isinstance(value, list):