Skip to content

Commit

Permalink
fix: prevent gpt4 to generate markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed May 8, 2024
1 parent 9e2988e commit 707e961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/functions/chat-post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 707e961

Please sign in to comment.