From 5798463e5feec0e4e9c034911ed1b624c0b02932 Mon Sep 17 00:00:00 2001 From: "me@rodrigorodriguez.com" Date: Thu, 24 Oct 2024 10:44:05 -0300 Subject: [PATCH] new(all); ROUTER. --- packages/llm.gblib/services/ChatServices.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/llm.gblib/services/ChatServices.ts b/packages/llm.gblib/services/ChatServices.ts index 10e584ce..34dd0131 100644 --- a/packages/llm.gblib/services/ChatServices.ts +++ b/packages/llm.gblib/services/ChatServices.ts @@ -401,7 +401,7 @@ export class ChatServices { const jsonInformation = ` - CRITICAL INSTRUCTION: You MUST ALWAYS return ONLY a valid parsable JSON object (using \n in strings with enter char) matching this exact structure, with no additional text before or after: + CRITICAL INSTRUCTION: You MUST ALWAYS return ONLY a valid parsable JSON object matching this exact structure, with no additional text before or after: {{ "text": "Your answer goes here, \n\n providing a thorough response using information from multiple source documents.", @@ -432,7 +432,7 @@ export class ChatServices { - Ensure that no TOC with page numbering, indexing or summary information is included in your response. - Double check that your response contains ONLY the JSON object before returning - You sometimes return a formatted JSON surrounded by quotes like MD, DONT RETURN LIKE THIS, just valid JSON! - - Do not use ENTER to format JSON, but keep ENTER char inside text tag. + - Do not use ENTER to format text inside JSON strings, but keep ENTER char (\n) inside json text nodes. Failure to follow these requirements exactly will result in an error.`;