@algotech-ce/interpretor 4.1.66 → 4.1.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
1
  import { CustomResolver } from '../custom-resolver.type';
2
- import { PairDto } from '@algotech-ce/core';
2
+ import { SmartObjectDto, SysFile } from '@algotech-ce/core';
3
3
  export declare class TaskAIChatDto {
4
4
  model: CustomResolver<string>;
5
5
  context: CustomResolver<any>;
6
- responseType: CustomResolver<string>;
7
- dataSource: CustomResolver<string>;
8
- inputs: CustomResolver<PairDto[]>;
9
- inputsType: CustomResolver<string[]>;
6
+ responseType: CustomResolver<'json' | 'text'>;
7
+ indexName: CustomResolver<string>;
8
+ inputs: CustomResolver<(SmartObjectDto | SysFile | any)[]>;
10
9
  sample: CustomResolver<any>;
11
10
  prompt: CustomResolver<string>;
11
+ similarityTopK: CustomResolver<number>;
12
12
  temperature: CustomResolver<number>;
13
- top_p: CustomResolver<number>;
14
- max_tokens: CustomResolver<number>;
15
- presence_penalty: CustomResolver<number>;
16
- frequency_penalty: CustomResolver<number>;
13
+ topP: CustomResolver<number>;
14
+ maxTokens: CustomResolver<number>;
15
+ presencePenalty: CustomResolver<number>;
16
+ frequencyPenalty: CustomResolver<number>;
17
17
  }
@@ -29,7 +29,7 @@ __decorate([
29
29
  __decorate([
30
30
  (0, class_validator_1.IsDefined)(),
31
31
  __metadata("design:type", Function)
32
- ], TaskAIChatDto.prototype, "dataSource", void 0);
32
+ ], TaskAIChatDto.prototype, "indexName", void 0);
33
33
  __decorate([
34
34
  (0, class_validator_1.IsOptional)(),
35
35
  __metadata("design:type", Function)
@@ -37,15 +37,15 @@ __decorate([
37
37
  __decorate([
38
38
  (0, class_validator_1.IsOptional)(),
39
39
  __metadata("design:type", Function)
40
- ], TaskAIChatDto.prototype, "inputsType", void 0);
40
+ ], TaskAIChatDto.prototype, "sample", void 0);
41
41
  __decorate([
42
42
  (0, class_validator_1.IsOptional)(),
43
43
  __metadata("design:type", Function)
44
- ], TaskAIChatDto.prototype, "sample", void 0);
44
+ ], TaskAIChatDto.prototype, "prompt", void 0);
45
45
  __decorate([
46
46
  (0, class_validator_1.IsOptional)(),
47
47
  __metadata("design:type", Function)
48
- ], TaskAIChatDto.prototype, "prompt", void 0);
48
+ ], TaskAIChatDto.prototype, "similarityTopK", void 0);
49
49
  __decorate([
50
50
  (0, class_validator_1.IsOptional)(),
51
51
  __metadata("design:type", Function)
@@ -53,17 +53,17 @@ __decorate([
53
53
  __decorate([
54
54
  (0, class_validator_1.IsOptional)(),
55
55
  __metadata("design:type", Function)
56
- ], TaskAIChatDto.prototype, "top_p", void 0);
56
+ ], TaskAIChatDto.prototype, "topP", void 0);
57
57
  __decorate([
58
58
  (0, class_validator_1.IsOptional)(),
59
59
  __metadata("design:type", Function)
60
- ], TaskAIChatDto.prototype, "max_tokens", void 0);
60
+ ], TaskAIChatDto.prototype, "maxTokens", void 0);
61
61
  __decorate([
62
62
  (0, class_validator_1.IsOptional)(),
63
63
  __metadata("design:type", Function)
64
- ], TaskAIChatDto.prototype, "presence_penalty", void 0);
64
+ ], TaskAIChatDto.prototype, "presencePenalty", void 0);
65
65
  __decorate([
66
66
  (0, class_validator_1.IsOptional)(),
67
67
  __metadata("design:type", Function)
68
- ], TaskAIChatDto.prototype, "frequency_penalty", void 0);
68
+ ], TaskAIChatDto.prototype, "frequencyPenalty", void 0);
69
69
  //# sourceMappingURL=task-aichat.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"task-aichat.dto.js","sourceRoot":"","sources":["../../../src/dto/tasks/task-aichat.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwD;AAIxD,MAAa,aAAa;CAuCzB;AAvCD,sCAuCC;AArCG;IADC,IAAA,2BAAS,GAAE;;4CACkB;AAG9B;IADC,IAAA,2BAAS,GAAE;;8CACiB;AAG7B;IADC,IAAA,2BAAS,GAAE;;mDACyB;AAGrC;IADC,IAAA,2BAAS,GAAE;;iDACuB;AAGnC;IADC,IAAA,4BAAU,GAAE;;6CACqB;AAGlC;IADC,IAAA,4BAAU,GAAE;;iDACwB;AAGrC;IADC,IAAA,4BAAU,GAAE;;6CACe;AAG5B;IADC,IAAA,4BAAU,GAAE;;6CACkB;AAG/B;IADC,IAAA,4BAAU,GAAE;;kDACuB;AAGpC;IADC,IAAA,4BAAU,GAAE;;4CACiB;AAG9B;IADC,IAAA,4BAAU,GAAE;;iDACsB;AAGnC;IADC,IAAA,4BAAU,GAAE;;uDAC4B;AAGzC;IADC,IAAA,4BAAU,GAAE;;wDAC6B"}
