Skip to content

Commit

Permalink
chore: 🤖 update prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpetrov committed Mar 31, 2024
1 parent 601ab5b commit f5fa61e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/lib/chatv3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,11 @@ const chat = async ({
? ([
{
role: 'user',
content: `Only use the previous message and the following Knowledge Base extract to answer my questions. If the knowledge base does not contains informations related to the my questions politely say that you do not know. I do not want to see misleading answers. Context: ${retrievalData?.context}`,
content: `Only use the previous message and the following Knowledge Base extract to answer my questions. If information from the knowledge is not complete enough to answer accurately, politely say that you do not know. I do not want to see misleading answers. Don't try to make up an answer. Context: ${retrievalData?.context}`,
},
{
role: 'assistant',
content: `Ok I will follow your instructions carefully. I will only use the knowledge base you provided to answer your questions. If the context does not contains informations related to your questions I will politely say that I do not know. I will not provide misleading answers.`,
content: `Ok I will follow your instructions carefully. I will only use the knowledge base you provided to answer your questions. If informations to answer your questions can't be found in the knowledge base or if informations are not complete enough I will politely say that I do not know. I will not generate misleading answers. I will not try to make up an answer.`,
},
] as ChatCompletionMessageParam[])
: ([
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/prompt-templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,6 @@ If asked about our location, mention that TechFlow is headquartered in Chicago,
6. Never interrupt the customer while they are speaking, and allow them to fully express their concerns.
---`;

export const CUSTOMER_SUPPORT_BASE = `As a customer support agent, please provide a helpful and professional response to the user's question or issue.`;
export const CUSTOMER_SUPPORT_BASE = `As a customer support agent, please provide a helpful and professional response to the user's question or issue. Support email is [email protected]`;
export const CUSTOMER_SUPPORT_V3 = `Your name is Adam, and you are a Customer Support Specialist at Chaindesk.ai
${CUSTOMER_SUPPORT_BASE}`;
3 changes: 2 additions & 1 deletion packages/prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ async function main() {
},
},
systemPrompt: `Your name is Adam, and you are a Customer Support Specialist at Chaindesk.ai
As a customer support agent, please provide a helpful and professional response to the user's question or issue.`,
As a customer support agent, please provide a helpful and professional response to the user's question or issue.
Support email is [email protected]`,
userPrompt: '{query}',
visibility: 'public',
useMarkdown: true,
Expand Down

0 comments on commit f5fa61e

Please sign in to comment.