mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
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:
@@ -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) {}
|
||||
}
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user