1
+ {"version":3,"file":"task-aichat.dto.js","sourceRoot":"","sources":["../../../src/dto/tasks/task-aichat.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwD;AAIxD,MAAa,aAAa;CAuCzB;AAvCD,sCAuCC;AArCG;IADC,IAAA,2BAAS,GAAE;;4CACkB;AAG9B;IADC,IAAA,2BAAS,GAAE;;8CACiB;AAG7B;IADC,IAAA,2BAAS,GAAE;;mDACkC;AAG9C;IADC,IAAA,2BAAS,GAAE;;gDACsB;AAGlC;IADC,IAAA,4BAAU,GAAE;;6CAC0C;AAGvD;IADC,IAAA,4BAAU,GAAE;;6CACe;AAG5B;IADC,IAAA,4BAAU,GAAE;;6CACkB;AAG/B;IADC,IAAA,4BAAU,GAAE;;qDAC0B;AAGvC;IADC,IAAA,4BAAU,GAAE;;kDACuB;AAGpC;IADC,IAAA,4BAAU,GAAE;;2CACgB;AAG7B;IADC,IAAA,4BAAU,GAAE;;gDACqB;AAGlC;IADC,IAAA,4BAAU,GAAE;;sDAC2B;AAGxC;IADC,IAAA,4BAAU,GAAE;;uDAC4B"}
@@ -3,19 +3,9 @@ import { TaskBase } from './task-base';
3
3
  import { InterpretorValidateDto, InterpretorTaskDto, InterpretorTransferTransitionDto } from '../dto';
4
4
  import { AiMessageDto } from '@algotech-ce/core';
5
5
  export declare class TaskAIChat extends TaskBase {
6
- JSON_MSG: string;
7
- TXT_MSG: string;
8
- PROMPT_MSG: string;
9
- SAMPLE_MSG: string;
10
- DATA_MSG: string;
11
- EXT_ALLOWED: string[];
12
- IMG_MODELS: string[];
13
- responseType: string;
14
- messages: AiMessageDto[];
15
6
  model: string;
16
- advance: any;
17
- custom: any;
7
+ responseType: string;
18
8
  execute(task: InterpretorTaskDto): Observable<InterpretorValidateDto>;
19
- _loadTransfer(task: InterpretorTaskDto, response: any): InterpretorTransferTransitionDto[];
9
+ _loadTransfer(task: InterpretorTaskDto, response: any, messages: AiMessageDto[]): InterpretorTransferTransitionDto[];
20
10
  _loadErrorTransfer(task: InterpretorTaskDto, error: string): InterpretorTransferTransitionDto[];
21
11
  }
@@ -1,180 +1,81 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  Object.defineProperty(exports, "__esModule", { value: true });
26
3
  exports.TaskAIChat = void 0;
27
4
  const rxjs_1 = require("rxjs");
28
5
  const operators_1 = require("rxjs/operators");
29
6
  const task_base_1 = require("./task-base");
30
7
  const tasks_error_1 = require("../error/tasks-error");
31
- const _ = __importStar(require("lodash"));
8
+ const core_1 = require("@algotech-ce/core");
32
9
  class TaskAIChat extends task_base_1.TaskBase {
33
- constructor() {
34
- super(...arguments);
35
- this.JSON_MSG = 'You are an assistant that responds only in JSON format. No explaination text, no fenced code block, return only JSON.' +
36
- 'You must respond in the language specified by the instructions in the "prompt". ' +
37
- 'Ensure all strings are enclosed in double quotes (") and not single quotes (\').';
38
- this.TXT_MSG = 'You are an assistant that responds with text. ';
39
- this.PROMPT_MSG = 'prompt: ';
40
- this.SAMPLE_MSG = '\n\nsample of result:\n';
41
- this.DATA_MSG = '\n\ndata to analyze:\n';
42
- this.EXT_ALLOWED = ['docx', 'ppt', 'xls', 'xlsx', 'csv', 'pdf'];
43
- this.IMG_MODELS = ['gpt-4o'];
44
- }
45
10
  execute(task) {
46
11
  const customData = task.custom;
47
- return (0, rxjs_1.zip)(customData.context ? customData.context() : (0, rxjs_1.of)([]), customData.responseType(), customData.inputs ? customData.inputs({ formatted: true }) : (0, rxjs_1.of)([]), customData.inputsType ? customData.inputsType() : (0, rxjs_1.of)(null), customData.dataSource ? customData.dataSource() : (0, rxjs_1.of)(null), customData.sample ? customData.sample() : (0, rxjs_1.of)(null), customData.prompt ? customData.prompt() : (0, rxjs_1.of)(''), customData.model ? customData.model() : (0, rxjs_1.of)('gpt-35-turbo'), customData.temperature ? customData.temperature() : (0, rxjs_1.of)(0.7), customData.top_p ? customData.top_p() : (0, rxjs_1.of)(1), customData.max_tokens ? customData.max_tokens() : (0, rxjs_1.of)(null), customData.presence_penalty ? customData.presence_penalty() : (0, rxjs_1.of)(0), customData.frequency_penalty ? customData.frequency_penalty() : (0, rxjs_1.of)(0)).pipe((0, operators_1.catchError)((err) => {
12
+ return (0, rxjs_1.zip)(customData.context ? customData.context() : (0, rxjs_1.of)([]), customData.responseType(), customData.inputs ? customData.inputs({ formatted: true, ignoreClone: true }) : (0, rxjs_1.of)([]), customData.indexName ? customData.indexName() : (0, rxjs_1.of)(null), customData.sample ? customData.sample() : (0, rxjs_1.of)(null), customData.prompt ? customData.prompt() : (0, rxjs_1.of)(''), customData.model ? customData.model() : (0, rxjs_1.of)('gpt-35-turbo'), customData.similarityTopK ? customData.similarityTopK() : (0, rxjs_1.of)(2), customData.temperature ? customData.temperature() : (0, rxjs_1.of)(0.7), customData.topP ? customData.topP() : (0, rxjs_1.of)(1), customData.maxTokens ? customData.maxTokens() : (0, rxjs_1.of)(null), customData.presencePenalty ? customData.presencePenalty() : (0, rxjs_1.of)(0), customData.frequencyPenalty ? customData.frequencyPenalty() : (0, rxjs_1.of)(0)).pipe((0, operators_1.catchError)((err) => {
48
13
  throw this.taskUtils.handleError('ERR-156', err, tasks_error_1.TaskAIChatError);
49
- }), (0, operators_1.mergeMap)(([context, responseType, inputs, inputsType, dataSource, sample, prompt, model, temperature, top_p, max_tokens, presence_penalty, frequency_penalty]) => {
50
- this.responseType = responseType;
51
- this.messages = context?.messages ?? [];
14
+ }), (0, operators_1.mergeMap)(([context, responseType, inputs, indexName, sample, prompt, model, similarityTopK, temperature, topP, maxTokens, presencePenalty, frequencyPenalty]) => {
52
15
  this.model = model;
53
- this.advance = {
54
- temperature,
55
- top_p,
56
- max_tokens,
57
- presence_penalty,
58
- frequency_penalty
59
- };
60
- this.custom = {
61
- responseType,
62
- dataSource,
63
- };
64
- const data$ = inputs.map((input, index) => {
65
- if (input.value.length === 0) {
66
- // empty
67
- return (0, rxjs_1.of)({ [input.key]: '' });
68
- }
69
- // undefined
70
- if (!inputsType[index]) {
71
- return (0, rxjs_1.of)({ [input.key]: '' });
16
+ this.responseType = responseType;
17
+ console.log(inputs);
18
+ const data$ = inputs.map((input) => {
19
+ // empty
20
+ if (input.length === 0) {
21
+ return (0, rxjs_1.of)([]);
72
22
  }
73
23
  // Smart Object
74
- if (inputsType[index].startsWith('so:')) {
75
- return this.soUtils.toJSON(input.value, task.instance.smartobjects, task.instance.context, true).pipe((0, operators_1.map)((value) => ({
76
- [input.key]: value
24
+ if (input instanceof core_1.SmartObjectDto) {
25
+ return this.soUtils.toJSON([input], task.instance.smartobjects, task.instance.context, true).pipe((0, operators_1.map)((value) => ({
26
+ key: '',
27
+ value,
28
+ type: 'so:*'
77
29
  })));
30
+ // File
78
31
  }
79
- switch (inputsType[index]) {
80
- // files
81
- case 'sys:file':
82
- const filterFiles = input.value.filter((input) => this.EXT_ALLOWED.includes(input.ext));
83
- const filterImages = input.value.filter((input) => this.IMG_MODELS.includes(this.model) &&
84
- this.reportsUtils.isImage(input.ext));
85
- // error
86
- const difference = _.difference(input.value, [...filterFiles, ...filterImages]);
87
- if (difference.length > 0) {
88
- return (0, rxjs_1.throwError)(() => new Error('extension is not supported ' + difference.map((item) => item.ext).join(',')));
89
- }
90
- const result = {};
91
- const imagesBase64$ = filterImages.map((file) => this.reportsUtils.getFileB64(file.versionID, file.ext, task.instance.context));
92
- const pdfFiles$ = filterFiles.map((file) => this.reportsUtils.extractText(file.versionID, file.name, task.instance.context));
93
- return (0, rxjs_1.concat)(...pdfFiles$).pipe((0, operators_1.toArray)(), (0, operators_1.tap)((res) => {
94
- result[input.key] = res.map((content) => ({ content }));
95
- }), (0, operators_1.mergeMap)(() => (0, rxjs_1.concat)(...imagesBase64$)), (0, operators_1.toArray)(), (0, operators_1.tap)((res) => {
96
- result.images = res;
97
- }), (0, operators_1.map)(() => result));
98
- // object
99
- default:
100
- return (0, rxjs_1.of)({ [input.key]: input.value });
32
+ else if (input?.versionID && input?.documentID) {
33
+ return this.reportsUtils.getFileB64(input.versionID, input.ext, task.instance.context).pipe((0, operators_1.map)((base64) => ({
34
+ key: '',
35
+ value: {
36
+ base64,
37
+ ext: input.ext,
38
+ fileName: input.name,
39
+ versionID: input.versionID,
40
+ documentID: input.documentID
41
+ },
42
+ type: 'sys:file'
43
+ })));
44
+ // Object
45
+ }
46
+ else {
47
+ return (0, rxjs_1.of)({
48
+ key: '',
49
+ value: input,
50
+ type: 'object'
51
+ });
101
52
  }
102
53
  });
103
- return (0, rxjs_1.concat)(...data$).pipe((0, operators_1.toArray)(), (0, operators_1.map)((array) => [array.reduce((acc, obj) => {
104
- return { ...acc, ...obj };
105
- }, {}), sample, prompt]));
106
- }), (0, operators_1.map)(([data, sample, prompt]) => {
107
- // system
108
- let system = this.messages.find((m) => m.role === 'system');
109
- let content = this.responseType === 'json' ? this.JSON_MSG : this.TXT_MSG;
110
- let images = [];
111
- if (sample && this.responseType === 'json') {
112
- const sampleTxt = `${this.SAMPLE_MSG}***\n${JSON.stringify(sample)}\n***`;
113
- content += sampleTxt;
114
- }
115
- if (data && !_.isEqual(data, {})) {
116
- images = data.images;
117
- delete data.images;
118
- const dataTxt = `${this.DATA_MSG}***\n${JSON.stringify(data)}\n***`;
119
- content += dataTxt;
120
- }
121
- if (system) {
122
- system.content = content;
123
- }
124
- else {
125
- this.messages.push({
126
- role: 'system',
127
- content,
128
- });
129
- }
130
- content = `${this.PROMPT_MSG}${prompt}`;
131
- if (images?.length > 0) {
132
- content = [
133
- ...images.map((image) => ({
134
- type: 'image_url',
135
- image_url: { url: image }
136
- })), {
137
- type: 'text',
138
- text: content
139
- }
140
- ];
141
- }
142
- // user
143
- this.messages.push({
144
- role: 'user',
145
- content
146
- });
147
- return this.messages;
148
- }), (0, operators_1.mergeMap)((messages) => {
149
- return this.smartFlowUtils.chat({ model: this.model, custom: this.custom, ...this.advance, messages }, task.instance.context);
54
+ return (0, rxjs_1.concat)(...data$).pipe((0, operators_1.toArray)(), (0, operators_1.mergeMap)((inputs) => this.smartFlowUtils.chat({
55
+ model,
56
+ prompt,
57
+ inputs,
58
+ responseType,
59
+ sample,
60
+ chatHistory: context?.messages ?? [],
61
+ indexName,
62
+ similarityTopK,
63
+ temperature,
64
+ topP,
65
+ maxTokens,
66
+ presencePenalty,
67
+ frequencyPenalty,
68
+ }, task.instance.context)));
150
69
  }), (0, operators_1.catchError)((e) => {
151
70
  return (0, rxjs_1.of)(e);
152
71
  }), (0, operators_1.map)((result) => {
153
72
  if (result instanceof Error) {
154
73
  return this.taskUtils.computevalidation(this._loadErrorTransfer(task, result.message), 'error');
155
74
  }
156
- if (!result?.choices || result?.choices.length === 0 || !result.choices[0].message) {
157
- return this.taskUtils.computevalidation(this._loadErrorTransfer(task, 'Improperly formatted result'), 'error');
158
- }
159
- const message = { role: result.choices[0].message.role, content: result.choices[0].message.content };
160
- if (this.responseType === 'text') {
161
- this.messages.push(message);
162
- return this.taskUtils.computevalidation(this._loadTransfer(task, message.content));
163
- }
164
- try {
165
- const json = _.isObject(message.content) ? message.content : JSON.parse(message.content);
166
- if (!_.isObject(json)) {
167
- throw new Error('failed');
168
- }
169
- this.messages.push(message);
170
- return this.taskUtils.computevalidation(this._loadTransfer(task, json));
171
- }
172
- catch (e) {
173
- return this.taskUtils.computevalidation(this._loadErrorTransfer(task, 'Failed to parse JSON'), 'error');
174
- }
75
+ return this.taskUtils.computevalidation(this._loadTransfer(task, result.result, result.chatHistory));
175
76
  }));
176
77
  }
177
- _loadTransfer(task, response) {
78
+ _loadTransfer(task, response, messages) {
178
79
  const transfers = [{
179
80
  data: this.taskUtils.getTransitionData(task),
180
81
  saveOnApi: false,
@@ -187,7 +88,7 @@ class TaskAIChat extends task_base_1.TaskBase {
187
88
  value: {
188
89
  model: this.model,
189
90
  response,
190
- messages: this.messages
91
+ messages,
191
92
  }
192
93
  }];
193
94
  return transfers;
@@ -1 +1 @@
1
- {"version":3,"file":"task-aichat.js","sourceRoot":"","sources":["../../src/interpretor-tasks/task-aichat.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA+D;AAC/D,8CAAyE;AACzE,2CAAuC;AAGvC,sDAAuD;AAGvD,0CAA4B;AAE5B,MAAa,UAAW,SAAQ,oBAAQ;IAAxC;;QAEI,aAAQ,GAAG,uHAAuH;YAC9H,kFAAkF;YAClF,kFAAkF,CAAC;QACvF,YAAO,GAAG,gDAAgD,CAAC;QAC3D,eAAU,GAAG,UAAU,CAAA;QACvB,eAAU,GAAG,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K,EAAE,KAAK;aACf,CAAC,CAAC;QACH,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AAzID,gCAyIC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algotech-ce/interpretor",
3
- "version": "4.1.66",
3
+ "version": "4.1.68",
4
4
  "author": "algotech-informatique",
5
5
  "license": "MPL-2.0",
6
6
  "main": "dist/public_api.js",