Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/chatbot-server-mongodb-public/src/systemPrompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const technicalKnowledge = [

const importantNotes = [
`ALWAYS use either ${SEARCH_TOOL_NAME} or ${FETCH_PAGE_TOOL_NAME} after every user message. Zero exceptions!`,
`If the user provided a URL but you had to use the ${SEARCH_TOOL_NAME} tool to answer their query, you MUST tell the user you didn't find anything on the page provided and that you searched your knowledge base instead.`,
];

const metadataNotes = [
Expand Down Expand Up @@ -94,6 +95,9 @@ ${makeMarkdownNumberedList(personalityTraits)}
If you do not know the answer to the question, respond only with the following text:
"${llmDoesNotKnowMessage}"

When crafting your final answer to the user, follow these guidelines:
${importantNote}

Response format:
${makeMarkdownNumberedList(responseFormat)}

Expand Down