feat: advanced prompt (#1330)
Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: Gillian97 <jinling.sunshine@gmail.com>
This commit is contained in:
@@ -1,5 +1,22 @@
|
||||
const translation = {
|
||||
pageTitle: 'Prompt Engineering',
|
||||
pageTitle: {
|
||||
line1: 'PROMPT',
|
||||
line2: 'Engineering',
|
||||
},
|
||||
promptMode: {
|
||||
simple: 'Switch to Advanced Mode to edit the built-in PROMPT',
|
||||
advanced: 'Advanced Mode',
|
||||
switchBack: 'Switch back',
|
||||
advancedWarning: {
|
||||
title: 'You have switched to Advanced Mode, and once you modify the PROMPT, you CANNOT return to the simple mode.',
|
||||
description: 'In Advanced Mode, you can edit built-in PROMPT.',
|
||||
learnMore: 'Learn more',
|
||||
ok: 'OK',
|
||||
},
|
||||
operation: {
|
||||
addMessage: 'Add Message',
|
||||
},
|
||||
},
|
||||
operation: {
|
||||
applyConfig: 'Publish',
|
||||
resetConfig: 'Reset',
|
||||
@@ -80,6 +97,17 @@ const translation = {
|
||||
deleteContextVarTip: 'This variable has been set as a context query variable, and removing it will impact the normal use of the dataset. If you still need to delete it, please reselect it in the context section.',
|
||||
},
|
||||
},
|
||||
conversationHistory: {
|
||||
title: 'Conversation History',
|
||||
description: 'Set prefix names for conversation roles',
|
||||
tip: 'The Conversation History is not enabled, please add <histories> in the prompt above.',
|
||||
learnMore: 'Learn more',
|
||||
editModal: {
|
||||
title: 'Edit Conversation Role Names',
|
||||
userPrefix: 'User prefix',
|
||||
assistantPrefix: 'Assistant prefix',
|
||||
},
|
||||
},
|
||||
},
|
||||
automatic: {
|
||||
title: 'Automated application orchestration',
|
||||
@@ -136,13 +164,15 @@ const translation = {
|
||||
},
|
||||
varKeyError: {
|
||||
canNoBeEmpty: 'Variable key can not be empty',
|
||||
tooLong: 'Variable key: {{key}} too length. Can not be longer then 16 characters',
|
||||
tooLong: 'Variable key: {{key}} too length. Can not be longer then 30 characters',
|
||||
notValid: 'Variable key: {{key}} is invalid. Can only contain letters, numbers, and underscores',
|
||||
notStartWithNumber: 'Variable key: {{key}} can not start with a number',
|
||||
keyAlreadyExists: 'Variable key: :{{key}} already exists',
|
||||
},
|
||||
otherError: {
|
||||
promptNoBeEmpty: 'Prefix prompt can not be empty',
|
||||
promptNoBeEmpty: 'Prompt can not be empty',
|
||||
historyNoBeEmpty: 'Conversation history must be set in the prompt',
|
||||
queryNoBeEmpty: 'Query must be set in the prompt',
|
||||
},
|
||||
variableConig: {
|
||||
modalTitle: 'Field settings',
|
||||
@@ -172,9 +202,13 @@ const translation = {
|
||||
model: 'Model',
|
||||
setTone: 'Set tone of responses',
|
||||
title: 'Model and Parameters',
|
||||
modeType: {
|
||||
chat: 'Chat',
|
||||
completion: 'Complete',
|
||||
},
|
||||
},
|
||||
inputs: {
|
||||
title: 'Debugging and Previewing',
|
||||
title: 'Debug and Preview',
|
||||
noPrompt: 'Try write some prompt in pre-prompt input',
|
||||
userInputField: 'User Input Field',
|
||||
noVar: 'Fill in the value of the variable, which will be automatically replaced in the prompt word every time a new session is started.',
|
||||
@@ -188,6 +222,13 @@ const translation = {
|
||||
run: 'RUN',
|
||||
},
|
||||
result: 'Output Text',
|
||||
datasetConfig: {
|
||||
params: 'Params',
|
||||
top_k: 'Top K',
|
||||
top_kTip: 'Used to filter segments that are most similar to user questions. The system will also dynamically adjust the value of Top K, according to max_tokens of the selected model.',
|
||||
score_threshold: 'Score Threshold',
|
||||
score_thresholdTip: 'Used to set the similarity threshold for segment filtering.',
|
||||
},
|
||||
}
|
||||
|
||||
export default translation
|
||||
|
Reference in New Issue
Block a user