Spaces:
Paused
Paused
chore: update something
Browse files
app.py
CHANGED
@@ -484,7 +484,9 @@ def generate_chat(
|
|
484 |
and len(references) > 0
|
485 |
):
|
486 |
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."
|
487 |
-
formatted_references += "\n\n" + json.dumps(
|
|
|
|
|
488 |
conversation.append(
|
489 |
{
|
490 |
"role": "refs",
|
|
|
484 |
and len(references) > 0
|
485 |
):
|
486 |
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."
|
487 |
+
formatted_references += "\n\n" + json.dumps(
|
488 |
+
references, indent=2, ensure_ascii=False
|
489 |
+
)
|
490 |
conversation.append(
|
491 |
{
|
492 |
"role": "refs",
|