new(core.gbapp): LLM alerts for data.
This commit is contained in:
parent
5bae484af0
commit
44e3ecc077
1 changed files with 3 additions and 3 deletions
|
@ -551,9 +551,9 @@ export class ChatServices {
|
|||
|
||||
let dataSource;
|
||||
if (answerSource === 'cache') {
|
||||
|
||||
let sqliteFilePath =
|
||||
path.join('work', GBUtil.getGBAIPath(min.botId), `${con['name']}.sqlite`);
|
||||
path.join('work', GBUtil.getGBAIPath(min.botId), `${con['name']}.sqlite`);
|
||||
GBLogEx.info(min, `Using data from cache: Path.basename(${sqliteFilePath}).`);
|
||||
|
||||
dataSource = new DataSource({
|
||||
type: 'sqlite',
|
||||
|
@ -619,7 +619,7 @@ export class ChatServices {
|
|||
* Create the final prompt template which is tasked with getting the natural
|
||||
* language response to the SQL query.
|
||||
*/
|
||||
const finalResponsePrompt =
|
||||
const finalResponsePrompt =
|
||||
PromptTemplate.fromTemplate(`Based on the table schema below, question, SQL query, and SQL response, write a natural language response:
|
||||
Optimize answers for KPI people. ${systemPrompt}
|
||||
------------
|
||||
|
|
Loading…
Add table
Reference in a new issue