diff --git a/.vscode/settings.json b/.vscode/settings.json index 3b664107..e6f320b3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,4 @@ { - "git.ignoreLimitWarning": true + "git.ignoreLimitWarning": true, + "cmake.ignoreCMakeListsMissing": true } \ No newline at end of file diff --git a/package.json b/package.json index 9efae544..b8e573ec 100644 --- a/package.json +++ b/package.json @@ -145,7 +145,6 @@ "instagram-private-api": "1.46.1", "iso-639-1": "3.1.2", "isomorphic-fetch": "3.0.0", - "join-images-updated": "1.1.11", "js-md5": "0.8.3", "json-schema-to-zod": "2.1.0", "just-indent": "0.0.1", diff --git a/packages/basic.gblib/services/ImageProcessingServices.ts b/packages/basic.gblib/services/ImageProcessingServices.ts index ab6e7d72..2b2619d8 100644 --- a/packages/basic.gblib/services/ImageProcessingServices.ts +++ b/packages/basic.gblib/services/ImageProcessingServices.ts @@ -33,7 +33,6 @@ import Path from 'path'; import { GBLog, GBMinInstance } from 'botlib'; import { DialogKeywords } from './DialogKeywords.js'; -import joinImages from 'join-images-updated'; import { CollectionUtil } from 'pragmatismo-io-framework'; import { GBAdminService } from '../../admin.gbapp/services/GBAdminService.js'; import urlJoin from 'url-join'; @@ -76,7 +75,7 @@ export class ImageProcessingServices { const botId = min.instance.botId; const path = DialogKeywords.getGBAIPath(min.botId); - const img = await joinImages(paths); + // TODO: const img = await joinImages(paths); const localName = Path.join('work', path, 'cache', `img-mrg${GBAdminService.getRndReadableIdentifier()}.png`); const url = urlJoin(GBServer.globals.publicAddress, min.botId, 'cache', Path.basename(localName)); img.toFile(localName); diff --git a/templates/ai-search.gbai/ai-search.gbdialog/processo.bas b/templates/ai-search.gbai/ai-search.gbdialog/processo.bas new file mode 100644 index 00000000..6c75c254 --- /dev/null +++ b/templates/ai-search.gbai/ai-search.gbdialog/processo.bas @@ -0,0 +1,6 @@ +TALK "Qual o número do processo? " +HEAR processo +text = GET "processo.pdf" +text = "Com base neste documento, responda as dúvidas da pessoa: \n\n" + text +SET CONTEXT text +TALK "Processo ${processo} carregado. Pode me perguntar qualquer coisa do processo ou me peça um resumo da forma que você precisar. " diff --git a/templates/ai-search.gbai/ai-search.gbdialog/start.bas b/templates/ai-search.gbai/ai-search.gbdialog/start.bas new file mode 100644 index 00000000..256b7f13 --- /dev/null +++ b/templates/ai-search.gbai/ai-search.gbdialog/start.bas @@ -0,0 +1,8 @@ +TALK “Olá! “ + username + “! Bem vinda(o)!” + +BEGIN SYSTEM PROMPT + + If someone asks about my technology, I'm an AI virtual assistant powered by the General Bots LLM. + Always answer at the end, saying that your are available, say it each time differently with each response. + +END SYSTEM PROMPT \ No newline at end of file diff --git a/templates/crawler.gbai/crawler.gbot/config.csv b/templates/crawler.gbai/crawler.gbot/config.csv index 00722edb..89a00c9f 100644 --- a/templates/crawler.gbai/crawler.gbot/config.csv +++ b/templates/crawler.gbai/crawler.gbot/config.csv @@ -1,3 +1,3 @@ name,value Website,https://pragmatismo.cloud -Answer Mode,direct \ No newline at end of file +Answer Mode,document \ No newline at end of file