@memberjunction/ai-vector-sync 2.2.0 → 2.3.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +75 -11
  2. package/package.json +12 -12
package/dist/index.d.ts CHANGED
@@ -1062,6 +1062,9 @@ declare const AIModelSchema: ZodObject<{
1062
1062
  APIName: ZodOptional<ZodNullable<ZodString>>;
1063
1063
  __mj_CreatedAt: ZodDate;
1064
1064
  __mj_UpdatedAt: ZodDate;
1065
+ SpeedRank: ZodOptional<ZodNullable<ZodNumber>>;
1066
+ CostRank: ZodOptional<ZodNullable<ZodNumber>>;
1067
+ ModelSelectionInsights: ZodOptional<ZodNullable<ZodString>>;
1065
1068
  AIModelType: ZodString;
1066
1069
  }, "strip", ZodTypeAny, {
1067
1070
  ID?: string;
@@ -1076,6 +1079,9 @@ declare const AIModelSchema: ZodObject<{
1076
1079
  DriverClass?: string;
1077
1080
  DriverImportPath?: string;
1078
1081
  APIName?: string;
1082
+ SpeedRank?: number;
1083
+ CostRank?: number;
1084
+ ModelSelectionInsights?: string;
1079
1085
  AIModelType?: string;
1080
1086
  }, {
1081
1087
  ID?: string;
@@ -1090,6 +1096,9 @@ declare const AIModelSchema: ZodObject<{
1090
1096
  DriverClass?: string;
1091
1097
  DriverImportPath?: string;
1092
1098
  APIName?: string;
1099
+ SpeedRank?: number;
1100
+ CostRank?: number;
1101
+ ModelSelectionInsights?: string;
1093
1102
  AIModelType?: string;
1094
1103
  }>;
1095
1104
  type AIModelEntityType = TypeOf<typeof AIModelSchema>;
@@ -1111,6 +1120,9 @@ declare const EntityDocumentSchema: ZodObject<{
1111
1120
  __mj_UpdatedAt: ZodDate;
1112
1121
  Type: ZodString;
1113
1122
  Entity: ZodString;
1123
+ VectorDatabase: ZodString;
1124
+ Template: ZodString;
1125
+ AIModel: ZodString;
1114
1126
  }, "strip", ZodTypeAny, {
1115
1127
  ID?: string;
1116
1128
  __mj_CreatedAt?: Date;
@@ -1119,13 +1131,16 @@ declare const EntityDocumentSchema: ZodObject<{
1119
1131
  Status?: "Active" | "Inactive";
1120
1132
  Type?: string;
1121
1133
  AIModelID?: string;
1134
+ AIModel?: string;
1135
+ TemplateID?: string;
1136
+ TypeID?: string;
1137
+ Template?: string;
1122
1138
  EntityID?: string;
1123
1139
  Entity?: string;
1124
- TypeID?: string;
1125
1140
  VectorDatabaseID?: string;
1126
- TemplateID?: string;
1127
1141
  PotentialMatchThreshold?: number;
1128
1142
  AbsoluteMatchThreshold?: number;
1143
+ VectorDatabase?: string;
1129
1144
  }, {
1130
1145
  ID?: string;
1131
1146
  __mj_CreatedAt?: Date;
@@ -1134,13 +1149,16 @@ declare const EntityDocumentSchema: ZodObject<{
1134
1149
  Status?: "Active" | "Inactive";
1135
1150
  Type?: string;
1136
1151
  AIModelID?: string;
1152
+ AIModel?: string;
1153
+ TemplateID?: string;
1154
+ TypeID?: string;
1155
+ Template?: string;
1137
1156
  EntityID?: string;
1138
1157
  Entity?: string;
1139
- TypeID?: string;
1140
1158
  VectorDatabaseID?: string;
1141
- TemplateID?: string;
1142
1159
  PotentialMatchThreshold?: number;
1143
1160
  AbsoluteMatchThreshold?: number;
1161
+ VectorDatabase?: string;
1144
1162
  }>;
1145
1163
  type EntityDocumentEntityType = TypeOf<typeof EntityDocumentSchema>;
1146
1164
  /**
@@ -1163,22 +1181,22 @@ declare const TemplateContentSchema: ZodObject<{
1163
1181
  __mj_UpdatedAt?: Date;
1164
1182
  Type?: string;
1165
1183
  IsActive?: boolean;
1166
- Priority?: number;
1167
- TypeID?: string;
1168
1184
  TemplateID?: string;
1169
- TemplateText?: string;
1185
+ TypeID?: string;
1170
1186
  Template?: string;
1187
+ Priority?: number;
1188
+ TemplateText?: string;
1171
1189
  }, {
1172
1190
  ID?: string;
1173
1191
  __mj_CreatedAt?: Date;
1174
1192
  __mj_UpdatedAt?: Date;
1175
1193
  Type?: string;
1176
1194
  IsActive?: boolean;
1177
- Priority?: number;
1178
- TypeID?: string;
1179
1195
  TemplateID?: string;
1180
- TemplateText?: string;
1196
+ TypeID?: string;
1181
1197
  Template?: string;
1198
+ Priority?: number;
1199
+ TemplateText?: string;
1182
1200
  }>;
1183
1201
  type TemplateContentEntityType = TypeOf<typeof TemplateContentSchema>;
1184
1202
  /**
@@ -1321,7 +1339,8 @@ declare class AIModelEntity extends BaseEntity<AIModelEntityType> {
1321
1339
  * * Field Name: PowerRank
1322
1340
  * * Display Name: Power Rank
1323
1341
  * * SQL Data Type: int
1324
- * * Description: A simplified power rank of each model for a given AI Model Type. For example, if we have GPT 3, GPT 3.5, and GPT 4, we would have a PowerRank of 1 for GPT3, 2 for GPT 3.5, and 3 for GPT 4. This can be used within model families like OpenAI or across all models. For example if you had Llama 2 in the mix which is similar to GPT 3.5 it would also have a PowerRank of 2. This can be used at runtime to pick the most/least powerful or compare model relative power.
1342
+ * * Default Value: 0
1343
+ * * Description: Optional column that ranks the power of the AI model. Default is 0 and should be non-negative.
1325
1344
  */
1326
1345
  get PowerRank(): number | null;
1327
1346
  set PowerRank(value: number | null);
@@ -1370,6 +1389,33 @@ declare class AIModelEntity extends BaseEntity<AIModelEntityType> {
1370
1389
  */
1371
1390
  get __mj_UpdatedAt(): Date;
1372
1391
  /**
1392
+ * * Field Name: SpeedRank
1393
+ * * Display Name: Speed Rank
1394
+ * * SQL Data Type: int
1395
+ * * Default Value: 0
1396
+ * * Description: Optional column that ranks the speed of the AI model. Default is 0 and should be non-negative.
1397
+ */
1398
+ get SpeedRank(): number | null;
1399
+ set SpeedRank(value: number | null);
1400
+ /**
1401
+ * * Field Name: CostRank
1402
+ * * Display Name: Cost Rank
1403
+ * * SQL Data Type: int
1404
+ * * Default Value: 0
1405
+ * * Description: Optional column that ranks the cost of the AI model. Default is 0 and should be non-negative.
1406
+ */
1407
+ get CostRank(): number | null;
1408
+ set CostRank(value: number | null);
1409
+ /**
1410
+ * * Field Name: ModelSelectionInsights
1411
+ * * Display Name: Model Selection Insights
1412
+ * * SQL Data Type: nvarchar(MAX)
1413
+ * * Default Value: null
1414
+ * * Description: This column stores unstructured text notes that provide insights into what the model is particularly good at and areas where it may not perform as well. These notes can be used by a human or an AI to determine if the model is a good fit for various purposes.
1415
+ */
1416
+ get ModelSelectionInsights(): string | null;
1417
+ set ModelSelectionInsights(value: string | null);
1418
+ /**
1373
1419
  * * Field Name: AIModelType
1374
1420
  * * Display Name: AIModel Type
1375
1421
  * * SQL Data Type: nvarchar(50)
@@ -1518,6 +1564,24 @@ declare class EntityDocumentEntity extends BaseEntity<EntityDocumentEntityType>
1518
1564
  * * SQL Data Type: nvarchar(255)
1519
1565
  */
1520
1566
  get Entity(): string;
1567
+ /**
1568
+ * * Field Name: VectorDatabase
1569
+ * * Display Name: Vector Database
1570
+ * * SQL Data Type: nvarchar(100)
1571
+ */
1572
+ get VectorDatabase(): string;
1573
+ /**
1574
+ * * Field Name: Template
1575
+ * * Display Name: Template
1576
+ * * SQL Data Type: nvarchar(255)
1577
+ */
1578
+ get Template(): string;
1579
+ /**
1580
+ * * Field Name: AIModel
1581
+ * * Display Name: AIModel
1582
+ * * SQL Data Type: nvarchar(50)
1583
+ */
1584
+ get AIModel(): string;
1521
1585
  }
1522
1586
  /**
1523
1587
  * Template Contents - strongly typed entity sub-class
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ai-vector-sync",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "MemberJunction: AI Vector/Entity Sync Package - handles synchronization between MemberJunction entities and vector databases",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -15,17 +15,17 @@
15
15
  "author": "MemberJunction.com",
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
- "@memberjunction/ai": "2.2.0",
19
- "@memberjunction/ai-vectordb": "2.2.0",
20
- "@memberjunction/ai-vectors": "2.2.0",
21
- "@memberjunction/ai-vectors-pinecone": "2.2.0",
22
- "@memberjunction/ai-mistral": "2.2.0",
23
- "@memberjunction/aiengine": "2.2.0",
24
- "@memberjunction/core": "2.2.0",
25
- "@memberjunction/global": "2.2.0",
26
- "@memberjunction/templates": "2.2.0",
27
- "@memberjunction/templates-base-types": "2.2.0",
28
- "@memberjunction/ai-openai": "2.2.0",
18
+ "@memberjunction/ai": "2.3.0",
19
+ "@memberjunction/ai-vectordb": "2.3.0",
20
+ "@memberjunction/ai-vectors": "2.3.0",
21
+ "@memberjunction/ai-vectors-pinecone": "2.3.0",
22
+ "@memberjunction/ai-mistral": "2.3.0",
23
+ "@memberjunction/aiengine": "2.3.0",
24
+ "@memberjunction/core": "2.2.2",
25
+ "@memberjunction/global": "2.3.0",
26
+ "@memberjunction/templates": "2.3.0",
27
+ "@memberjunction/templates-base-types": "2.3.0",
28
+ "@memberjunction/ai-openai": "2.3.0",
29
29
  "dotenv": "^16.4.1",
30
30
  "typeorm": "^0.3.20"
31
31
  },