2023-05-15 08:51:32 +08:00
const translation = {
2023-10-12 23:14:28 +08:00
pageTitle : {
line1 : 'PROMPT' ,
line2 : 'Engineering' ,
} ,
2024-01-23 19:31:56 +08:00
orchestrate : 'Orchestrate' ,
2023-10-12 23:14:28 +08:00
promptMode : {
2023-10-19 11:19:34 +08:00
simple : 'Switch to Expert Mode to edit the whole PROMPT' ,
advanced : 'Expert Mode' ,
2023-10-12 23:14:28 +08:00
switchBack : 'Switch back' ,
advancedWarning : {
2023-10-19 11:19:34 +08:00
title : 'You have switched to Expert Mode, and once you modify the PROMPT, you CANNOT return to the basic mode.' ,
description : 'In Expert Mode, you can edit whole PROMPT.' ,
2023-10-12 23:14:28 +08:00
learnMore : 'Learn more' ,
ok : 'OK' ,
} ,
operation : {
addMessage : 'Add Message' ,
} ,
2023-10-19 17:52:14 +08:00
contextMissing : 'Context component missed, the effectiveness of the prompt may not be good.' ,
2023-10-12 23:14:28 +08:00
} ,
2023-05-15 08:51:32 +08:00
operation : {
2023-06-06 10:52:02 +08:00
applyConfig : 'Publish' ,
resetConfig : 'Reset' ,
2023-11-27 11:47:48 +08:00
debugConfig : 'Debug' ,
2023-06-06 10:52:02 +08:00
addFeature : 'Add Feature' ,
automatic : 'Automatic' ,
stopResponding : 'Stop responding' ,
2023-07-12 17:27:50 +08:00
agree : 'like' ,
disagree : 'dislike' ,
cancelAgree : 'Cancel like' ,
cancelDisagree : 'Cancel dislike' ,
2023-07-04 14:21:51 +08:00
userAction : 'User ' ,
2023-05-15 08:51:32 +08:00
} ,
notSetAPIKey : {
2023-06-06 10:52:02 +08:00
title : 'LLM provider key has not been set' ,
trailFinished : 'Trail finished' ,
description : 'The LLM provider key has not been set, and it needs to be set before debugging.' ,
settingBtn : 'Go to settings' ,
2023-05-15 08:51:32 +08:00
} ,
trailUseGPT4Info : {
title : 'Does not support gpt-4 now' ,
description : 'Use gpt-4, please set API Key.' ,
} ,
feature : {
groupChat : {
title : 'Chat enhance' ,
2023-06-06 10:52:02 +08:00
description : 'Add pre-conversation settings for apps can enhance user experience.' ,
2023-05-15 08:51:32 +08:00
} ,
groupExperience : {
title : 'Experience enhance' ,
} ,
conversationOpener : {
2023-06-06 10:52:02 +08:00
title : 'Conversation remakers' ,
description : 'In a chat app, the first sentence that the AI actively speaks to the user is usually used as a welcome.' ,
2023-05-15 08:51:32 +08:00
} ,
suggestedQuestionsAfterAnswer : {
title : 'Follow-up' ,
description : 'Setting up next questions suggestion can give users a better chat.' ,
resDes : '3 suggestions for user next question.' ,
tryToAsk : 'Try to ask' ,
} ,
moreLikeThis : {
2023-06-06 10:52:02 +08:00
title : 'More like this' ,
description : 'Generate multiple texts at once, and then edit and continue to generate' ,
generateNumTip : 'Number of each generated times' ,
tip : 'Using this feature will incur additional tokens overhead' ,
2023-05-15 08:51:32 +08:00
} ,
2023-07-07 17:50:42 +08:00
speechToText : {
title : 'Speech to Text' ,
description : 'Once enabled, you can use voice input.' ,
resDes : 'Voice input is enabled' ,
} ,
2024-01-24 01:05:37 +08:00
textToSpeech : {
title : 'Text to Speech' ,
description : 'Once enabled, text can be converted to speech.' ,
resDes : 'Text to Audio is enabled' ,
} ,
2023-09-09 19:17:12 +08:00
citation : {
title : 'Citations and Attributions' ,
description : 'Once enabled, show source document and attributed section of the generated content.' ,
resDes : 'Citations and Attributions is enabled' ,
} ,
2023-12-18 15:41:24 +08:00
annotation : {
2023-12-18 17:13:15 +08:00
title : 'Annotation Reply' ,
2023-12-18 15:41:24 +08:00
description : 'You can manually add high-quality response to the cache for prioritized matching with similar user questions.' ,
resDes : 'Annotation Response is enabled' ,
scoreThreshold : {
title : 'Score Threshold' ,
2023-12-18 17:13:15 +08:00
description : 'Used to set the similarity threshold for annotation reply.' ,
2023-12-18 15:41:24 +08:00
easyMatch : 'Easy Match' ,
accurateMatch : 'Accurate Match' ,
} ,
matchVariable : {
title : 'Match Variable' ,
choosePlaceholder : 'Choose match variable' ,
} ,
cacheManagement : 'Annotations' ,
2023-12-18 17:13:15 +08:00
cached : 'Annotated' ,
2023-12-18 15:41:24 +08:00
remove : 'Remove' ,
removeConfirm : 'Delete this annotation ?' ,
add : 'Add annotation' ,
edit : 'Edit annotation' ,
} ,
2023-05-15 08:51:32 +08:00
dataSet : {
2023-06-06 10:52:02 +08:00
title : 'Context' ,
2023-11-27 17:22:16 +08:00
noData : 'You can import Knowledge as context' ,
2023-06-06 10:52:02 +08:00
words : 'Words' ,
textBlocks : 'Text Blocks' ,
2023-11-27 17:22:16 +08:00
selectTitle : 'Select reference Knowledge' ,
selected : 'Knowledge selected' ,
noDataSet : 'No Knowledge found' ,
2023-06-06 10:52:02 +08:00
toCreate : 'Go to create' ,
2023-11-27 17:22:16 +08:00
notSupportSelectMulti : 'Currently only support one Knowledge' ,
2023-09-27 14:53:22 +08:00
queryVariable : {
title : 'Query variable' ,
tip : 'This variable will be used as the query input for context retrieval, obtaining context information related to the input of this variable.' ,
choosePlaceholder : 'Choose query variable' ,
noVar : 'No variables' ,
noVarTip : 'please create a variable under the Variables section' ,
2023-11-27 17:22:16 +08:00
unableToQueryDataSet : 'Unable to query the Knowledge' ,
unableToQueryDataSetTip : 'Unable to query the Knowledge successfully, please choose a context query variable in the context section.' ,
2023-09-27 14:53:22 +08:00
ok : 'OK' ,
contextVarNotEmpty : 'context query variable can not be empty' ,
deleteContextVarTitle : 'Delete variable “{{varName}}”?' ,
2023-11-27 17:22:16 +08:00
deleteContextVarTip : 'This variable has been set as a context query variable, and removing it will impact the normal use of the Knowledge. If you still need to delete it, please reselect it in the context section.' ,
2023-09-27 14:53:22 +08:00
} ,
2023-06-06 10:52:02 +08:00
} ,
2023-11-06 19:36:32 +08:00
tools : {
title : 'Tools' ,
tips : 'Tools provide a standard API call method, taking user input or variables as request parameters for querying external data as context.' ,
toolsInUse : '{{count}} tools in use' ,
modal : {
title : 'Tool' ,
toolType : {
title : 'Tool Type' ,
placeholder : 'Please select the tool type' ,
} ,
name : {
title : 'Name' ,
placeholder : 'Please enter the name' ,
} ,
variableName : {
title : 'Variable Name' ,
placeholder : 'Please enter the variable name' ,
} ,
} ,
} ,
2023-10-12 23:14:28 +08:00
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' ,
} ,
} ,
2023-11-06 19:36:32 +08:00
toolbox : {
title : 'TOOLBOX' ,
} ,
moderation : {
title : 'Content moderation' ,
2023-11-07 17:56:07 +08:00
description : 'Secure model output by using moderation API or maintaining a sensitive word list.' ,
2023-11-06 19:36:32 +08:00
allEnabled : 'INPUT/OUTPUT Content Enabled' ,
inputEnabled : 'INPUT Content Enabled' ,
outputEnabled : 'OUTPUT Content Enabled' ,
modal : {
title : 'Content moderation settings' ,
provider : {
title : 'Provider' ,
openai : 'OpenAI Moderation' ,
openaiTip : {
prefix : 'OpenAI Moderation requires an OpenAI API key configured in the ' ,
suffix : '.' ,
} ,
keywords : 'Keywords' ,
} ,
keywords : {
tip : 'One per line, separated by line breaks. Up to 100 characters per line.' ,
placeholder : 'One per line, separated by line breaks' ,
line : 'Line' ,
} ,
content : {
input : 'Moderate INPUT Content' ,
output : 'Moderate OUTPUT Content' ,
preset : 'Preset replies' ,
placeholder : 'Preset replies content here' ,
condition : 'Moderate INPUT and OUTPUT Content enabled at least one' ,
fromApi : 'Preset replies are returned by API' ,
errorMessage : 'Preset replies cannot be empty' ,
supportMarkdown : 'Markdown supported' ,
} ,
openaiNotConfig : {
before : 'OpenAI Moderation requires an OpenAI API key configured in the' ,
after : '' ,
} ,
} ,
} ,
2023-06-06 10:52:02 +08:00
} ,
automatic : {
title : 'Automated application orchestration' ,
description : 'Describe your scenario, Dify will orchestrate an application for you.' ,
intendedAudience : 'Who is the intended audience?' ,
intendedAudiencePlaceHolder : 'e.g. Student' ,
solveProblem : 'What problems do they hope AI can solve for them?' ,
solveProblemPlaceHolder : 'e.g. Assessing academic performance' ,
generate : 'Generate' ,
audiencesRequired : 'Audiences required' ,
problemRequired : 'Problem required' ,
resTitle : 'We have orchestrated the following application for you.' ,
apply : 'Apply this orchestration' ,
noData : 'Describe your use case on the left, the orchestration preview will show here.' ,
loading : 'Orchestrating the application for you...' ,
overwriteTitle : 'Override existing configuration?' ,
overwriteMessage : 'Applying this orchestration will override existing configuration.' ,
2023-05-15 08:51:32 +08:00
} ,
resetConfig : {
2023-06-06 10:52:02 +08:00
title : 'Confirm reset?' ,
2023-05-15 08:51:32 +08:00
message :
2023-06-06 10:52:02 +08:00
'Reset discards changes, restoring the last published configuration.' ,
2023-05-15 08:51:32 +08:00
} ,
errorMessage : {
2023-06-06 10:52:02 +08:00
nameOfKeyRequired : 'name of the key: {{key}} required' ,
2023-07-19 12:41:35 +08:00
valueOfVarRequired : '{{key}} value can not be empty' ,
2023-06-06 10:52:02 +08:00
queryRequired : 'Request text is required.' ,
2023-05-15 08:51:32 +08:00
waitForResponse :
2023-06-06 10:52:02 +08:00
'Please wait for the response to the previous message to complete.' ,
2023-07-07 10:35:05 +08:00
waitForBatchResponse :
'Please wait for the response to the batch task to complete.' ,
2023-08-12 00:57:13 +08:00
notSelectModel : 'Please choose a model' ,
2023-11-13 22:32:39 +08:00
waitForImgUpload : 'Please wait for the image to upload' ,
2023-05-15 08:51:32 +08:00
} ,
2024-01-23 19:31:56 +08:00
chatSubTitle : 'Instructions' ,
2023-06-06 10:52:02 +08:00
completionSubTitle : 'Prefix Prompt' ,
2023-05-15 08:51:32 +08:00
promptTip :
2023-06-06 10:52:02 +08:00
'Prompts guide AI responses with instructions and constraints. Insert variables like {{input}}. This prompt won\'t be visible to users.' ,
formattingChangedTitle : 'Formatting changed' ,
2023-05-15 08:51:32 +08:00
formattingChangedText :
2023-06-06 10:52:02 +08:00
'Modifying the formatting will reset the debug area, are you sure?' ,
variableTitle : 'Variables' ,
2023-05-15 08:51:32 +08:00
variableTip :
2023-06-06 10:52:02 +08:00
'Users fill variables in a form, automatically replacing variables in the prompt.' ,
notSetVar : 'Variables allow users to introduce prompt words or opening remarks when filling out forms. You can try entering "{{input}}" in the prompt words.' ,
autoAddVar : 'Undefined variables referenced in pre-prompt, are you want to add them in user input form?' ,
2023-05-15 08:51:32 +08:00
variableTable : {
2023-06-06 10:52:02 +08:00
key : 'Variable Key' ,
name : 'User Input Field Name' ,
optional : 'Optional' ,
type : 'Input Type' ,
action : 'Actions' ,
typeString : 'String' ,
typeSelect : 'Select' ,
2023-05-15 08:51:32 +08:00
} ,
varKeyError : {
2023-06-06 10:52:02 +08:00
canNoBeEmpty : 'Variable key can not be empty' ,
2023-10-12 23:14:28 +08:00
tooLong : 'Variable key: {{key}} too length. Can not be longer then 30 characters' ,
2023-06-06 10:52:02 +08:00
notValid : 'Variable key: {{key}} is invalid. Can only contain letters, numbers, and underscores' ,
notStartWithNumber : 'Variable key: {{key}} can not start with a number' ,
2023-08-16 10:31:08 +08:00
keyAlreadyExists : 'Variable key: :{{key}} already exists' ,
2023-05-15 08:51:32 +08:00
} ,
2023-09-10 00:12:34 +08:00
otherError : {
2023-10-12 23:14:28 +08:00
promptNoBeEmpty : 'Prompt can not be empty' ,
historyNoBeEmpty : 'Conversation history must be set in the prompt' ,
queryNoBeEmpty : 'Query must be set in the prompt' ,
2023-09-10 00:12:34 +08:00
} ,
2023-05-15 08:51:32 +08:00
variableConig : {
2023-06-06 10:52:02 +08:00
modalTitle : 'Field settings' ,
description : 'Setting for variable {{varName}}' ,
2023-05-15 08:51:32 +08:00
fieldType : 'Field type' ,
2023-09-10 00:12:34 +08:00
string : 'Short Text' ,
paragraph : 'Paragraph' ,
2023-05-15 08:51:32 +08:00
select : 'Select' ,
notSet : 'Not set, try typing {{input}} in the prefix prompt' ,
2023-06-06 10:52:02 +08:00
stringTitle : 'Form text box options' ,
maxLength : 'Max length' ,
options : 'Options' ,
addOption : 'Add option' ,
2024-01-23 19:31:56 +08:00
apiBasedVar : 'API-based Variable' ,
2023-05-15 08:51:32 +08:00
} ,
2023-11-13 22:32:39 +08:00
vision : {
name : 'Vision' ,
description : 'Enable Vision will allows the model to take in images and answer questions about them. ' ,
settings : 'Settings' ,
visionSettings : {
title : 'Vision Settings' ,
resolution : 'Resolution' ,
resolutionTooltip : ` low res will allow model receive a low-res 512 x 512 version of the image, and represent the image with a budget of 65 tokens. This allows the API to return faster responses and consume fewer input tokens for use cases that do not require high detail.
\ n
high res will first allows the model to see the low res image and then creates detailed crops of input images as 512 px squares based on the input image size . Each of the detailed crops uses twice the token budget for a total of 129 tokens . ` ,
high : 'High' ,
low : 'Low' ,
uploadMethod : 'Upload Method' ,
both : 'Both' ,
localUpload : 'Local Upload' ,
url : 'URL' ,
uploadLimit : 'Upload Limit' ,
} ,
} ,
2024-02-15 22:41:18 +08:00
voice : {
name : 'Voice' ,
description : 'Text to speech voice Settings' ,
settings : 'Settings' ,
voiceSettings : {
title : 'Voice Settings' ,
language : 'Language' ,
resolutionTooltip : 'Text-to-speech voice support language。' ,
voice : 'Voice' ,
} ,
} ,
2023-05-15 08:51:32 +08:00
openingStatement : {
2024-01-23 19:31:56 +08:00
title : 'Conversation Opener' ,
2023-06-06 10:52:02 +08:00
add : 'Add' ,
2024-01-23 19:31:56 +08:00
writeOpner : 'Write opener' ,
placeholder : 'Write your opener message here, you can use variables, try type {{variable}}.' ,
openingQuestion : 'Opening Questions' ,
2023-05-15 08:51:32 +08:00
noDataPlaceHolder :
2023-06-06 10:52:02 +08:00
'Starting the conversation with the user can help AI establish a closer connection with them in conversational applications.' ,
2023-05-15 08:51:32 +08:00
varTip : 'You can use variables, try type {{variable}}' ,
2023-06-06 10:52:02 +08:00
tooShort : 'At least 20 words of initial prompt are required to generate an opening remarks for the conversation.' ,
notIncludeKey : 'The initial prompt does not include the variable: {{key}}. Please add it to the initial prompt.' ,
2023-05-15 08:51:32 +08:00
} ,
modelConfig : {
2023-06-06 10:52:02 +08:00
model : 'Model' ,
setTone : 'Set tone of responses' ,
title : 'Model and Parameters' ,
2023-10-12 23:14:28 +08:00
modeType : {
chat : 'Chat' ,
completion : 'Complete' ,
} ,
2023-05-15 08:51:32 +08:00
} ,
inputs : {
2023-10-12 23:14:28 +08:00
title : 'Debug and Preview' ,
2023-06-06 10:52:02 +08:00
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.' ,
2023-05-15 08:51:32 +08:00
chatVarTip :
2023-06-06 10:52:02 +08:00
'Fill in the value of the variable, which will be automatically replaced in the prompt word every time a new session is started' ,
2023-05-15 08:51:32 +08:00
completionVarTip :
2023-06-06 10:52:02 +08:00
'Fill in the value of the variable, which will be automatically replaced in the prompt words every time a question is submitted.' ,
previewTitle : 'Prompt preview' ,
queryTitle : 'Query content' ,
queryPlaceholder : 'Please enter the request text.' ,
run : 'RUN' ,
2023-05-15 08:51:32 +08:00
} ,
2023-06-06 10:52:02 +08:00
result : 'Output Text' ,
2023-10-12 23:14:28 +08:00
datasetConfig : {
2023-11-21 13:46:07 +08:00
settingTitle : 'Retrieval settings' ,
2023-11-18 11:53:35 +08:00
retrieveOneWay : {
title : 'N-to-1 retrieval' ,
2023-11-27 17:22:16 +08:00
description : 'Based on user intent and Knowledge descriptions, the Agent autonomously selects the best Knowledge for querying. Best for applications with distinct, limited Knowledge.' ,
2023-11-18 11:53:35 +08:00
} ,
retrieveMultiWay : {
title : 'Multi-path retrieval' ,
2023-11-27 17:22:16 +08:00
description : 'Based on user intent, queries across all Knowledge, retrieves relevant text from multi-sources, and selects the best results matching the user query after reranking. Configuration of the Rerank model API is required.' ,
2023-11-18 11:53:35 +08:00
} ,
rerankModelRequired : 'Rerank model is required' ,
2023-10-12 23:14:28 +08:00
params : 'Params' ,
top_k : 'Top K' ,
2023-11-27 17:22:16 +08:00
top_kTip : 'Used to filter chunks 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.' ,
2023-10-12 23:14:28 +08:00
score_threshold : 'Score Threshold' ,
2023-11-27 17:22:16 +08:00
score_thresholdTip : 'Used to set the similarity threshold for chunks filtering.' ,
retrieveChangeTip : 'Modifying the index mode and retrieval mode may affect applications associated with this Knowledge.' ,
2023-10-12 23:14:28 +08:00
} ,
2024-01-25 12:36:55 +08:00
debugAsSingleModel : 'Debug as Single Model' ,
debugAsMultipleModel : 'Debug as Multiple Models' ,
2024-01-27 03:56:23 +08:00
duplicateModel : 'Duplicate' ,
2024-01-25 12:36:55 +08:00
publishAs : 'Publish as' ,
2024-01-23 19:31:56 +08:00
assistantType : {
name : 'Assistant Type' ,
chatAssistant : {
name : 'Basic Assistant' ,
description : 'Build a chat-based assistant using a Large Language Model' ,
} ,
agentAssistant : {
name : 'Agent Assistant' ,
description : 'Build an intelligent Agent which can autonomously choose tools to complete the tasks' ,
} ,
} ,
agent : {
agentMode : 'Agent Mode' ,
agentModeDes : 'Set the type of inference mode for the agent' ,
agentModeType : {
ReACT : 'ReAct' ,
functionCall : 'Function Calling' ,
} ,
setting : {
name : 'Agent Settings' ,
description : 'Agent Assistant settings allow setting agent mode and advanced features like built-in prompts, only available in Agent type.' ,
maximumIterations : {
name : 'Maximum Iterations' ,
description : 'Limit the number of iterations an agent assistant can execute' ,
} ,
} ,
buildInPrompt : 'Build-In Prompt' ,
firstPrompt : 'First Prompt' ,
nextIteration : 'Next Iteration' ,
promptPlaceholder : 'Write your prompt here' ,
tools : {
name : 'Tools' ,
description : 'Using tools can extend the capabilities of LLM, such as searching the internet or performing scientific calculations' ,
enabled : 'Enabled' ,
} ,
} ,
2023-06-06 10:52:02 +08:00
}
2023-05-15 08:51:32 +08:00
2023-06-06 10:52:02 +08:00
export default translation