@memberjunction/core-entities 5.20.0 → 5.22.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.
|
@@ -5649,7 +5649,7 @@ export const MJAIPromptSchema = z.object({
|
|
|
5649
5649
|
* * Description: When true, the agent context must match for a cache hit. When false, agent-specific and non-agent results can be used interchangeably.`),
|
|
5650
5650
|
CacheMustMatchConfig: z.boolean().describe(`
|
|
5651
5651
|
* * Field Name: CacheMustMatchConfig
|
|
5652
|
-
* * Display Name: Cache Must Match
|
|
5652
|
+
* * Display Name: Cache Must Match Config
|
|
5653
5653
|
* * SQL Data Type: bit
|
|
5654
5654
|
* * Default Value: 0
|
|
5655
5655
|
* * Description: When true, the configuration must match for a cache hit. When false, results from any configuration can be used.`),
|
|
@@ -5750,7 +5750,7 @@ export const MJAIPromptSchema = z.object({
|
|
|
5750
5750
|
* * Description: Maximum number of failover attempts before giving up`),
|
|
5751
5751
|
FailoverDelaySeconds: z.number().nullable().describe(`
|
|
5752
5752
|
* * Field Name: FailoverDelaySeconds
|
|
5753
|
-
* * Display Name: Failover Delay (
|
|
5753
|
+
* * Display Name: Failover Delay (Seconds)
|
|
5754
5754
|
* * SQL Data Type: int
|
|
5755
5755
|
* * Default Value: 5
|
|
5756
5756
|
* * Description: Initial delay in seconds between failover attempts`),
|
|
@@ -5805,6 +5805,12 @@ export const MJAIPromptSchema = z.object({
|
|
|
5805
5805
|
* * None
|
|
5806
5806
|
* * SystemInstruction
|
|
5807
5807
|
* * Description: Controls behavior when the selected provider does not support native assistant prefill. Ignore = silently skip prefill, SystemInstruction = inject a system message instructing the model to start its response with the prefill text (uses fallback text from AI Model Vendor or AI Model Type), None = no fallback (prefill only works with supported providers).`),
|
|
5808
|
+
RequireSpecificModels: z.boolean().describe(`
|
|
5809
|
+
* * Field Name: RequireSpecificModels
|
|
5810
|
+
* * Display Name: Require Specific Models
|
|
5811
|
+
* * SQL Data Type: bit
|
|
5812
|
+
* * Default Value: 0
|
|
5813
|
+
* * Description: Only applies when SelectionStrategy is Specific. When 0 (default), if none of the explicitly configured AIPromptModel entries have valid API credentials the system automatically falls back to Default/ByPower model selection across all active models matching the prompt AIModelTypeID. When 1, the system will hard-fail with an error instead of falling back, ensuring only the explicitly configured models are ever used.`),
|
|
5808
5814
|
Template: z.string().describe(`
|
|
5809
5815
|
* * Field Name: Template
|
|
5810
5816
|
* * Display Name: Template Text
|
|
@@ -12848,17 +12854,17 @@ export const MJEntityDocumentSchema = z.object({
|
|
|
12848
12854
|
* * SQL Data Type: nvarchar(250)`),
|
|
12849
12855
|
TypeID: z.string().describe(`
|
|
12850
12856
|
* * Field Name: TypeID
|
|
12851
|
-
* * Display Name: Type
|
|
12857
|
+
* * Display Name: Type
|
|
12852
12858
|
* * SQL Data Type: uniqueidentifier
|
|
12853
12859
|
* * Related Entity/Foreign Key: MJ: Entity Document Types (vwEntityDocumentTypes.ID)`),
|
|
12854
12860
|
EntityID: z.string().describe(`
|
|
12855
12861
|
* * Field Name: EntityID
|
|
12856
|
-
* * Display Name: Entity
|
|
12862
|
+
* * Display Name: Entity
|
|
12857
12863
|
* * SQL Data Type: uniqueidentifier
|
|
12858
12864
|
* * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)`),
|
|
12859
12865
|
VectorDatabaseID: z.string().describe(`
|
|
12860
12866
|
* * Field Name: VectorDatabaseID
|
|
12861
|
-
* * Display Name: Vector Database
|
|
12867
|
+
* * Display Name: Vector Database
|
|
12862
12868
|
* * SQL Data Type: uniqueidentifier
|
|
12863
12869
|
* * Related Entity/Foreign Key: MJ: Vector Databases (vwVectorDatabases.ID)`),
|
|
12864
12870
|
Status: z.union([z.literal('Active'), z.literal('Inactive')]).describe(`
|
|
@@ -12872,12 +12878,12 @@ export const MJEntityDocumentSchema = z.object({
|
|
|
12872
12878
|
* * Inactive`),
|
|
12873
12879
|
TemplateID: z.string().describe(`
|
|
12874
12880
|
* * Field Name: TemplateID
|
|
12875
|
-
* * Display Name: Template
|
|
12881
|
+
* * Display Name: Template
|
|
12876
12882
|
* * SQL Data Type: uniqueidentifier
|
|
12877
12883
|
* * Related Entity/Foreign Key: MJ: Templates (vwTemplates.ID)`),
|
|
12878
12884
|
AIModelID: z.string().describe(`
|
|
12879
12885
|
* * Field Name: AIModelID
|
|
12880
|
-
* * Display Name:
|
|
12886
|
+
* * Display Name: AI Model
|
|
12881
12887
|
* * SQL Data Type: uniqueidentifier
|
|
12882
12888
|
* * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)`),
|
|
12883
12889
|
PotentialMatchThreshold: z.number().describe(`
|
|
@@ -12894,34 +12900,49 @@ export const MJEntityDocumentSchema = z.object({
|
|
|
12894
12900
|
* * Description: Value between 0 and 1 that determines what is considered an absolute matching record. Value must be >= PotentialMatchThreshold. This is primarily used for duplicate detection but can be used for other applications as well where matching is relevant.`),
|
|
12895
12901
|
__mj_CreatedAt: z.date().describe(`
|
|
12896
12902
|
* * Field Name: __mj_CreatedAt
|
|
12897
|
-
* * Display Name:
|
|
12903
|
+
* * Display Name: Created At
|
|
12898
12904
|
* * SQL Data Type: datetimeoffset
|
|
12899
12905
|
* * Default Value: getutcdate()`),
|
|
12900
12906
|
__mj_UpdatedAt: z.date().describe(`
|
|
12901
12907
|
* * Field Name: __mj_UpdatedAt
|
|
12902
|
-
* * Display Name:
|
|
12908
|
+
* * Display Name: Updated At
|
|
12903
12909
|
* * SQL Data Type: datetimeoffset
|
|
12904
12910
|
* * Default Value: getutcdate()`),
|
|
12911
|
+
VectorIndexID: z.string().nullable().describe(`
|
|
12912
|
+
* * Field Name: VectorIndexID
|
|
12913
|
+
* * Display Name: Vector Index
|
|
12914
|
+
* * SQL Data Type: uniqueidentifier
|
|
12915
|
+
* * Related Entity/Foreign Key: MJ: Vector Indexes (vwVectorIndexes.ID)
|
|
12916
|
+
* * Description: Optional foreign key to the specific Vector Index where this entity document's embeddings should be stored. When specified, the vectorization pipeline will upsert vectors directly to this index rather than auto-creating or looking up an index based on VectorDatabaseID + AIModelID. This enables explicit control over which Pinecone/Weaviate/etc. index is used per entity document, supporting multi-index architectures and shared indexes across entity types.`),
|
|
12917
|
+
Configuration: z.string().nullable().describe(`
|
|
12918
|
+
* * Field Name: Configuration
|
|
12919
|
+
* * Display Name: Configuration
|
|
12920
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
12921
|
+
* * Description: JSON configuration settings for this entity document. Controls vector metadata field inclusion (which fields get stored in the vector index for search result display), large field truncation limits, and future settings like sync scheduling and threshold overrides. NULL means use system defaults.`),
|
|
12905
12922
|
Type: z.string().describe(`
|
|
12906
12923
|
* * Field Name: Type
|
|
12907
|
-
* * Display Name: Type
|
|
12924
|
+
* * Display Name: Type Name
|
|
12908
12925
|
* * SQL Data Type: nvarchar(100)`),
|
|
12909
12926
|
Entity: z.string().describe(`
|
|
12910
12927
|
* * Field Name: Entity
|
|
12911
|
-
* * Display Name: Entity
|
|
12928
|
+
* * Display Name: Entity Name
|
|
12912
12929
|
* * SQL Data Type: nvarchar(255)`),
|
|
12913
12930
|
VectorDatabase: z.string().describe(`
|
|
12914
12931
|
* * Field Name: VectorDatabase
|
|
12915
|
-
* * Display Name: Vector Database
|
|
12932
|
+
* * Display Name: Vector Database Name
|
|
12916
12933
|
* * SQL Data Type: nvarchar(100)`),
|
|
12917
12934
|
Template: z.string().describe(`
|
|
12918
12935
|
* * Field Name: Template
|
|
12919
|
-
* * Display Name: Template
|
|
12936
|
+
* * Display Name: Template Name
|
|
12920
12937
|
* * SQL Data Type: nvarchar(255)`),
|
|
12921
12938
|
AIModel: z.string().describe(`
|
|
12922
12939
|
* * Field Name: AIModel
|
|
12923
|
-
* * Display Name:
|
|
12940
|
+
* * Display Name: AI Model Name
|
|
12924
12941
|
* * SQL Data Type: nvarchar(50)`),
|
|
12942
|
+
VectorIndex: z.string().nullable().describe(`
|
|
12943
|
+
* * Field Name: VectorIndex
|
|
12944
|
+
* * Display Name: Vector Index Name
|
|
12945
|
+
* * SQL Data Type: nvarchar(255)`),
|
|
12925
12946
|
});
|
|
12926
12947
|
/**
|
|
12927
12948
|
* zod schema definition for the entity MJ: Entity Field Values
|
|
@@ -22026,6 +22047,11 @@ export const MJVectorDatabaseSchema = z.object({
|
|
|
22026
22047
|
* * Display Name: Updated At
|
|
22027
22048
|
* * SQL Data Type: datetimeoffset
|
|
22028
22049
|
* * Default Value: getutcdate()`),
|
|
22050
|
+
Configuration: z.string().nullable().describe(`
|
|
22051
|
+
* * Field Name: Configuration
|
|
22052
|
+
* * Display Name: Configuration
|
|
22053
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
22054
|
+
* * Description: JSON configuration settings for this vector database provider. Stores provider-specific connection settings like custom host URLs, authentication configuration, timeouts, retry policies, and batch size limits. NULL means use defaults from environment variables or provider defaults.`),
|
|
22029
22055
|
});
|
|
22030
22056
|
/**
|
|
22031
22057
|
* zod schema definition for the entity MJ: Vector Indexes
|
|
@@ -22046,12 +22072,12 @@ export const MJVectorIndexSchema = z.object({
|
|
|
22046
22072
|
* * SQL Data Type: nvarchar(MAX)`),
|
|
22047
22073
|
VectorDatabaseID: z.string().describe(`
|
|
22048
22074
|
* * Field Name: VectorDatabaseID
|
|
22049
|
-
* * Display Name: Vector Database
|
|
22075
|
+
* * Display Name: Vector Database
|
|
22050
22076
|
* * SQL Data Type: uniqueidentifier
|
|
22051
22077
|
* * Related Entity/Foreign Key: MJ: Vector Databases (vwVectorDatabases.ID)`),
|
|
22052
22078
|
EmbeddingModelID: z.string().describe(`
|
|
22053
22079
|
* * Field Name: EmbeddingModelID
|
|
22054
|
-
* * Display Name: Embedding Model
|
|
22080
|
+
* * Display Name: Embedding Model
|
|
22055
22081
|
* * SQL Data Type: uniqueidentifier
|
|
22056
22082
|
* * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)`),
|
|
22057
22083
|
__mj_CreatedAt: z.date().describe(`
|
|
@@ -22064,13 +22090,33 @@ export const MJVectorIndexSchema = z.object({
|
|
|
22064
22090
|
* * Display Name: Updated At
|
|
22065
22091
|
* * SQL Data Type: datetimeoffset
|
|
22066
22092
|
* * Default Value: getutcdate()`),
|
|
22093
|
+
ExternalID: z.string().nullable().describe(`
|
|
22094
|
+
* * Field Name: ExternalID
|
|
22095
|
+
* * Display Name: External ID
|
|
22096
|
+
* * SQL Data Type: nvarchar(500)
|
|
22097
|
+
* * Description: The provider's native identifier for this index. For Pinecone this is the index name; for other providers it may be a separate UUID or identifier. Used for syncing operations between MJ metadata and the remote vector database.`),
|
|
22098
|
+
Dimensions: z.number().nullable().describe(`
|
|
22099
|
+
* * Field Name: Dimensions
|
|
22100
|
+
* * Display Name: Dimensions
|
|
22101
|
+
* * SQL Data Type: int
|
|
22102
|
+
* * Description: The number of dimensions for vectors stored in this index. Determined by the embedding model (e.g., 1536 for text-embedding-3-small, 768 for all-mpnet-base-v2). Set automatically when the index is created via the vector database provider.`),
|
|
22103
|
+
Metric: z.string().nullable().describe(`
|
|
22104
|
+
* * Field Name: Metric
|
|
22105
|
+
* * Display Name: Distance Metric
|
|
22106
|
+
* * SQL Data Type: nvarchar(50)
|
|
22107
|
+
* * Description: The distance metric used for similarity calculations in this index. Common values: cosine (default, measures angular similarity), euclidean (L2 distance), dotproduct (inner product). Must match what the vector database provider was configured with.`),
|
|
22108
|
+
ProviderConfig: z.string().nullable().describe(`
|
|
22109
|
+
* * Field Name: ProviderConfig
|
|
22110
|
+
* * Display Name: Provider Configuration
|
|
22111
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
22112
|
+
* * Description: JSON object containing provider-specific configuration for this index. For Pinecone serverless: {"cloud":"aws","region":"us-east-1"}. For pod-based: {"environment":"us-east1-gcp","podType":"p1.x1","replicas":1}. Stored as a flexible JSON bag to support any provider without schema changes.`),
|
|
22067
22113
|
VectorDatabase: z.string().describe(`
|
|
22068
22114
|
* * Field Name: VectorDatabase
|
|
22069
|
-
* * Display Name: Vector Database
|
|
22115
|
+
* * Display Name: Vector Database Name
|
|
22070
22116
|
* * SQL Data Type: nvarchar(100)`),
|
|
22071
22117
|
EmbeddingModel: z.string().describe(`
|
|
22072
22118
|
* * Field Name: EmbeddingModel
|
|
22073
|
-
* * Display Name: Embedding Model
|
|
22119
|
+
* * Display Name: Embedding Model Name
|
|
22074
22120
|
* * SQL Data Type: nvarchar(50)`),
|
|
22075
22121
|
});
|
|
22076
22122
|
/**
|
|
@@ -37307,7 +37353,7 @@ let MJAIPromptEntity = class MJAIPromptEntity extends BaseEntity {
|
|
|
37307
37353
|
}
|
|
37308
37354
|
/**
|
|
37309
37355
|
* * Field Name: CacheMustMatchConfig
|
|
37310
|
-
* * Display Name: Cache Must Match
|
|
37356
|
+
* * Display Name: Cache Must Match Config
|
|
37311
37357
|
* * SQL Data Type: bit
|
|
37312
37358
|
* * Default Value: 0
|
|
37313
37359
|
* * Description: When true, the configuration must match for a cache hit. When false, results from any configuration can be used.
|
|
@@ -37513,7 +37559,7 @@ let MJAIPromptEntity = class MJAIPromptEntity extends BaseEntity {
|
|
|
37513
37559
|
}
|
|
37514
37560
|
/**
|
|
37515
37561
|
* * Field Name: FailoverDelaySeconds
|
|
37516
|
-
* * Display Name: Failover Delay (
|
|
37562
|
+
* * Display Name: Failover Delay (Seconds)
|
|
37517
37563
|
* * SQL Data Type: int
|
|
37518
37564
|
* * Default Value: 5
|
|
37519
37565
|
* * Description: Initial delay in seconds between failover attempts
|
|
@@ -37611,6 +37657,19 @@ let MJAIPromptEntity = class MJAIPromptEntity extends BaseEntity {
|
|
|
37611
37657
|
this.Set('PrefillFallbackMode', value);
|
|
37612
37658
|
}
|
|
37613
37659
|
/**
|
|
37660
|
+
* * Field Name: RequireSpecificModels
|
|
37661
|
+
* * Display Name: Require Specific Models
|
|
37662
|
+
* * SQL Data Type: bit
|
|
37663
|
+
* * Default Value: 0
|
|
37664
|
+
* * Description: Only applies when SelectionStrategy is Specific. When 0 (default), if none of the explicitly configured AIPromptModel entries have valid API credentials the system automatically falls back to Default/ByPower model selection across all active models matching the prompt AIModelTypeID. When 1, the system will hard-fail with an error instead of falling back, ensuring only the explicitly configured models are ever used.
|
|
37665
|
+
*/
|
|
37666
|
+
get RequireSpecificModels() {
|
|
37667
|
+
return this.Get('RequireSpecificModels');
|
|
37668
|
+
}
|
|
37669
|
+
set RequireSpecificModels(value) {
|
|
37670
|
+
this.Set('RequireSpecificModels', value);
|
|
37671
|
+
}
|
|
37672
|
+
/**
|
|
37614
37673
|
* * Field Name: Template
|
|
37615
37674
|
* * Display Name: Template Text
|
|
37616
37675
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -55343,7 +55402,7 @@ let MJEntityDocumentEntity = class MJEntityDocumentEntity extends BaseEntity {
|
|
|
55343
55402
|
}
|
|
55344
55403
|
/**
|
|
55345
55404
|
* * Field Name: TypeID
|
|
55346
|
-
* * Display Name: Type
|
|
55405
|
+
* * Display Name: Type
|
|
55347
55406
|
* * SQL Data Type: uniqueidentifier
|
|
55348
55407
|
* * Related Entity/Foreign Key: MJ: Entity Document Types (vwEntityDocumentTypes.ID)
|
|
55349
55408
|
*/
|
|
@@ -55355,7 +55414,7 @@ let MJEntityDocumentEntity = class MJEntityDocumentEntity extends BaseEntity {
|
|
|
55355
55414
|
}
|
|
55356
55415
|
/**
|
|
55357
55416
|
* * Field Name: EntityID
|
|
55358
|
-
* * Display Name: Entity
|
|
55417
|
+
* * Display Name: Entity
|
|
55359
55418
|
* * SQL Data Type: uniqueidentifier
|
|
55360
55419
|
* * Related Entity/Foreign Key: MJ: Entities (vwEntities.ID)
|
|
55361
55420
|
*/
|
|
@@ -55367,7 +55426,7 @@ let MJEntityDocumentEntity = class MJEntityDocumentEntity extends BaseEntity {
|
|
|
55367
55426
|
}
|
|
55368
55427
|
/**
|
|
55369
55428
|
* * Field Name: VectorDatabaseID
|
|
55370
|
-
* * Display Name: Vector Database
|
|
55429
|
+
* * Display Name: Vector Database
|
|
55371
55430
|
* * SQL Data Type: uniqueidentifier
|
|
55372
55431
|
* * Related Entity/Foreign Key: MJ: Vector Databases (vwVectorDatabases.ID)
|
|
55373
55432
|
*/
|
|
@@ -55395,7 +55454,7 @@ let MJEntityDocumentEntity = class MJEntityDocumentEntity extends BaseEntity {
|
|
|
55395
55454
|
}
|
|
55396
55455
|
/**
|
|
55397
55456
|
* * Field Name: TemplateID
|
|
55398
|
-
* * Display Name: Template
|
|
55457
|
+
* * Display Name: Template
|
|
55399
55458
|
* * SQL Data Type: uniqueidentifier
|
|
55400
55459
|
* * Related Entity/Foreign Key: MJ: Templates (vwTemplates.ID)
|
|
55401
55460
|
*/
|
|
@@ -55407,7 +55466,7 @@ let MJEntityDocumentEntity = class MJEntityDocumentEntity extends BaseEntity {
|
|
|
55407
55466
|
}
|
|
55408
55467
|
/**
|
|
55409
55468
|
* * Field Name: AIModelID
|
|
55410
|
-
* * Display Name:
|
|
55469
|
+
* * Display Name: AI Model
|
|
55411
55470
|
* * SQL Data Type: uniqueidentifier
|
|
55412
55471
|
* * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
|
|
55413
55472
|
*/
|
|
@@ -55445,7 +55504,7 @@ let MJEntityDocumentEntity = class MJEntityDocumentEntity extends BaseEntity {
|
|
|
55445
55504
|
}
|
|
55446
55505
|
/**
|
|
55447
55506
|
* * Field Name: __mj_CreatedAt
|
|
55448
|
-
* * Display Name:
|
|
55507
|
+
* * Display Name: Created At
|
|
55449
55508
|
* * SQL Data Type: datetimeoffset
|
|
55450
55509
|
* * Default Value: getutcdate()
|
|
55451
55510
|
*/
|
|
@@ -55454,7 +55513,7 @@ let MJEntityDocumentEntity = class MJEntityDocumentEntity extends BaseEntity {
|
|
|
55454
55513
|
}
|
|
55455
55514
|
/**
|
|
55456
55515
|
* * Field Name: __mj_UpdatedAt
|
|
55457
|
-
* * Display Name:
|
|
55516
|
+
* * Display Name: Updated At
|
|
55458
55517
|
* * SQL Data Type: datetimeoffset
|
|
55459
55518
|
* * Default Value: getutcdate()
|
|
55460
55519
|
*/
|
|
@@ -55462,8 +55521,33 @@ let MJEntityDocumentEntity = class MJEntityDocumentEntity extends BaseEntity {
|
|
|
55462
55521
|
return this.Get('__mj_UpdatedAt');
|
|
55463
55522
|
}
|
|
55464
55523
|
/**
|
|
55524
|
+
* * Field Name: VectorIndexID
|
|
55525
|
+
* * Display Name: Vector Index
|
|
55526
|
+
* * SQL Data Type: uniqueidentifier
|
|
55527
|
+
* * Related Entity/Foreign Key: MJ: Vector Indexes (vwVectorIndexes.ID)
|
|
55528
|
+
* * Description: Optional foreign key to the specific Vector Index where this entity document's embeddings should be stored. When specified, the vectorization pipeline will upsert vectors directly to this index rather than auto-creating or looking up an index based on VectorDatabaseID + AIModelID. This enables explicit control over which Pinecone/Weaviate/etc. index is used per entity document, supporting multi-index architectures and shared indexes across entity types.
|
|
55529
|
+
*/
|
|
55530
|
+
get VectorIndexID() {
|
|
55531
|
+
return this.Get('VectorIndexID');
|
|
55532
|
+
}
|
|
55533
|
+
set VectorIndexID(value) {
|
|
55534
|
+
this.Set('VectorIndexID', value);
|
|
55535
|
+
}
|
|
55536
|
+
/**
|
|
55537
|
+
* * Field Name: Configuration
|
|
55538
|
+
* * Display Name: Configuration
|
|
55539
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
55540
|
+
* * Description: JSON configuration settings for this entity document. Controls vector metadata field inclusion (which fields get stored in the vector index for search result display), large field truncation limits, and future settings like sync scheduling and threshold overrides. NULL means use system defaults.
|
|
55541
|
+
*/
|
|
55542
|
+
get Configuration() {
|
|
55543
|
+
return this.Get('Configuration');
|
|
55544
|
+
}
|
|
55545
|
+
set Configuration(value) {
|
|
55546
|
+
this.Set('Configuration', value);
|
|
55547
|
+
}
|
|
55548
|
+
/**
|
|
55465
55549
|
* * Field Name: Type
|
|
55466
|
-
* * Display Name: Type
|
|
55550
|
+
* * Display Name: Type Name
|
|
55467
55551
|
* * SQL Data Type: nvarchar(100)
|
|
55468
55552
|
*/
|
|
55469
55553
|
get Type() {
|
|
@@ -55471,7 +55555,7 @@ let MJEntityDocumentEntity = class MJEntityDocumentEntity extends BaseEntity {
|
|
|
55471
55555
|
}
|
|
55472
55556
|
/**
|
|
55473
55557
|
* * Field Name: Entity
|
|
55474
|
-
* * Display Name: Entity
|
|
55558
|
+
* * Display Name: Entity Name
|
|
55475
55559
|
* * SQL Data Type: nvarchar(255)
|
|
55476
55560
|
*/
|
|
55477
55561
|
get Entity() {
|
|
@@ -55479,7 +55563,7 @@ let MJEntityDocumentEntity = class MJEntityDocumentEntity extends BaseEntity {
|
|
|
55479
55563
|
}
|
|
55480
55564
|
/**
|
|
55481
55565
|
* * Field Name: VectorDatabase
|
|
55482
|
-
* * Display Name: Vector Database
|
|
55566
|
+
* * Display Name: Vector Database Name
|
|
55483
55567
|
* * SQL Data Type: nvarchar(100)
|
|
55484
55568
|
*/
|
|
55485
55569
|
get VectorDatabase() {
|
|
@@ -55487,7 +55571,7 @@ let MJEntityDocumentEntity = class MJEntityDocumentEntity extends BaseEntity {
|
|
|
55487
55571
|
}
|
|
55488
55572
|
/**
|
|
55489
55573
|
* * Field Name: Template
|
|
55490
|
-
* * Display Name: Template
|
|
55574
|
+
* * Display Name: Template Name
|
|
55491
55575
|
* * SQL Data Type: nvarchar(255)
|
|
55492
55576
|
*/
|
|
55493
55577
|
get Template() {
|
|
@@ -55495,12 +55579,20 @@ let MJEntityDocumentEntity = class MJEntityDocumentEntity extends BaseEntity {
|
|
|
55495
55579
|
}
|
|
55496
55580
|
/**
|
|
55497
55581
|
* * Field Name: AIModel
|
|
55498
|
-
* * Display Name:
|
|
55582
|
+
* * Display Name: AI Model Name
|
|
55499
55583
|
* * SQL Data Type: nvarchar(50)
|
|
55500
55584
|
*/
|
|
55501
55585
|
get AIModel() {
|
|
55502
55586
|
return this.Get('AIModel');
|
|
55503
55587
|
}
|
|
55588
|
+
/**
|
|
55589
|
+
* * Field Name: VectorIndex
|
|
55590
|
+
* * Display Name: Vector Index Name
|
|
55591
|
+
* * SQL Data Type: nvarchar(255)
|
|
55592
|
+
*/
|
|
55593
|
+
get VectorIndex() {
|
|
55594
|
+
return this.Get('VectorIndex');
|
|
55595
|
+
}
|
|
55504
55596
|
};
|
|
55505
55597
|
MJEntityDocumentEntity = __decorate([
|
|
55506
55598
|
RegisterClass(BaseEntity, 'MJ: Entity Documents')
|
|
@@ -78464,6 +78556,18 @@ let MJVectorDatabaseEntity = class MJVectorDatabaseEntity extends BaseEntity {
|
|
|
78464
78556
|
get __mj_UpdatedAt() {
|
|
78465
78557
|
return this.Get('__mj_UpdatedAt');
|
|
78466
78558
|
}
|
|
78559
|
+
/**
|
|
78560
|
+
* * Field Name: Configuration
|
|
78561
|
+
* * Display Name: Configuration
|
|
78562
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
78563
|
+
* * Description: JSON configuration settings for this vector database provider. Stores provider-specific connection settings like custom host URLs, authentication configuration, timeouts, retry policies, and batch size limits. NULL means use defaults from environment variables or provider defaults.
|
|
78564
|
+
*/
|
|
78565
|
+
get Configuration() {
|
|
78566
|
+
return this.Get('Configuration');
|
|
78567
|
+
}
|
|
78568
|
+
set Configuration(value) {
|
|
78569
|
+
this.Set('Configuration', value);
|
|
78570
|
+
}
|
|
78467
78571
|
};
|
|
78468
78572
|
MJVectorDatabaseEntity = __decorate([
|
|
78469
78573
|
RegisterClass(BaseEntity, 'MJ: Vector Databases')
|
|
@@ -78533,7 +78637,7 @@ let MJVectorIndexEntity = class MJVectorIndexEntity extends BaseEntity {
|
|
|
78533
78637
|
}
|
|
78534
78638
|
/**
|
|
78535
78639
|
* * Field Name: VectorDatabaseID
|
|
78536
|
-
* * Display Name: Vector Database
|
|
78640
|
+
* * Display Name: Vector Database
|
|
78537
78641
|
* * SQL Data Type: uniqueidentifier
|
|
78538
78642
|
* * Related Entity/Foreign Key: MJ: Vector Databases (vwVectorDatabases.ID)
|
|
78539
78643
|
*/
|
|
@@ -78545,7 +78649,7 @@ let MJVectorIndexEntity = class MJVectorIndexEntity extends BaseEntity {
|
|
|
78545
78649
|
}
|
|
78546
78650
|
/**
|
|
78547
78651
|
* * Field Name: EmbeddingModelID
|
|
78548
|
-
* * Display Name: Embedding Model
|
|
78652
|
+
* * Display Name: Embedding Model
|
|
78549
78653
|
* * SQL Data Type: uniqueidentifier
|
|
78550
78654
|
* * Related Entity/Foreign Key: MJ: AI Models (vwAIModels.ID)
|
|
78551
78655
|
*/
|
|
@@ -78574,8 +78678,56 @@ let MJVectorIndexEntity = class MJVectorIndexEntity extends BaseEntity {
|
|
|
78574
78678
|
return this.Get('__mj_UpdatedAt');
|
|
78575
78679
|
}
|
|
78576
78680
|
/**
|
|
78681
|
+
* * Field Name: ExternalID
|
|
78682
|
+
* * Display Name: External ID
|
|
78683
|
+
* * SQL Data Type: nvarchar(500)
|
|
78684
|
+
* * Description: The provider's native identifier for this index. For Pinecone this is the index name; for other providers it may be a separate UUID or identifier. Used for syncing operations between MJ metadata and the remote vector database.
|
|
78685
|
+
*/
|
|
78686
|
+
get ExternalID() {
|
|
78687
|
+
return this.Get('ExternalID');
|
|
78688
|
+
}
|
|
78689
|
+
set ExternalID(value) {
|
|
78690
|
+
this.Set('ExternalID', value);
|
|
78691
|
+
}
|
|
78692
|
+
/**
|
|
78693
|
+
* * Field Name: Dimensions
|
|
78694
|
+
* * Display Name: Dimensions
|
|
78695
|
+
* * SQL Data Type: int
|
|
78696
|
+
* * Description: The number of dimensions for vectors stored in this index. Determined by the embedding model (e.g., 1536 for text-embedding-3-small, 768 for all-mpnet-base-v2). Set automatically when the index is created via the vector database provider.
|
|
78697
|
+
*/
|
|
78698
|
+
get Dimensions() {
|
|
78699
|
+
return this.Get('Dimensions');
|
|
78700
|
+
}
|
|
78701
|
+
set Dimensions(value) {
|
|
78702
|
+
this.Set('Dimensions', value);
|
|
78703
|
+
}
|
|
78704
|
+
/**
|
|
78705
|
+
* * Field Name: Metric
|
|
78706
|
+
* * Display Name: Distance Metric
|
|
78707
|
+
* * SQL Data Type: nvarchar(50)
|
|
78708
|
+
* * Description: The distance metric used for similarity calculations in this index. Common values: cosine (default, measures angular similarity), euclidean (L2 distance), dotproduct (inner product). Must match what the vector database provider was configured with.
|
|
78709
|
+
*/
|
|
78710
|
+
get Metric() {
|
|
78711
|
+
return this.Get('Metric');
|
|
78712
|
+
}
|
|
78713
|
+
set Metric(value) {
|
|
78714
|
+
this.Set('Metric', value);
|
|
78715
|
+
}
|
|
78716
|
+
/**
|
|
78717
|
+
* * Field Name: ProviderConfig
|
|
78718
|
+
* * Display Name: Provider Configuration
|
|
78719
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
78720
|
+
* * Description: JSON object containing provider-specific configuration for this index. For Pinecone serverless: {"cloud":"aws","region":"us-east-1"}. For pod-based: {"environment":"us-east1-gcp","podType":"p1.x1","replicas":1}. Stored as a flexible JSON bag to support any provider without schema changes.
|
|
78721
|
+
*/
|
|
78722
|
+
get ProviderConfig() {
|
|
78723
|
+
return this.Get('ProviderConfig');
|
|
78724
|
+
}
|
|
78725
|
+
set ProviderConfig(value) {
|
|
78726
|
+
this.Set('ProviderConfig', value);
|
|
78727
|
+
}
|
|
78728
|
+
/**
|
|
78577
78729
|
* * Field Name: VectorDatabase
|
|
78578
|
-
* * Display Name: Vector Database
|
|
78730
|
+
* * Display Name: Vector Database Name
|
|
78579
78731
|
* * SQL Data Type: nvarchar(100)
|
|
78580
78732
|
*/
|
|
78581
78733
|
get VectorDatabase() {
|
|
@@ -78583,7 +78735,7 @@ let MJVectorIndexEntity = class MJVectorIndexEntity extends BaseEntity {
|
|
|
78583
78735
|
}
|
|
78584
78736
|
/**
|
|
78585
78737
|
* * Field Name: EmbeddingModel
|
|
78586
|
-
* * Display Name: Embedding Model
|
|
78738
|
+
* * Display Name: Embedding Model Name
|
|
78587
78739
|
* * SQL Data Type: nvarchar(50)
|
|
78588
78740
|
*/
|
|
78589
78741
|
get EmbeddingModel() {
|