feat(server): new prompt for expand mind map (#6678)

feat(server): new prompt for expand mind map

feat: add migration file
This commit is contained in:
doouding
2024-04-24 07:10:11 +00:00
parent e5baa81a50
commit 6525c99631
4 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { PrismaClient } from '@prisma/client';
import { refreshPrompts } from './utils/prompts';
export class UpdatePrompt1713864641056 {
// do the migration
static async up(db: PrismaClient) {
await refreshPrompts(db);
}
// revert the migration
static async down(_db: PrismaClient) {}
}

View File

@@ -250,6 +250,21 @@ export const prompts: Prompt[] = [
},
],
},
{
name: 'Expand mind map',
action: 'Expand mind map',
model: 'gpt-4-turbo-preview',
messages: [
{
role: 'assistant',
content: `An existing mind map is displayed as a markdown list:
{{mindmap}}.
Please expand the node “{{content}}", adding more essential details and subtopics to the existing mind map in the same markdown list format. Only output the expand part without the original mind map. No need to include any additional text or explanation`,
},
],
},
{
name: 'Improve writing for it',
action: 'Improve writing for it',