Skip to content

Commit a8c1765

Browse files
author
Yuriy Bezsonov
committed
fix(java-spring-ai-agents): correct AWS S3 Vectors API query field names
1 parent b306cc0 commit a8c1765

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/java-spring-ai-agents/scripts/03-knowledgebase.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fi
4242

4343
# Check if vector bucket exists
4444
VECTOR_BUCKET_EXISTS=$(aws s3vectors list-vector-buckets --no-cli-pager \
45-
--query "vectorBuckets[?name=='${VECTOR_BUCKET}'].name | [0]" --output text 2>/dev/null || echo "")
45+
--query "vectorBuckets[?vectorBucketName=='${VECTOR_BUCKET}'].vectorBucketName | [0]" --output text 2>/dev/null || echo "")
4646

4747
if [ -n "${VECTOR_BUCKET_EXISTS}" ] && [ "${VECTOR_BUCKET_EXISTS}" != "None" ]; then
4848
echo "Vector bucket already exists: ${VECTOR_BUCKET}"

apps/java-spring-ai-agents/scripts/99-cleanup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ if [ -n "${INDEX_EXISTS}" ]; then
365365
fi
366366

367367
VECTOR_BUCKET_EXISTS=$(aws s3vectors list-vector-buckets --no-cli-pager \
368-
--query "vectorBuckets[?name=='${VECTOR_BUCKET}'].name" --output text 2>/dev/null || echo "")
368+
--query "vectorBuckets[?vectorBucketName=='${VECTOR_BUCKET}'].vectorBucketName" --output text 2>/dev/null || echo "")
369369

370370
if [ -n "${VECTOR_BUCKET_EXISTS}" ]; then
371371
delete_resource "KB vector bucket" \

0 commit comments

Comments
 (0)