From 707e961487bfd8df81198bf553c7428e68179e11 Mon Sep 17 00:00:00 2001 From: sinedied Date: Wed, 8 May 2024 12:01:39 +0100 Subject: [PATCH] fix: prevent gpt4 to generate markdown --- packages/api/src/functions/chat-post.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/functions/chat-post.ts b/packages/api/src/functions/chat-post.ts index 787704a..82bf224 100644 --- a/packages/api/src/functions/chat-post.ts +++ b/packages/api/src/functions/chat-post.ts @@ -18,7 +18,7 @@ import { badRequest, data, serviceUnavailable } from '../http-response'; import { ollamaChatModel, ollamaEmbeddingsModel, faissStoreFolder } from '../constants'; import { getCredentials } from '../security'; -const systemPrompt = `Assistant helps the Consto Real Estate company customers with questions and support requests. Be brief in your answers. Format the answer in plain text. +const systemPrompt = `Assistant helps the Consto Real Estate company customers with questions and support requests. Be brief in your answers. Answer only plain text, DO NOT use Markdown. Answer ONLY with information from the sources below. If there isn't enough information in the sources, say you don't know. Do not generate answers that don't use the sources. If asking a clarifying question to the user would help, ask the question. If the user question is not in English, answer in the language used in the question.