From 60ffbed02d912c02d284505d2f5efdbdd2700fc9 Mon Sep 17 00:00:00 2001 From: "Michael B. Klein" Date: Wed, 6 Nov 2024 22:02:56 +0000 Subject: [PATCH] Update index secret --- data_services/secrets.tf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/data_services/secrets.tf b/data_services/secrets.tf index e295653..9d26591 100644 --- a/data_services/secrets.tf +++ b/data_services/secrets.tf @@ -8,15 +8,15 @@ locals { } index = { - endpoint = aws_opensearch_domain.elasticsearch.endpoint - models = lookup(local.deploy_model_body, "model_id", "DEPLOY ERROR") + endpoint = aws_opensearch_domain.elasticsearch.endpoint + embedding_model = lookup(local.deploy_model_body, "model_id", "DEPLOY ERROR") + embedding_dimensions = var.embedding_dimensions } inference = { - endpoints = { - name = var.embedding_model_name - endpoint = "https://bedrock-runtime.${data.aws_region.current.name}.amazonaws.com/model/${var.embedding_model_name}/invoke" - } + name = var.embedding_model_name + endpoint = "https://bedrock-runtime.${data.aws_region.current.name}.amazonaws.com/model/${var.embedding_model_name}/invoke" + dimensions = var.embedding_dimensions } ldap = merge(var.ldap_config, { port = tonumber(var.ldap_config["port"]) })