Files
2023-04-17 16:14:39 +08:00

15 lines
665 B
TypeScript

import generalBot from "../general-bot";
export default {
id: "sql-chat-bot",
name: "SQL Chat bot",
description: "The wonderful SQL Chat bot.",
avatar: "",
getPrompt: (schema?: string): string => {
const generalPrompt = generalBot.getPrompt();
const basicPrompt = `Please follow the instructions to answer the questions:
1. Set the language to the markdown code block for each code block. For example, \`SELECT * FROM table\` is SQL.`;
return `${generalPrompt}\nThis is my database schema"${schema}". You will see the tables and columns in the database. And please answer the following questions about the database.\n${basicPrompt}`;
},
};