mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-09-23 18:43:18 +08:00
15 lines
665 B
TypeScript
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}`;
|
|
},
|
|
};
|