mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-13 08:37:03 +00:00
Fix/bedrock support 1.9.1 (#22908)
* enable bedrock embedding service * Update generated TypeScript types * add configs for embedding provider * Update generated TypeScript types * make embedding dimension dynamic * Update generated TypeScript types --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
ace0729459
commit
13d73de29f
@ -314,10 +314,13 @@ elasticsearch:
|
|||||||
searchIndexFactoryClassName : org.openmetadata.service.search.SearchIndexFactory
|
searchIndexFactoryClassName : org.openmetadata.service.search.SearchIndexFactory
|
||||||
naturalLanguageSearch:
|
naturalLanguageSearch:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
embeddingProvider: ${EMBEDDING_PROVIDER:-bedrock}
|
||||||
providerClass: ${NATURAL_LANGUAGE_SEARCH_PROVIDER_CLASS:-org.openmetadata.service.search.nlq.NoOpNLQService}
|
providerClass: ${NATURAL_LANGUAGE_SEARCH_PROVIDER_CLASS:-org.openmetadata.service.search.nlq.NoOpNLQService}
|
||||||
bedrock:
|
bedrock:
|
||||||
region: ${AWS_BEDROCK_REGION:-""}
|
region: ${AWS_BEDROCK_REGION:-""}
|
||||||
modelId: ${AWS_BEDROCK_MODEL_ID:-""}
|
modelId: ${AWS_BEDROCK_MODEL_ID:-""}
|
||||||
|
embeddingModelId: ${AWS_BEDROCK_EMBED_MODEL_ID:-""}
|
||||||
|
embeddingDimension: ${AWS_BEDROCK_EMBEDDING_DIMENSION:-""}
|
||||||
accessKey: ${AWS_BEDROCK_ACCESS_KEY:-""}
|
accessKey: ${AWS_BEDROCK_ACCESS_KEY:-""}
|
||||||
secretKey: ${AWS_BEDROCK_SECRET_KEY:-""}
|
secretKey: ${AWS_BEDROCK_SECRET_KEY:-""}
|
||||||
useIamRole: ${AWS_BEDROCK_USE_IAM:-"false"}
|
useIamRole: ${AWS_BEDROCK_USE_IAM:-"false"}
|
||||||
|
|||||||
@ -102,6 +102,11 @@
|
|||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
|
"embeddingProvider": {
|
||||||
|
"description": "The provider to use for generating vector embeddings (e.g., bedrock, openai).",
|
||||||
|
"type": "string",
|
||||||
|
"default": "bedrock"
|
||||||
|
},
|
||||||
"providerClass": {
|
"providerClass": {
|
||||||
"description": "Fully qualified class name of the NLQService implementation to use",
|
"description": "Fully qualified class name of the NLQService implementation to use",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -121,6 +126,16 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "anthropic.claude-v2"
|
"default": "anthropic.claude-v2"
|
||||||
},
|
},
|
||||||
|
"embeddingModelId": {
|
||||||
|
"description": "Bedrock embedding model identifier to use for vector search",
|
||||||
|
"type": "string",
|
||||||
|
"default": "amazon.titan-embed-text-v2:0"
|
||||||
|
},
|
||||||
|
"embeddingDimension": {
|
||||||
|
"description": "Dimension of the embedding vector",
|
||||||
|
"type": "integer",
|
||||||
|
"default": 524
|
||||||
|
},
|
||||||
"accessKey": {
|
"accessKey": {
|
||||||
"description": "AWS access key for Bedrock service authentication",
|
"description": "AWS access key for Bedrock service authentication",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
|||||||
@ -89,6 +89,10 @@ export interface NaturalLanguageSearch {
|
|||||||
* AWS Bedrock configuration for natural language processing
|
* AWS Bedrock configuration for natural language processing
|
||||||
*/
|
*/
|
||||||
bedrock?: Bedrock;
|
bedrock?: Bedrock;
|
||||||
|
/**
|
||||||
|
* The provider to use for generating vector embeddings (e.g., bedrock, openai).
|
||||||
|
*/
|
||||||
|
embeddingProvider?: string;
|
||||||
/**
|
/**
|
||||||
* Enable or disable natural language search
|
* Enable or disable natural language search
|
||||||
*/
|
*/
|
||||||
@ -107,6 +111,14 @@ export interface Bedrock {
|
|||||||
* AWS access key for Bedrock service authentication
|
* AWS access key for Bedrock service authentication
|
||||||
*/
|
*/
|
||||||
accessKey?: string;
|
accessKey?: string;
|
||||||
|
/**
|
||||||
|
* Dimension of the embedding vector
|
||||||
|
*/
|
||||||
|
embeddingDimension?: number;
|
||||||
|
/**
|
||||||
|
* Bedrock embedding model identifier to use for vector search
|
||||||
|
*/
|
||||||
|
embeddingModelId?: string;
|
||||||
/**
|
/**
|
||||||
* Bedrock model identifier to use for query transformation
|
* Bedrock model identifier to use for query transformation
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -1328,6 +1328,10 @@ export interface NaturalLanguageSearch {
|
|||||||
* AWS Bedrock configuration for natural language processing
|
* AWS Bedrock configuration for natural language processing
|
||||||
*/
|
*/
|
||||||
bedrock?: Bedrock;
|
bedrock?: Bedrock;
|
||||||
|
/**
|
||||||
|
* The provider to use for generating vector embeddings (e.g., bedrock, openai).
|
||||||
|
*/
|
||||||
|
embeddingProvider?: string;
|
||||||
/**
|
/**
|
||||||
* Enable or disable natural language search
|
* Enable or disable natural language search
|
||||||
*/
|
*/
|
||||||
@ -1346,6 +1350,14 @@ export interface Bedrock {
|
|||||||
* AWS access key for Bedrock service authentication
|
* AWS access key for Bedrock service authentication
|
||||||
*/
|
*/
|
||||||
accessKey?: string;
|
accessKey?: string;
|
||||||
|
/**
|
||||||
|
* Dimension of the embedding vector
|
||||||
|
*/
|
||||||
|
embeddingDimension?: number;
|
||||||
|
/**
|
||||||
|
* Bedrock embedding model identifier to use for vector search
|
||||||
|
*/
|
||||||
|
embeddingModelId?: string;
|
||||||
/**
|
/**
|
||||||
* Bedrock model identifier to use for query transformation
|
* Bedrock model identifier to use for query transformation
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user