@memberjunction/query-gen 2.127.0 → 2.129.0
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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +37 -0
- package/dist/utils/prompt-helpers.d.ts +1 -1
- package/dist/utils/prompt-helpers.d.ts.map +1 -1
- package/dist/vectors/EmbeddingService.js +3 -3
- package/dist/vectors/EmbeddingService.js.map +1 -1
- package/package.json +10 -10
- package/src/core/QueryFixer.ts +1 -1
- package/src/core/QueryRefiner.ts +1 -1
- package/src/core/QueryWriter.ts +1 -1
- package/src/core/QuestionGenerator.ts +1 -1
- package/src/utils/prompt-helpers.ts +1 -1
- package/src/vectors/EmbeddingService.ts +3 -3
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @memberjunction/query-gen
|
|
2
2
|
|
|
3
|
+
## 2.129.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c391d7d]
|
|
8
|
+
- Updated dependencies [8c412cf]
|
|
9
|
+
- Updated dependencies [fbae243]
|
|
10
|
+
- Updated dependencies [6ce6e67]
|
|
11
|
+
- Updated dependencies [0fb62af]
|
|
12
|
+
- Updated dependencies [7d42aa5]
|
|
13
|
+
- Updated dependencies [c7e38aa]
|
|
14
|
+
- Updated dependencies [7a39231]
|
|
15
|
+
- @memberjunction/core@2.129.0
|
|
16
|
+
- @memberjunction/global@2.129.0
|
|
17
|
+
- @memberjunction/sqlserver-dataprovider@2.129.0
|
|
18
|
+
- @memberjunction/ai-core-plus@2.129.0
|
|
19
|
+
- @memberjunction/ai-prompts@2.129.0
|
|
20
|
+
- @memberjunction/aiengine@2.129.0
|
|
21
|
+
- @memberjunction/core-entities@2.129.0
|
|
22
|
+
- @memberjunction/ai-vectors-memory@2.129.0
|
|
23
|
+
- @memberjunction/ai@2.129.0
|
|
24
|
+
|
|
25
|
+
## 2.128.0
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [f407abe]
|
|
30
|
+
- @memberjunction/core@2.128.0
|
|
31
|
+
- @memberjunction/ai-prompts@2.128.0
|
|
32
|
+
- @memberjunction/core-entities@2.128.0
|
|
33
|
+
- @memberjunction/ai-core-plus@2.128.0
|
|
34
|
+
- @memberjunction/aiengine@2.128.0
|
|
35
|
+
- @memberjunction/ai-vectors-memory@2.128.0
|
|
36
|
+
- @memberjunction/sqlserver-dataprovider@2.128.0
|
|
37
|
+
- @memberjunction/ai@2.128.0
|
|
38
|
+
- @memberjunction/global@2.128.0
|
|
39
|
+
|
|
3
40
|
## 2.127.0
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Prompt execution helpers with model/vendor override support
|
|
3
3
|
*/
|
|
4
4
|
import { UserInfo } from '@memberjunction/core';
|
|
5
|
-
import { AIPromptEntityExtended } from '@memberjunction/core-
|
|
5
|
+
import { AIPromptEntityExtended } from '@memberjunction/ai-core-plus';
|
|
6
6
|
import { QueryGenConfig } from '../cli/config';
|
|
7
7
|
/**
|
|
8
8
|
* Execute a prompt with optional model/vendor overrides from QueryGenConfig
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-helpers.d.ts","sourceRoot":"","sources":["../../src/utils/prompt-helpers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"prompt-helpers.d.ts","sourceRoot":"","sources":["../../src/utils/prompt-helpers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C;;;;;;;;;;;;GAYG;AACH,wBAAsB,0BAA0B,CAAC,CAAC,EAChD,MAAM,EAAE,sBAAsB,EAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,WAAW,EAAE,QAAQ,EACrB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAiBlE"}
|
|
@@ -41,9 +41,9 @@ class EmbeddingService {
|
|
|
41
41
|
aiEngine.EmbedTextLocal(query.technicalDescription),
|
|
42
42
|
]);
|
|
43
43
|
return {
|
|
44
|
-
userQuestion: userQuestionResult
|
|
45
|
-
description: descResult
|
|
46
|
-
technicalDescription: techDescResult
|
|
44
|
+
userQuestion: userQuestionResult?.result.vector || [],
|
|
45
|
+
description: descResult?.result.vector || [],
|
|
46
|
+
technicalDescription: techDescResult?.result.vector || [],
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbeddingService.js","sourceRoot":"","sources":["../../src/vectors/EmbeddingService.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,uDAAoD;AAGpD;;GAEG;AACH,MAAa,gBAAgB;IACV,SAAS,CAAS;IAEnC;;;;OAIG;IACH,YAAY,YAAoB,wBAAwB;QACtD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,UAAU,CAAC,KAIhB;QACC,MAAM,QAAQ,GAAG,mBAAQ,CAAC,QAAQ,CAAC;QAEnC,iDAAiD;QACjD,MAAM,CAAC,kBAAkB,EAAE,UAAU,EAAE,cAAc,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CA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3C,KAAK,MAAM,KAAK,IAAI,aAAa,EAAE,CAAC;YAClC,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC;gBACvC,YAAY,EAAE,KAAK,CAAC,YAAY;gBAChC,WAAW,EAAE,KAAK,CAAC,WAAW;gBAC9B,oBAAoB,EAAE,KAAK,CAAC,oBAAoB;aACjD,CAAC,CAAC;YAEH,QAAQ,CAAC,IAAI,CAAC;gBACZ,KAAK;gBACL,UAAU;aACX,CAAC,CAAC;QACL,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAIE;QAEF,MAAM,UAAU,GAAsB,EAAE,CAAC;QAEzC,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;YAC5B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAC/C,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7B,CAAC;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AA/FD,4CA+FC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/query-gen",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.129.0",
|
|
4
4
|
"description": "AI-powered generation of domain-specific SQL query templates with automatic testing, refinement, and metadata export",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"author": "MemberJunction",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@memberjunction/ai": "2.
|
|
29
|
-
"@memberjunction/ai-core-plus": "2.
|
|
30
|
-
"@memberjunction/aiengine": "2.
|
|
31
|
-
"@memberjunction/ai-prompts": "2.
|
|
32
|
-
"@memberjunction/ai-vectors-memory": "2.
|
|
33
|
-
"@memberjunction/core": "2.
|
|
34
|
-
"@memberjunction/core-entities": "2.
|
|
35
|
-
"@memberjunction/global": "2.
|
|
36
|
-
"@memberjunction/sqlserver-dataprovider": "2.
|
|
28
|
+
"@memberjunction/ai": "2.129.0",
|
|
29
|
+
"@memberjunction/ai-core-plus": "2.129.0",
|
|
30
|
+
"@memberjunction/aiengine": "2.129.0",
|
|
31
|
+
"@memberjunction/ai-prompts": "2.129.0",
|
|
32
|
+
"@memberjunction/ai-vectors-memory": "2.129.0",
|
|
33
|
+
"@memberjunction/core": "2.129.0",
|
|
34
|
+
"@memberjunction/core-entities": "2.129.0",
|
|
35
|
+
"@memberjunction/global": "2.129.0",
|
|
36
|
+
"@memberjunction/sqlserver-dataprovider": "2.129.0",
|
|
37
37
|
"chalk": "^4.1.2",
|
|
38
38
|
"commander": "^11.1.0",
|
|
39
39
|
"nunjucks": "^3.2.4",
|
package/src/core/QueryFixer.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { AIEngine } from '@memberjunction/aiengine';
|
|
9
|
-
import { AIPromptEntityExtended } from '@memberjunction/core-
|
|
9
|
+
import { AIPromptEntityExtended } from '@memberjunction/ai-core-plus';
|
|
10
10
|
import { UserInfo, LogStatus } from '@memberjunction/core';
|
|
11
11
|
import { extractErrorMessage } from '../utils/error-handlers';
|
|
12
12
|
import {
|
package/src/core/QueryRefiner.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { AIEngine } from '@memberjunction/aiengine';
|
|
9
|
-
import { AIPromptEntityExtended } from '@memberjunction/core-
|
|
9
|
+
import { AIPromptEntityExtended } from '@memberjunction/ai-core-plus';
|
|
10
10
|
import { UserInfo, LogStatus } from '@memberjunction/core';
|
|
11
11
|
import { extractErrorMessage } from '../utils/error-handlers';
|
|
12
12
|
import {
|
package/src/core/QueryWriter.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { AIEngine } from '@memberjunction/aiengine';
|
|
9
|
-
import { AIPromptEntityExtended } from '@memberjunction/core-
|
|
9
|
+
import { AIPromptEntityExtended } from '@memberjunction/ai-core-plus';
|
|
10
10
|
import { UserInfo, LogStatus } from '@memberjunction/core';
|
|
11
11
|
import { QueryGenConfig } from '../cli/config';
|
|
12
12
|
import { extractErrorMessage } from '../utils/error-handlers';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { AIEngine } from '@memberjunction/aiengine';
|
|
9
|
-
import { AIPromptEntityExtended } from '@memberjunction/core-
|
|
9
|
+
import { AIPromptEntityExtended } from '@memberjunction/ai-core-plus';
|
|
10
10
|
import { UserInfo, LogStatus } from '@memberjunction/core';
|
|
11
11
|
import { QueryGenConfig } from '../cli/config';
|
|
12
12
|
import { extractErrorMessage } from '../utils/error-handlers';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { AIPromptParams } from '@memberjunction/ai-core-plus';
|
|
6
6
|
import { AIPromptRunner } from '@memberjunction/ai-prompts';
|
|
7
7
|
import { UserInfo } from '@memberjunction/core';
|
|
8
|
-
import { AIPromptEntityExtended } from '@memberjunction/core-
|
|
8
|
+
import { AIPromptEntityExtended } from '@memberjunction/ai-core-plus';
|
|
9
9
|
import { AIEngine } from '@memberjunction/aiengine';
|
|
10
10
|
import { QueryGenConfig } from '../cli/config';
|
|
11
11
|
|
|
@@ -49,9 +49,9 @@ export class EmbeddingService {
|
|
|
49
49
|
]);
|
|
50
50
|
|
|
51
51
|
return {
|
|
52
|
-
userQuestion: userQuestionResult
|
|
53
|
-
description: descResult
|
|
54
|
-
technicalDescription: techDescResult
|
|
52
|
+
userQuestion: userQuestionResult?.result.vector || [],
|
|
53
|
+
description: descResult?.result.vector || [],
|
|
54
|
+
technicalDescription: techDescResult?.result.vector || [],
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
|