Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,26 @@
}
},
"required": ["port"]
},
"contextMemoryConfiguration": {
"description": "Tuning for the Context Memory T0 (user preferences) block shipped to the AI Platform via the gRPC user_memory_context field.",
"javaType": "org.openmetadata.schema.configuration.ContextMemoryConfiguration",
"type": "object",
"properties": {
"tokenBudget": {
"description": "Maximum number of tokens worth of T0 user-preference memories to include. Memories are ranked by freshness + usage and filled in order until the budget or item cap is reached.",
"type": "integer",
"default": 500,
"minimum": 0
},
"maxItems": {
"description": "Maximum number of T0 user-preference memories to include regardless of token budget.",
"type": "integer",
"default": 5,
"minimum": 0
}
},
"additionalProperties": false
}
},
"properties": {
Expand Down Expand Up @@ -59,6 +79,10 @@
"grpc": {
"description": "gRPC configuration for the AI Platform server",
"$ref": "#/definitions/grpcConfiguration"
},
"contextMemory": {
"description": "Context Memory tuning for the T0 user-preference block assembled by Collate and shipped to the AI Platform.",
"$ref": "#/definitions/contextMemoryConfiguration"
}
},
"required": ["host", "port", "grpc"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
* This schema defines the JWT Configuration.
*/
export interface AIPlatformConfiguration {
/**
* Context Memory tuning for the T0 user-preference block assembled by Collate and shipped
* to the AI Platform.
*/
contextMemory?: ContextMemoryConfiguration;
/**
* Indicates whether the AI Platform is enabled
*/
Expand Down Expand Up @@ -44,6 +49,25 @@ export interface AIPlatformConfiguration {
trustedCertsPath?: string;
}

/**
* Context Memory tuning for the T0 user-preference block assembled by Collate and shipped
* to the AI Platform.
*
* Tuning for the Context Memory T0 (user preferences) block shipped to the AI Platform via
* the gRPC user_memory_context field.
*/
export interface ContextMemoryConfiguration {
/**
* Maximum number of T0 user-preference memories to include regardless of token budget.
*/
maxItems?: number;
/**
* Maximum number of tokens worth of T0 user-preference memories to include. Memories are
* ranked by freshness + usage and filled in order until the budget or item cap is reached.
*/
tokenBudget?: number;
}

/**
* gRPC configuration for the AI Platform server
*/
Expand Down
Loading