Skip to content

feat: add optional dimensions to text2vec-aws vectorizer - #448

Merged
g-despot merged 2 commits into
mainfrom
feat/text2vec-aws-dimensions
Aug 18, 2026
Merged

feat: add optional dimensions to text2vec-aws vectorizer#448
g-despot merged 2 commits into
mainfrom
feat/text2vec-aws-dimensions

Conversation

@g-despot

Copy link
Copy Markdown
Contributor

Adds an optional dimensions parameter (output embedding dimensionality) to the text2vec-aws vectorizer config. Omitted when unset, so the server applies its default.

Closes #443

@orca-security-eu orca-security-eu Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@g-despot
g-despot requested a review from bevzzz August 14, 2026 08:03
@g-despot
g-despot force-pushed the feat/text2vec-aws-dimensions branch from 3b12f68 to 1e33462 Compare August 14, 2026 08:56
The setting is only honoured for service `bedrock` with an `amazon.*`
model; `sagemaker` and the `cohere.*` models accept it and embed at their
own default size, so the old comment promised more than the server does.

Split the "all values" test into one valid case per service. Core's
`Validate` makes `endpoint` and `model` mutually exclusive — `endpoint`
is rejected for `bedrock`, `model` for `sagemaker` — so a single case
carrying both can never be a config the server accepts. The `bedrock`
case now shows the combination `dimensions` applies to,
`amazon.titan-embed-text-v2:0` at 512 dimensions, the pair core's own
acceptance test uses; a new `sagemaker` case keeps `endpoint` covered in
the service where it is legal. The "defaults" test is unchanged and
still covers omit-when-unset.
@g-despot
g-despot force-pushed the feat/text2vec-aws-dimensions branch from 1e33462 to e388aba Compare August 14, 2026 09:39

@bevzzz bevzzz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good one!

@g-despot
g-despot merged commit e3e4229 into main Aug 18, 2026
15 checks passed
@g-despot
g-despot deleted the feat/text2vec-aws-dimensions branch August 18, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for dimensions setting in text2vec-aws module

2 participants