interFace
Prompt customization
Knowledge Base Specific Prompt
10min
this guide will help you understand the knowledge base retrieval part of the prompt and provide instructions on how to customize it the default retrieval part of the prompt use context search tool to retrieve the response if the information is not contained in the context respond with a fallback message that lets the user know you could not find the information keep the responses of max 40 words length and keep the answer as concise as possible if asked about any specific people (by name), places, or telephone numbers not mentioned in the document, state that you are not allowed to speak about people due to privacy in case a user poses a question not related to the document address the query accurately, then smoothly redirect the conversation back to context this prompt is designed for an ai or digital assistant tasked with providing concise, context specific answers based on a given document or dataset here’s how it works the breakdown 1 document retrieval please note use context search tool to retrieve the response is part of the prompt that uses the knowledge base as a source of information and must not be changed unless you will not use the knowledge base 2\ the f allback message “if the information is not contained in the context respond with a fallback message that lets the user know you could not find the information ” this is the fallback message displayed when the requested information isn't available in the knowledge base you can customize it, for instance "sorry, i couldn't find the information you're looking for please reach out to our support team for further assistance " 3 response length “ keep the responses of max 40 words in length and keep the answer as concise as possible ” by default, the model delivers concise, high level answers with a 30 word limit increasing the word limit allows for more detailed, comprehensive responses, providing deeper insights please note extending word limits can lead to longer response times, but it also allows for more detailed and nuanced conversations 4 data privacy "if asked about any specific individuals, locations, or contact details not mentioned in the document, indicate that you are unable to discuss such matters due to privacy concerns " this sentence covers the handling of third party data privacy removing it may have privacy implications, as it ensures the model refrains from discussing individuals, locations, or contact details not mentioned in the document 5 conversational focus “in case a user poses a question not related to the document address the query accurately, then smoothly redirect the conversation back to context ” when a user asks an unrelated question, the model should answer briefly and then redirect to the original topic, keeping the conversation relevant and focused example user "what do you think about the new superhero movie coming out next week?" digital human "the new superhero movie looks promising! now, back to the financial report—how might q2 revenue trends affect next quarter's projections?"