Skip to content

Commit

Permalink
new(core.gbapp): LLM alerts for data.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Oct 17, 2024
1 parent 5bae484 commit 44e3ecc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/llm.gblib/services/ChatServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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}
------------
Expand Down

0 comments on commit 44e3ecc

Please sign in to comment.