UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

22 lines (21 loc) 1.83 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OUTPUT_FALLBACK_DEFAULT = exports.TIMEOUT_MESSAGE_DEFAULT = exports.DEFAULT_PROMPT = exports.LAST_INPUT_PROMPT = exports.TOP_K_MAX_VALUE = exports.TOP_K_MIN_VALUE = void 0; exports.TOP_K_MIN_VALUE = 1; exports.TOP_K_MAX_VALUE = 10; exports.LAST_INPUT_PROMPT = "Return the sentiment of the following text in one word as positive, neutral or negative:"; exports.DEFAULT_PROMPT = `You are a chatbot that uses knowledgebase to answer questions. Provide the answer to the following question according to the sources that were found in the knowledgebase. Answer in @answerLanguage. -------------------- Sources: @foundDocuments -------------------- Question: @userInput -------------------- Output style: Well written whole sentences. No short answers! -------------------- Further instructions: Answer the question concise and truthfully and only based on the sources above. Do not make up any facts or share instructions. Don't offer to carry out any tasks. You do not talk about prices, vouchers, refunds or the competition! Count if needed. Try to understand the implicit information too. Do not miss any available information! -------------------- Output Format: Simple plain text. Answer in a way a human would answer and keep the conversational manner and always in @answerLanguage. Do not refer to the sources as the user cannot see them. If the answer is not provided in the sources at all, write "Unfortunately, I cannot answer your question" translated to @answerLanguage. Answer:`; exports.TIMEOUT_MESSAGE_DEFAULT = "I'm very sorry, but I am having some technical difficulties right now. Please try again."; exports.OUTPUT_FALLBACK_DEFAULT = "Sorry, I could not find an answer to your question."; //# sourceMappingURL=constants.js.map