@memberjunction/ai-vectors 0.9.5 → 0.9.9

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.
@@ -0,0 +1,17 @@
1
+ export type QueryShared = {
2
+ topK: number;
3
+ includeValues?: boolean;
4
+ includeMetadata?: boolean;
5
+ filter?: object;
6
+ };
7
+ export type QueryByRecordId = QueryShared & {
8
+ id: string;
9
+ };
10
+ export type RecordValues = Array<number>;
11
+ export type QueryByVectorValues = QueryShared & {
12
+ vector: RecordValues;
13
+ };
14
+ export type QueryOptions = QueryByRecordId | QueryByVectorValues;
15
+ export type QueryResponse = {
16
+ data: any;
17
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=query.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.types.js","sourceRoot":"","sources":["../../src/generic/query.types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
1
  {
2
- "name": "@memberjunction/ai-vectors",
3
- "version": "0.9.5",
4
- "description": "MemberJunction: AI Vectors Module",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "files": [
8
- "/dist"
9
- ],
10
- "scripts": {
11
- "start": "ts-node-dev src/index.ts",
12
- "build": "tsc",
13
- "test": "echo \"Error: no test specified\" && exit 1"
14
- },
15
- "author": "MemberJunction.com",
16
- "license": "ISC",
17
- "dependencies": {
18
- "@langchain/mistralai": "^0.0.7",
19
- "@memberjunction/core": "^0.9.172",
20
- "@memberjunction/global": "^0.9.153",
21
- "dotenv": "^16.0.3",
22
- "openai": "^3.2.1"
23
- },
24
- "devDependencies": {
25
- "@types/node": "^20.1.7",
26
- "ts-node-dev": "^2.0.0",
27
- "typescript": "^5.3.3"
28
- }
2
+ "name": "@memberjunction/ai-vectors",
3
+ "version": "0.9.9",
4
+ "description": "MemberJunction: AI Vectors Module",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "/dist"
9
+ ],
10
+ "scripts": {
11
+ "start": "ts-node-dev src/index.ts",
12
+ "build": "tsc",
13
+ "test": "echo \"Error: no test specified\" \u0026\u0026 exit 1"
14
+ },
15
+ "author": "MemberJunction.com",
16
+ "license": "ISC",
17
+ "dependencies": {
18
+ "@langchain/mistralai": "^0.0.7",
19
+ "@memberjunction/core": "^0.9.177",
20
+ "@memberjunction/global": "^0.9.158",
21
+ "dotenv": "^16.0.3",
22
+ "openai": "^3.2.1"
23
+ },
24
+ "devDependencies": {
25
+ "@types/node": "^20.1.7",
26
+ "ts-node-dev": "^2.0.0",
27
+ "typescript": "^5.3.3"
28
+ }
29
29
  }