fix(all): LLM JSON.

This commit is contained in:
me@rodrigorodriguez.com 2024-10-28 12:42:37 -03:00
parent d19552814f
commit cada29fd6d

View file

@ -403,7 +403,7 @@ export class ChatServices {
Let me help improve that prompt to be more concise and clearer: Let me help improve that prompt to be more concise and clearer:
RESPONSE FORMAT: Return only a single valid JSON object with no surrounding text. Structure: RESPONSE FORMAT: Return only a single valid JSON object with no surrounding text. Structure:
{"text": "Complete response as a single string, using \\n for all line breaks, bullets and lists", "sources": [{"file": "filename", "page": number}]} {{"text": "Complete response as a single string, using \\n for all line breaks, \n1. bullets and; \n2.lists.", "sources": [{{"file": "filename", "page": number}}]}}
CRITICAL REQUIREMENTS: CRITICAL REQUIREMENTS:
1. Only valid JSON, no text/formatting before/after 1. Only valid JSON, no text/formatting before/after