@memberjunction/ai-vectordb 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.
@@ -1,7 +1,10 @@
1
- import { BaseRequestParams, BaseResponse, CreateIndexParams, EditIndexParams, IndexList, UpdateOptions, VectorRecord } from "./record";
2
- import { QueryOptions } from './query.types';
1
+ import { BaseRequestParams, BaseResponse, CreateIndexParams, EditIndexParams, IndexList, UpdateOptions, VectorRecord } from "./record.js";
2
+ import { QueryOptions } from './query.types.js';
3
3
  export declare abstract class VectorDBBase {
4
4
  private _apiKey;
5
+ /**
6
+ * Only sub-classes can access the API key
7
+ */
5
8
  protected get apiKey(): string;
6
9
  constructor(apiKey: string);
7
10
  abstract listIndexes(): IndexList | Promise<IndexList>;
@@ -1 +1 @@
1
- {"version":3,"file":"VectorDBBase.d.ts","sourceRoot":"","sources":["../../src/generic/VectorDBBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,iBAAiB,EACnD,eAAe,EAAE,SAAS,EAAE,aAAa,EACzC,YAAY,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,8BAAsB,YAAY;IAC9B,OAAO,CAAC,OAAO,CAAS;IAIxB,SAAS,KAAK,MAAM,IAAI,MAAM,CAE7B;gBAEY,MAAM,EAAE,MAAM;IAQ3B,QAAQ,CAAC,WAAW,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IACtD,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,GAAG,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAClF,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IACrF,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,YAAY,GAAG,OAAO,CAA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AY,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,GAAI,OAAO,CAAC,YAAY,CAAC;IAClF,QAAQ,CAAC,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,YAAY,GAAI,OAAO,CAAC,YAAY,CAAC;CACzF"}
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VectorDBBase = void 0;
4
- class VectorDBBase {
1
+ export class VectorDBBase {
2
+ /**
3
+ * Only sub-classes can access the API key
4
+ */
5
5
  get apiKey() {
6
6
  return this._apiKey;
7
7
  }
@@ -11,5 +11,4 @@ class VectorDBBase {
11
11
  this._apiKey = apiKey;
12
12
  }
13
13
  }
14
- exports.VectorDBBase = VectorDBBase;
15
14
  //# sourceMappingURL=VectorDBBase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VectorDBBase.js","sourceRoot":"","sources":["../../src/generic/VectorDBBase.ts"],"names":[],"mappings":";;;AAKA,MAAsB,YAAY;IAK9B,IAAc,MAAM;QAChB,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,YAAa,MAAc;QACvB,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC;YACrC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAE/C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAC1B,CAAC;CAkBJ;AAhCD,oCAgCC"}
1
+ {"version":3,"file":"VectorDBBase.js","sourceRoot":"","sources":["../../src/generic/VectorDBBase.ts"],"names":[],"mappings":"AAKA,MAAM,OAAgB,YAAY;IAE9B;;OAEG;IACH,IAAc,MAAM;QAChB,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,YAAa,MAAc;QACvB,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC;YACrC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAE/C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAC1B,CAAC;CAkBJ"}
@@ -1,26 +1,73 @@
1
- import { RecordMetadata, RecordValues, VectorRecord } from './record';
1
+ import { RecordMetadata, RecordValues, VectorRecord } from './record.js';
2
2
  export type QueryParamsBase = {
3
+ /** The number of query results you would like returned. */
3
4
  topK: number;
5
+ /**
6
+ * This boolean value specifies whether embedding values are returned with query results.
7
+ *
8
+ * By default, values are not returned to reduce the size of the request payload.
9
+ */
4
10
  includeValues?: boolean;
11
+ /**
12
+ * This boolean value specifies whether metadata values are returned with query results.
13
+ *
14
+ * By default, metadata values are not returned to reduce the size of the request payload.
15
+ */
5
16
  includeMetadata?: boolean;
17
+ /**
18
+ * This parameter allows you to modify your query with a metadata filter.
19
+ */
6
20
  filter?: object;
7
21
  };
8
22
  export type QueryByRecordId = QueryParamsBase & {
23
+ /**
24
+ * Specifies the ID of a record whose `values` you'd
25
+ * like to query with.
26
+ */
9
27
  id: string;
10
28
  };
29
+ /**
30
+ * Include vector values in your query configuration along with properties defined
31
+ * in { @link QueryParamsBase }.
32
+ */
11
33
  export type QueryByVectorValues = QueryParamsBase & {
34
+ /**
35
+ * Vector values output from an embedding model.
36
+ */
12
37
  vector: RecordValues;
13
38
  };
39
+ /**
40
+ * The options that may be passed to {@link VectorDBBase.queryIndex }
41
+ */
14
42
  export type QueryOptions = QueryByRecordId | QueryByVectorValues;
15
43
  export interface ScoredRecord<T extends RecordMetadata = RecordMetadata> extends VectorRecord<T> {
44
+ /**
45
+ * The similarity score of the record. The interpretation of this score will be different
46
+ * depending on the distance metric configured on the index.
47
+ *
48
+ * For indexes using the `euclidean` distance metric, a lower similarity score is more
49
+ * similar, while for indexes using the `dotproduct` metric, higher scores are more similar.
50
+ */
16
51
  score?: number;
17
52
  }
53
+ /**
54
+ * Response from {@link VectorDBBase.queryIndex }
55
+ */
18
56
  export type QueryResponse<T extends RecordMetadata = RecordMetadata> = {
57
+ /** The query results sorted by similarity */
19
58
  matches: Array<ScoredRecord<T>>;
59
+ /** The namespace where the query was executed. */
20
60
  namespace: string;
61
+ /** The usage information for the query operation. */
21
62
  usage?: OperationUsage;
22
63
  };
64
+ /**
65
+ * Metadata detailing usage units for a specific operation.
66
+ */
23
67
  export type OperationUsage = {
68
+ /**
69
+ * The number of read units consumed by this operation.
70
+ */
24
71
  readUnits?: number;
25
72
  };
26
73
  //# sourceMappingURL=query.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query.types.d.ts","sourceRoot":"","sources":["../../src/generic/query.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGtE,MAAM,MAAM,eAAe,GAAG;IAE1B,IAAI,EAAE,MAAM,CAAC;IAMb,aAAa,CAAC,EAAE,OAAO,CAAC;IAMxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAI1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,eAAe,GAAG;IAK5C,EAAE,EAAE,MAAM,CAAC;CACd,CAAC;AAMF,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG;IAIhD,MAAM,EAAE,YAAY,CAAC;CACxB,CAAC;AAKF,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG,mBAAmB,CAAC;AAEjE,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;IAQ5F,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAKD,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,IAAI;IAEnE,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAEhC,SAAS,EAAE,MAAM,CAAC;IAElB,KAAK,CAAC,EAAE,cAAc,CAAC;CAC1B,CAAC;AAKF,MAAM,M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AAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=query.types.js.map
@@ -1,29 +1,91 @@
1
+ /**
2
+ * The IndexDescription describes the configuration of an index.
3
+ * @export
4
+ * @interface IndexDescription
5
+ */
1
6
  export type IndexDescription = {
7
+ /**
8
+ * The name of the index. The maximum length is 45 characters. It may contain lowercase alphanumeric characters or hyphens, and must not begin or end with a hyphen.
9
+ * @type {string}
10
+ * @memberof IndexDescription
11
+ */
2
12
  name: string;
13
+ /**
14
+ * The dimensions of the vectors to be inserted in the index
15
+ * @type {number}
16
+ * @memberof IndexDescription
17
+ */
3
18
  dimension: number;
19
+ /**
20
+ * The distance metric to be used for similarity search. You can use 'euclidean', 'cosine', or 'dotproduct'.
21
+ * @type {string}
22
+ * @memberof IndexDescription
23
+ */
4
24
  metric: IndexModelMetricEnum;
25
+ /**
26
+ * The URL address where the index is hosted.
27
+ * @type {string}
28
+ * @memberof IndexDescription
29
+ */
5
30
  host: string;
6
31
  };
32
+ /**
33
+ * @export
34
+ */
7
35
  export declare const IndexModelMetricEnum: {
8
36
  readonly Cosine: "cosine";
9
37
  readonly Euclidean: "euclidean";
10
38
  readonly Dotproduct: "dotproduct";
11
39
  };
12
40
  export type IndexModelMetricEnum = typeof IndexModelMetricEnum[keyof typeof IndexModelMetricEnum];
41
+ /**
42
+ * The list of indexes that exist in the project.
43
+ * @export
44
+ * @interface IndexList
45
+ */
13
46
  export interface IndexList {
47
+ /**
48
+ *
49
+ * @type {Array<IndexDescription>}
50
+ * @memberof IndexList
51
+ */
14
52
  indexes?: Array<IndexDescription>;
15
53
  }
54
+ /** An array of values, usually an embedding vector. */
16
55
  export type RecordValues = Array<number>;
56
+ /**
57
+ * A sparse representation of vector values
58
+ */
17
59
  export type RecordSparseValues = {
60
+ /** A list of indices where non-zero values are present in a vector. */
18
61
  indices: Array<number>;
62
+ /** The values that correspond to the positions in the `indices` array. */
19
63
  values: Array<number>;
20
64
  };
65
+ /**
66
+ * A flexible type describing valid values for metadata stored with
67
+ * each record.
68
+ */
21
69
  export type RecordMetadataValue = string | boolean | number | Array<string>;
22
70
  export type RecordMetadata = Record<string, RecordMetadataValue>;
23
71
  export type VectorRecord<T extends RecordMetadata = RecordMetadata> = {
72
+ /**
73
+ * The id of the record. This string can be any value and is
74
+ * useful when fetching or deleting by id.
75
+ */
24
76
  id: string;
77
+ /**
78
+ * An array of numbers representing an embedding vector.
79
+ */
25
80
  values: RecordValues;
81
+ /**
82
+ * Records can optionally include sparse and dense values when an index
83
+ * is used for hybrid search.
84
+ */
26
85
  sparseValues?: RecordSparseValues;
86
+ /**
87
+ * Any metadata associated with this record.
88
+ */
27
89
  metadata?: T;
28
90
  };
29
91
  export type BaseRequestParams = {
@@ -36,10 +98,23 @@ export type CreateIndexParams = BaseRequestParams & {
36
98
  additionalParams?: any;
37
99
  };
38
100
  export type EditIndexParams = BaseRequestParams & {};
101
+ /**
102
+ * This type is very similar to {@link VectorRecord}, but differs because the
103
+ * values field is optional here. This is to allow for situations where perhaps
104
+ * the caller only wants to update metadata for a given record while leaving
105
+ * stored vector values as they are.
106
+ */
39
107
  export type UpdateOptions<T extends RecordMetadata = RecordMetadata> = {
108
+ /** The id of the record you would like to update */
40
109
  id: string;
110
+ /** The vector values you would like to store with this record */
41
111
  values?: RecordValues;
112
+ /** The sparse values you would like to store with this record.
113
+ */
42
114
  sparseValues?: RecordSparseValues;
115
+ /**
116
+ * The metadata you would like to store with this record.
117
+ */
43
118
  metadata?: T;
44
119
  };
45
120
  export type BaseResponse = {
@@ -1 +1 @@
1
- {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/generic/record.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,gBAAgB,GAAG;IAM3B,IAAI,EAAE,MAAM,CAAC;IAMb,SAAS,EAAE,MAAM,CAAC;IAMlB,MAAM,EAAE,oBAAoB,CAAA;IAM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AC,EAAE,CAAC,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,GAAG,CAAA;CACZ,CAAA"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=record.js.map
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './generic/record';
2
- export * from './generic/VectorDBBase';
3
- export * from './generic/query.types';
1
+ export * from './generic/record.js';
2
+ export * from './generic/VectorDBBase.js';
3
+ export * from './generic/query.types.js';
4
4
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,20 +1,4 @@
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 __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/record"), exports);
18
- __exportStar(require("./generic/VectorDBBase"), exports);
19
- __exportStar(require("./generic/query.types"), exports);
1
+ export * from './generic/record.js';
2
+ export * from './generic/VectorDBBase.js';
3
+ export * from './generic/query.types.js';
20
4
  //# 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":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,yDAAuC;AACvC,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@memberjunction/ai-vectordb",
3
- "version": "3.4.0",
3
+ "type": "module",
4
+ "version": "4.0.0",
4
5
  "description": "MemberJunction: AI Vector Database Module",
5
6
  "main": "dist/index.js",
6
7
  "types": "dist/index.d.ts",
@@ -9,20 +10,20 @@
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": "3.4.0",
19
- "@memberjunction/global": "3.4.0",
20
- "dotenv": "^16.4.1"
19
+ "@memberjunction/core": "4.0.0",
20
+ "@memberjunction/global": "4.0.0",
21
+ "dotenv": "^17.2.4"
21
22
  },
22
23
  "devDependencies": {
23
- "@types/node": "20.14.2",
24
+ "@types/node": "24.10.11",
24
25
  "ts-node-dev": "^2.0.0",
25
- "typescript": "^5.4.5"
26
+ "typescript": "^5.9.3"
26
27
  },
27
28
  "repository": {
28
29
  "type": "git",