# Max limit for query\_vector in kibana?

**URL:** <https://discuss.elastic.co/t/max-limit-for-query-vector-in-kibana/362710>\
**Category:** Kibana\
**Created:** [July 8, 2024, 1:03pm UTC](https://discuss.elastic.co/t/max-limit-for-query-vector-in-kibana/362710 "2024-07-08T13:03:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoann\_Buzenet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yoann_buzenet/32/133522_2.png) [@Yoann\_Buzenet](https://discuss.elastic.co/u/Yoann_Buzenet)\
**Post date:** [July 8, 2024, 1:03pm UTC](https://discuss.elastic.co/t/max-limit-for-query-vector-in-kibana/362710/1 "2024-07-08T13:03:59Z")

</div>

Hello,

Is there a maximum size for query\_vector field in a search ? I am running into a behavior that I can't explain. Here are the details:

I'm running this on Kibana 8.13.2

Here are the 3 steps to reproduce :

1. Index creation

```auto
PUT /bug_queryvector
{
  "mappings": {
    "properties": {
      "embedding": {
        "type": "dense_vector",
        "dims": 1024
      }
    }
  }
}

```

1. Add products  
[Add products to index · GitHub](https://gist.github.com/YoannBuzenet/65a4d0bb41d353d4168b6142068e04d7)

2. send the query:  
[send query bug max query vector size · GitHub](https://gist.github.com/YoannBuzenet/26689745b48d5fcabf7f368e30093724)

And you see the following error :

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "x_content_parse_exception",
        "reason": """[15:1] Unexpected end-of-input within/between Object entries
 at [Source: (org.elasticsearch.common.bytes.BytesReferenceStreamInput); line: 15, column: 1]"""
      }
    ],
    "type": "x_content_parse_exception",
    "reason": """[15:1] Unexpected end-of-input within/between Object entries
 at [Source: (org.elasticsearch.common.bytes.BytesReferenceStreamInput); line: 15, column: 1]""",
    "caused_by": {
      "type": "json_parse_exception",
      "reason": """Unexpected end-of-input within/between Object entries
 at [Source: (org.elasticsearch.common.bytes.BytesReferenceStreamInput); line: 15, column: 1]"""
    }
  },
  "status": 400
}

```

Also, on Kibana, I see that my array of vector becomes black and is not colored anymore after a while. Could it be a matter of length ? It is a 1024 size long array.

Here is the color changing behavior :

 ![Screenshot from 2024-07-08 15-12-40](https://us1.discourse-cdn.com/elastic/original/3X/3/8/386973594ccb21e10d1ed8a9e233550d2b32428b.png)

Would you have an idea about what it could come from ?

---

<div class="post-metadata">

**Author:** ![Yoann\_Buzenet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yoann_buzenet/32/133522_2.png) [@Yoann\_Buzenet](https://discuss.elastic.co/u/Yoann_Buzenet)\
**Post date:** [July 9, 2024, 5:22pm UTC](https://discuss.elastic.co/t/max-limit-for-query-vector-in-kibana/362710/2 "2024-07-09T17:22:59Z")

</div>

This embedding was copied from a terminal output.

I created another one using postman on my microservice and did copy its output there, and it just works. I guess there's a hidden character encoding somewhere.

Anyway it works !

---

<div class="post-metadata">

**Author:** ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)\
**Post date:** [July 10, 2024, 5:33pm UTC](https://discuss.elastic.co/t/max-limit-for-query-vector-in-kibana/362710/3 "2024-07-10T17:33:21Z")

</div>

Thanks @Yoann_Buzenet for sharing your solution here.
