lamhieu commited on
Commit
1cb963b
·
1 Parent(s): 2bf3133

chore: update something

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -493,7 +493,7 @@ def generate_chat(
493
  and len(references) > 0
494
  ):
495
  formatted_references = f"Analyze the provided references, extract relevant information to provide accurate and objective feedback. This reference information may include: conversation context, assistant or user memories, reasoning guides, problem-solving suggestions, assistant rules, etc.\nIf the reference is not relevant, ignore it. Try to have a balanced approach, avoiding over-reliance on the documentation."
496
- formatted_references += "\n\n" + ("\n\n".join(references))
497
  conversation.append(
498
  {
499
  "role": "refs",
 
493
  and len(references) > 0
494
  ):
495
  formatted_references = f"Analyze the provided references, extract relevant information to provide accurate and objective feedback. This reference information may include: conversation context, assistant or user memories, reasoning guides, problem-solving suggestions, assistant rules, etc.\nIf the reference is not relevant, ignore it. Try to have a balanced approach, avoiding over-reliance on the documentation."
496
+ formatted_references += "\n\n" + json.dumps(references, indent=2, ensure_ascii=False)
497
  conversation.append(
498
  {
499
  "role": "refs",