Investigate and Address Dense Vector Mapper Parsing Issue#114516
Investigate and Address Dense Vector Mapper Parsing Issue#114516Rassyan wants to merge 6 commits intoelastic:mainfrom
Conversation
|
@Rassyan the way to fix this is to move the validation out of the That simply does what you do and verifies that it passes. This pr should be pretty simple:
All other changes related to synthetic source and such will be a separate bug fix (like your other PR). |
|
Hi @benwtrent, Thank you for taking care of the parsing bug in #114533. I appreciate your help in addressing the minor "gotcha's" that cropped up. I would like to first complete the fix for #114407, as it seems to be independent of the current mapper issue. I will closely monitor the progress of your PR #114533. Once it is merged, I am willing to address any remaining mapper bugs (parsing order) in this PR #114516. Thanks again for your support! Best regards, |
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
|
I think all the issues are now addressed over the original PR combined with my PR. Closing this one. |
Description:
This PR is created to investigate and address the issue related to the
DenseVectorFieldMapperparsing. The current implementation has led to some parsing inconsistencies, which need to be resolved in a more elegant manner.Example Issue:
Consider the following example:
This request results in the following error:
{ "error": { "root_cause": [ { "type": "mapper_parsing_exception", "reason": "The number of dimensions for field [vector] should be in the range [1, 4096] but was [8000]" } ], "type": "mapper_parsing_exception", "reason": "Failed to parse mapping: The number of dimensions for field [vector] should be in the range [1, 4096] but was [8000]", "caused_by": { "type": "mapper_parsing_exception", "reason": "The number of dimensions for field [vector] should be in the range [1, 4096] but was [8000]" } }, "status": 400 }This issue highlights the need for better validation and parsing logic within the
DenseVectorFieldMapper.Proposed Changes:
DenseVectorFieldMapperto ensure that all necessary fields are correctly parsed and validated.Rationale:
The goal is to find a more elegant and sustainable solution to the parsing issue without fundamentally changing how all mappers iterate values. This approach aligns with the feedback received and aims to improve the overall reliability of the
DenseVectorFieldMapper.Next Steps: