@memberjunction/ai-vectors 3.4.0 → 4.0.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/dist/generic/IEmbedding.js +1 -2
- package/dist/generic/IVectorDatabase.js +1 -2
- package/dist/generic/IVectorIndex.js +1 -2
- package/dist/generic/VectorCore.types.d.ts +15 -0
- package/dist/generic/VectorCore.types.d.ts.map +1 -1
- package/dist/generic/VectorCore.types.js +1 -2
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -21
- package/dist/index.js.map +1 -1
- package/dist/models/VectorBase.d.ts +5 -1
- package/dist/models/VectorBase.d.ts.map +1 -1
- package/dist/models/VectorBase.js +16 -16
- package/dist/models/VectorBase.js.map +1 -1
- package/package.json +14 -13
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
export type PageRecordsParams = {
|
|
2
|
+
/**
|
|
3
|
+
* The ID of the entitiy to get the records from
|
|
4
|
+
*/
|
|
2
5
|
EntityID: string | number;
|
|
6
|
+
/**
|
|
7
|
+
* Number of records to offset. This number will be multiplied by the PageSize to get the actual offset
|
|
8
|
+
*/
|
|
3
9
|
PageNumber: number;
|
|
10
|
+
/**
|
|
11
|
+
* Number of records returned per page
|
|
12
|
+
*/
|
|
4
13
|
PageSize: number;
|
|
14
|
+
/**
|
|
15
|
+
* The type of result to return
|
|
16
|
+
*/
|
|
5
17
|
ResultType: "entity_object" | "simple" | "count_only";
|
|
18
|
+
/**
|
|
19
|
+
* Filter to apply to the query
|
|
20
|
+
*/
|
|
6
21
|
Filter?: string;
|
|
7
22
|
};
|
|
8
23
|
//# sourceMappingURL=VectorCore.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorCore.types.d.ts","sourceRoot":"","sources":["../../src/generic/VectorCore.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;
|
|
1
|
+
{"version":3,"file":"VectorCore.types.d.ts","sourceRoot":"","sources":["../../src/generic/VectorCore.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,EAAE,eAAe,GAAG,QAAQ,GAAG,YAAY,CAAC;IACtD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './generic/IVectorDatabase';
|
|
2
|
-
export * from './generic/IVectorIndex';
|
|
3
|
-
export * from './generic/IEmbedding';
|
|
4
|
-
export * from './models/VectorBase';
|
|
5
|
-
export * from './generic/VectorCore.types';
|
|
1
|
+
export * from './generic/IVectorDatabase.js';
|
|
2
|
+
export * from './generic/IVectorIndex.js';
|
|
3
|
+
export * from './generic/IEmbedding.js';
|
|
4
|
+
export * from './models/VectorBase.js';
|
|
5
|
+
export * from './generic/VectorCore.types.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./generic/IVectorDatabase"), exports);
|
|
18
|
-
__exportStar(require("./generic/IVectorIndex"), exports);
|
|
19
|
-
__exportStar(require("./generic/IEmbedding"), exports);
|
|
20
|
-
__exportStar(require("./models/VectorBase"), exports);
|
|
21
|
-
__exportStar(require("./generic/VectorCore.types"), exports);
|
|
1
|
+
export * from './generic/IVectorDatabase.js';
|
|
2
|
+
export * from './generic/IVectorIndex.js';
|
|
3
|
+
export * from './generic/IEmbedding.js';
|
|
4
|
+
export * from './models/VectorBase.js';
|
|
5
|
+
export * from './generic/VectorCore.types.js';
|
|
22
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseEntity, Metadata, CompositeKey, RunView, UserInfo } from "@memberjunction/core";
|
|
2
2
|
import { VectorDatabaseEntity } from "@memberjunction/core-entities";
|
|
3
|
-
import { PageRecordsParams } from "../generic/VectorCore.types";
|
|
3
|
+
import { PageRecordsParams } from "../generic/VectorCore.types.js";
|
|
4
4
|
import { AIModelEntityExtended } from "@memberjunction/ai-core-plus";
|
|
5
5
|
export declare class VectorBase {
|
|
6
6
|
_runView: RunView;
|
|
@@ -17,6 +17,10 @@ export declare class VectorBase {
|
|
|
17
17
|
protected GetAIModel(id?: string): AIModelEntityExtended;
|
|
18
18
|
protected GetVectorDatabase(id?: string): VectorDatabaseEntity;
|
|
19
19
|
protected RunViewForSingleValue<T extends BaseEntity>(entityName: string, extraFilter: string): Promise<T | null>;
|
|
20
|
+
/**
|
|
21
|
+
* Saving an Entity in any vector related package needs the CurrentUser property to be set on the entity
|
|
22
|
+
* So this is a simple wrapper to set it before saving
|
|
23
|
+
**/
|
|
20
24
|
protected SaveEntity(entity: BaseEntity): Promise<boolean>;
|
|
21
25
|
}
|
|
22
26
|
//# sourceMappingURL=VectorBase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorBase.d.ts","sourceRoot":"","sources":["../../src/models/VectorBase.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAuC,MAAM,sBAAsB,CAAC;AAClI,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,qBAAa,UAAU;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,QAAQ,CAAC;IACpB,YAAY,EAAE,QAAQ,CAAC;;IAQvB,IAAW,QAAQ,IAAI,QAAQ,CAA2B;IAC1D,IAAW,OAAO,IAAI,OAAO,CAA0B;IACvD,IAAW,WAAW,IAAI,QAAQ,CAA8B;IAChE,IAAW,WAAW,CAAC,IAAI,EAAE,QAAQ,EAA+B;cAEpD,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;cAqBzF,qBAAqB,CAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAqBjF,SAAS,CAAC,gBAAgB,CAAC,YAAY,EAAE,YAAY,EAAE,GAAG,MAAM;IAQhE,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,qBAAqB;IAexD,SAA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AAoB;cAgB9C,qBAAqB,CAAC,CAAC,SAAS,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAgBvH;;;QAGI;cACY,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC;CAInE"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const aiengine_1 = require("@memberjunction/aiengine");
|
|
5
|
-
const core_1 = require("@memberjunction/core");
|
|
6
|
-
class VectorBase {
|
|
1
|
+
import { AIEngine } from "@memberjunction/aiengine";
|
|
2
|
+
import { Metadata, RunView, LogError } from "@memberjunction/core";
|
|
3
|
+
export class VectorBase {
|
|
7
4
|
constructor() {
|
|
8
|
-
this._runView = new
|
|
9
|
-
this._metadata = new
|
|
5
|
+
this._runView = new RunView();
|
|
6
|
+
this._metadata = new Metadata();
|
|
10
7
|
this._currentUser = this._metadata.CurrentUser;
|
|
11
8
|
}
|
|
12
9
|
get Metadata() { return this._metadata; }
|
|
@@ -14,7 +11,7 @@ class VectorBase {
|
|
|
14
11
|
get CurrentUser() { return this._currentUser; }
|
|
15
12
|
set CurrentUser(user) { this._currentUser = user; }
|
|
16
13
|
async GetRecordsByEntityID(entityID, recordIDs) {
|
|
17
|
-
const md = new
|
|
14
|
+
const md = new Metadata();
|
|
18
15
|
const entity = md.Entities.find(e => e.ID === entityID);
|
|
19
16
|
if (!entity) {
|
|
20
17
|
throw new Error(`Entity with ID ${entityID} not found.`);
|
|
@@ -57,10 +54,10 @@ class VectorBase {
|
|
|
57
54
|
GetAIModel(id) {
|
|
58
55
|
let model;
|
|
59
56
|
if (id) {
|
|
60
|
-
model =
|
|
57
|
+
model = AIEngine.Instance.Models.find(m => m.AIModelType === "Embeddings" && m.ID === id);
|
|
61
58
|
}
|
|
62
59
|
else {
|
|
63
|
-
model =
|
|
60
|
+
model = AIEngine.Instance.Models.find(m => m.AIModelType === "Embeddings");
|
|
64
61
|
}
|
|
65
62
|
if (!model) {
|
|
66
63
|
throw new Error("No AI Model Entity found");
|
|
@@ -68,15 +65,15 @@ class VectorBase {
|
|
|
68
65
|
return model;
|
|
69
66
|
}
|
|
70
67
|
GetVectorDatabase(id) {
|
|
71
|
-
if (
|
|
68
|
+
if (AIEngine.Instance.VectorDatabases.length > 0) {
|
|
72
69
|
if (id) {
|
|
73
|
-
let vectorDB =
|
|
70
|
+
let vectorDB = AIEngine.Instance.VectorDatabases.find(vd => vd.ID === id);
|
|
74
71
|
if (vectorDB) {
|
|
75
72
|
return vectorDB;
|
|
76
73
|
}
|
|
77
74
|
}
|
|
78
75
|
else {
|
|
79
|
-
return
|
|
76
|
+
return AIEngine.Instance.VectorDatabases[0];
|
|
80
77
|
}
|
|
81
78
|
}
|
|
82
79
|
throw new Error("No Vector Database Entity found");
|
|
@@ -91,14 +88,17 @@ class VectorBase {
|
|
|
91
88
|
return rvResult.RowCount > 0 ? rvResult.Results[0] : null;
|
|
92
89
|
}
|
|
93
90
|
else {
|
|
94
|
-
|
|
91
|
+
LogError(rvResult.ErrorMessage);
|
|
95
92
|
return null;
|
|
96
93
|
}
|
|
97
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* Saving an Entity in any vector related package needs the CurrentUser property to be set on the entity
|
|
97
|
+
* So this is a simple wrapper to set it before saving
|
|
98
|
+
**/
|
|
98
99
|
async SaveEntity(entity) {
|
|
99
100
|
entity.ContextCurrentUser = this.CurrentUser;
|
|
100
101
|
return await entity.Save();
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
|
-
exports.VectorBase = VectorBase;
|
|
104
104
|
//# sourceMappingURL=VectorBase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorBase.js","sourceRoot":"","sources":["../../src/models/VectorBase.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VectorBase.js","sourceRoot":"","sources":["../../src/models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AAC,CAAC,CAAC,CAAC;YAChD,CAAC;QACL,CAAC;QAED,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACvD,CAAC;IAES,KAAK,CAAC,qBAAqB,CAAuB,UAAkB,EAAE,WAAmB;QAC/F,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;YACzC,UAAU,EAAE,UAAU;YACtB,WAAW,EAAE,WAAW;YACxB,UAAU,EAAE,eAAe;SAC9B,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAErB,IAAG,QAAQ,CAAC,OAAO,EAAC,CAAC;YACjB,OAAO,QAAQ,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAM,CAAA,CAAC,CAAC,IAAI,CAAC;QAClE,CAAC;aACG,CAAC;YACD,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;YAChC,OAAO,IAAI,CAAC;QAChB,CAAC;IACL,CAAC;IAED;;;QAGI;IACM,KAAK,CAAC,UAAU,CAAC,MAAkB;QACzC,MAAM,CAAC,kBAAkB,GAAG,IAAI,CAAC,WAAW,CAAC;QAC7C,OAAO,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;IAC/B,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ai-vectors",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "4.0.0",
|
|
4
5
|
"description": "MemberJunction: AI Vectors Module",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
@@ -9,26 +10,26 @@
|
|
|
9
10
|
],
|
|
10
11
|
"scripts": {
|
|
11
12
|
"start": "ts-node-dev src/index.ts",
|
|
12
|
-
"build": "tsc",
|
|
13
|
+
"build": "tsc && tsc-alias -f",
|
|
13
14
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
14
15
|
},
|
|
15
16
|
"author": "MemberJunction.com",
|
|
16
17
|
"license": "ISC",
|
|
17
18
|
"dependencies": {
|
|
18
|
-
"@memberjunction/core": "
|
|
19
|
-
"@memberjunction/global": "
|
|
20
|
-
"@memberjunction/core-entities": "
|
|
21
|
-
"@memberjunction/aiengine": "
|
|
22
|
-
"@memberjunction/ai": "
|
|
23
|
-
"@memberjunction/ai-core-plus": "
|
|
24
|
-
"@memberjunction/ai-vectordb": "
|
|
25
|
-
"dotenv": "^
|
|
26
|
-
"openai": "^
|
|
19
|
+
"@memberjunction/core": "4.0.0",
|
|
20
|
+
"@memberjunction/global": "4.0.0",
|
|
21
|
+
"@memberjunction/core-entities": "4.0.0",
|
|
22
|
+
"@memberjunction/aiengine": "4.0.0",
|
|
23
|
+
"@memberjunction/ai": "4.0.0",
|
|
24
|
+
"@memberjunction/ai-core-plus": "4.0.0",
|
|
25
|
+
"@memberjunction/ai-vectordb": "4.0.0",
|
|
26
|
+
"dotenv": "^17.2.4",
|
|
27
|
+
"openai": "^6.18.0"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
|
-
"@types/node": "
|
|
30
|
+
"@types/node": "24.10.11",
|
|
30
31
|
"ts-node-dev": "^2.0.0",
|
|
31
|
-
"typescript": "^5.
|
|
32
|
+
"typescript": "^5.9.3"
|
|
32
33
|
},
|
|
33
34
|
"repository": {
|
|
34
35
|
"type": "git",
|