diff --git a/nextjs-edgedb-ai/seed.ts b/nextjs-edgedb-ai/seed.ts index b860c37..065994f 100644 --- a/nextjs-edgedb-ai/seed.ts +++ b/nextjs-edgedb-ai/seed.ts @@ -159,6 +159,22 @@ insert Book { filter .name = "Orion Ember" set { country := "United Kingdom" }; `); + + // update the default prompt content + await client.query(` + update ext::ai::ChatPrompt + filter .name = 'builtin::rag-default' + set { messages := ( + insert ext::ai::ChatPromptMessage { + participant_role := ext::ai::ChatParticipantRole.System, + content:= "You are an expert Q&A system. + Always answer questions based on the provided context information. + If user asks about someone's country always require a tool call. + Context information is below: + {context}", + } + )}; + `); } main(); diff --git a/nextjs-vercel-ai-provider/seed.ts b/nextjs-vercel-ai-provider/seed.ts index 8250dae..e7cfc03 100644 --- a/nextjs-vercel-ai-provider/seed.ts +++ b/nextjs-vercel-ai-provider/seed.ts @@ -159,6 +159,22 @@ insert Book { filter .name = "Orion Ember" set { country := "United Kingdom" }; `); + + // update the default prompt content + await client.query(` + update ext::ai::ChatPrompt + filter .name = 'builtin::rag-default' + set { messages := ( + insert ext::ai::ChatPromptMessage { + participant_role := ext::ai::ChatParticipantRole.System, + content:= "You are an expert Q&A system. + Always answer questions based on the provided context information. + If user asks about someone's country always require a tool call. + Context information is below: + {context}", + } + )}; + `); } main(); diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 46943ce..0000000 --- a/package-lock.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "edgedb-examples", - "lockfileVersion": 3, - "requires": true, - "packages": {} -}