Add dynamic mapping for knn_vector fields - #12938
Open
naykudev wants to merge 3 commits into
Open
Conversation
Document the two dynamic knn_vector mapping paths introduced in 3.9: a dynamic template using match_mapping_type: knn_vector, and zero-config auto-inference of a knn_vector from a flat numeric array. Includes the inference gate (multiple of 8, within [128, 16000]), dimension locking, and that explicit mappings take precedence. Signed-off-by: ved naykude <vnaykude@amazon.com>
naykudev
requested review from
cwperks,
dlvenable,
epugh,
kolchfa-aws,
mgodwan,
peterzhuamazon and
sumobrian
as code owners
August 18, 2026 20:06
|
Thank you for submitting your PR. The PR states are In progress (or Draft) -> Tech review -> Doc review -> Merged. Before you submit your PR for doc review, make sure the content is technically accurate. If you need help finding a tech reviewer, tag a maintainer. When you're ready for doc review, tag the assignee of this PR. The doc reviewer may push edits to the PR directly or leave comments and editorial suggestions for you to address (let us know in a comment if you have a preference). |
Collaborator
|
@kotwanikunal @Vikasht34 Could you review this PR please? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Documents the two dynamic
knn_vectormapping paths introduced in 3.9:knn_vectoras amatch_mapping_type, withdimensioneither specified or inferred from the first document.knn_vectorwhen its length is a multiple of 8 and within the[128, 16000]range.The section also covers dimension locking after the first document, the shape-based nature of auto-inference (including the misclaim caveat for non-vector numeric arrays), and that an explicit mapping always takes precedence.
Added as a new "Dynamic mapping" section in
_mappings/supported-field-types/knn-vector.md.Related
Checklist