chore: improve prompt auto generator (#6514)

This commit is contained in:
Joel
2024-07-22 11:44:12 +08:00
committed by GitHub
parent dfb6f4fec6
commit a6350daa02
20 changed files with 454 additions and 237 deletions

View File

@@ -24,7 +24,7 @@ const translation = {
resetConfig: 'Reset',
debugConfig: 'Debug',
addFeature: 'Add Feature',
automatic: 'Automatic',
automatic: 'Generate',
stopResponding: 'Stop responding',
agree: 'like',
disagree: 'dislike',
@@ -199,22 +199,58 @@ const translation = {
},
},
},
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. Extract insights and summarize information from long reports and articles',
generate: {
title: 'Prompt Generator',
description: 'The prompt generator can convert input task instructions into high-quality, structured prompts. Please write clear and specific instructions as much detail as possible. The quality of the generated prompts depends on the inference model you choose.',
tryIt: 'Try it',
instruction: 'Instructions',
instructionPlaceHolder: 'Write clear and specific instructions.',
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.',
resTitle: 'Generated Prompt',
noDataLine1: 'Describe your use case on the left,',
noDataLine2: 'the orchestration preview will show here.',
apply: 'Apply',
loading: 'Orchestrating the application for you...',
overwriteTitle: 'Override existing configuration?',
overwriteMessage: 'Applying this orchestration will override existing configuration.',
overwriteMessage: 'Applying this prompt will override existing configuration.',
template: {
pythonDebugger: {
name: 'Python debugger',
instruction: 'A bot that can generate and debug your code based on your instruction',
},
translation: {
name: 'Translation',
instruction: 'A translator that can translate multiple languages',
},
professionalAnalyst: {
name: 'Professional analyst',
instruction: 'Extract insights, identify risk and distill key information from long reports into single memo',
},
excelFormulaExpert: {
name: 'Excel formula expert',
instruction: 'A chatbot that can help novice users understand, use and create Excel formulas based on user instructions',
},
travelPlanning: {
name: 'Travel planning',
instruction: 'The Travel Planning Assistant is an intelligent tool designed to help users effortlessly plan their trips',
},
SQLSorcerer: {
name: 'SQL sorcerer',
instruction: 'Transform everyday language into SQL queries',
},
GitGud: {
name: 'Git gud',
instruction: 'Generate appropriate Git commands based on user described version control actions',
},
meetingTakeaways: {
name: 'Meeting takeaways',
instruction: 'Distill meetings into concise summaries including discussion topics, key takeaways, and action items',
},
writingsPolisher: {
name: 'Writing polisher',
instruction: 'Use advanced copyediting techniques to improve your writings',
},
},
},
resetConfig: {
title: 'Confirm reset?',