Skip to content

Commit d5ad5b6

Browse files
authored
fix: embedding_job is failing to generate embeddings (#422)
* Fix for "process_shard() missing 1 required positional argument: model_id" Signed-off-by: saikatak <[email protected]>
1 parent d875bc9 commit d5ad5b6

File tree

1 file changed

+2
-1
lines changed
  • lambda/aws-rag-appsync-stepfn-opensearch/embeddings_job/src

1 file changed

+2
-1
lines changed

lambda/aws-rag-appsync-stepfn-opensearch/embeddings_job/src/lambda.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ def process_documents_in_es(index_exists, shards, http_auth,model_id):
106106
results = process_shard(shard=shard,
107107
os_index_name=opensearch_index,
108108
os_domain_ep=opensearch_domain,
109-
os_http_auth=http_auth)
109+
os_http_auth=http_auth,
110+
model_id=model_id)
110111

111112
def process_documents_in_aoss(index_exists, shards, http_auth,model_id):
112113
bedrock_client = boto3.client('bedrock-runtime')

0 commit comments

Comments
 (0)