Skip to content

_mget error, vector's dimensions must be <= [1024] #104639

@li5m

Description

@li5m

Elasticsearch Version

8.12

Installed Plugins

No response

Java Version

bundled

OS Version

Alibaba Cloud Linux 3.2104 LTS 64-bit

Problem Description

Occasionally, an exception is returned when using the _mget API to retrieve documents:
ErrorCause: {"type":"illegal_argument_exception","reason":"Field [textVector] vector's dimensions must be <= [1024]; got 1536","root_cause":[{"type":"illegal_argument_exception","reason":"Field [textVector] vector's dimensions must be <= [1024]; got 1536"}]}

"mappings": {
"dynamic": "strict",
"_source": {
"mode": "synthetic"
},
"properties": {
"actId": {
"type": "keyword"
},
"actPublishTime": {
"type": "date"
},
"activityType": {
"type": "keyword"
},
"docModifyTime": {
"type": "date"
},
"firstCategoryIdList": {
"type": "long"
},
"ghId": {
"type": "keyword"
},
"goodsFirstPic": {
"type": "keyword"
},
"pactId": {
"type": "keyword"
},
"primaryCategory": {
"type": "keyword"
},
"startActId": {
"type": "keyword"
},
"text": {
"type": "keyword",
"index": false
},
"textVector": {
"type": "dense_vector",
"dims": 1536,
"index": true,
"similarity": "l2_norm"
}
}
}

Steps to Reproduce

1、Use dense_vector field.
2、Add documents.
3、Use _mget api.
Can not stable reproduce

Logs (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Distributed Indexing/CRUDA catch all label for issues around indexing, updating and getting a doc by id. Not search.:Search Relevance/VectorsVector search>bugTeam:Distributed (Obsolete)Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.Team:Search RelevanceMeta label for the Search Relevance team in Elasticsearch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions