# Metadata size limit 10kb or 40kb?

**URL:** <https://community.pinecone.io/t/metadata-size-limit-10kb-or-40kb/900>\
**Category:** Support\
**Tags:** vector-database\
**Created:** [March 24, 2023, 9:53pm UTC](https://community.pinecone.io/t/metadata-size-limit-10kb-or-40kb/900 "2023-03-24T21:53:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![alach11](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@alach11](https://community.pinecone.io/u/alach11)\
**Post date:** [March 24, 2023, 9:53pm UTC](https://community.pinecone.io/t/metadata-size-limit-10kb-or-40kb/900/1 "2023-03-24T21:53:19Z")

</div>

In the documentation, I see that “Pinecone supports 40kb of metadata per vector.”

> **[Metadata filtering](https://docs.pinecone.io/docs/metadata-filtering#supported-metadata-size)**
>
> You can limit your vector search based on metadata. Pinecone lets you attach metadata key-value pairs to vectors in an index, and specify filter expressions when you query the index.Searches with metadata filters retrieve exactly the number of...

However while using the Python client, I received this error:  
HTTP response body: {“code”:3,“message”:“metadata size is 14087 bytes, which exceeds the limit of 10240 bytes per vector”,“details”:}

I can work around this pretty easily, but I’m curious, am I making a mistake, or is there an inconsistency between the docs and the API?

---

<div class="post-metadata">

**Author:** ![hiranya911](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/hiranya911/32/1018_2.png) [@hiranya911](https://community.pinecone.io/u/hiranya911)\
**Post date:** [March 24, 2023, 10:06pm UTC](https://community.pinecone.io/t/metadata-size-limit-10kb-or-40kb/900/2 "2023-03-24T22:06:35Z")

</div>

Can confirm this as well. Encountered on a new index created today while using the Python client.

---

<div class="post-metadata">

**Author:** ![Cory\_Pinecone](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/cory_pinecone/32/1712_2.png) [@Cory\_Pinecone](https://community.pinecone.io/u/Cory_Pinecone)\
**Post date:** [March 24, 2023, 10:33pm UTC](https://community.pinecone.io/t/metadata-size-limit-10kb-or-40kb/900/3 "2023-03-24T22:33:54Z")

</div>

HI @alach11 and @hiranya911,

Can you confirm which environment you’re using for your indexes? Also, if you could post your index names, that would be helpful.

---

<div class="post-metadata">

**Author:** ![hiranya911](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/hiranya911/32/1018_2.png) [@hiranya911](https://community.pinecone.io/u/hiranya911)\
**Post date:** [March 24, 2023, 11:38pm UTC](https://community.pinecone.io/t/metadata-size-limit-10kb-or-40kb/900/4 "2023-03-24T23:38:17Z")

</div>

I encountered this on us-central1-gcp. I’m not able to share the index name on a public forum. But this was an instance set up via GCP marketplace.

---

<div class="post-metadata">

**Author:** ![alach11](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@alach11](https://community.pinecone.io/u/alach11)\
**Post date:** [March 25, 2023, 3:41am UTC](https://community.pinecone.io/t/metadata-size-limit-10kb-or-40kb/900/5 "2023-03-25T03:41:33Z")

</div>

I’m on us-central1-gcp and my index is called work-observations.

---

<div class="post-metadata">

**Author:** ![Cory\_Pinecone](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/cory_pinecone/32/1712_2.png) [@Cory\_Pinecone](https://community.pinecone.io/u/Cory_Pinecone)\
**Post date:** [March 27, 2023, 4:46pm UTC](https://community.pinecone.io/t/metadata-size-limit-10kb-or-40kb/900/6 "2023-03-27T16:46:18Z")

</div>

Thanks, both. I’ve escalated this to engineering.

---

<div class="post-metadata">

**Author:** ![Cory\_Pinecone](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/cory_pinecone/32/1712_2.png) [@Cory\_Pinecone](https://community.pinecone.io/u/Cory_Pinecone)\
**Post date:** [March 27, 2023, 7:45pm UTC](https://community.pinecone.io/t/metadata-size-limit-10kb-or-40kb/900/7 "2023-03-27T19:45:40Z")

</div>

Ok, you should both be good to go now. You’ll have to create a new index to take advantage of the increased metadata size; you can do that with your existing one so you don’t lost any data by making a collection first, then an index from that collection.

Sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![nicolo\_moreno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/nicolo_moreno/32/209_2.png) [@nicolo\_moreno](https://community.pinecone.io/u/nicolo_moreno)\
**Post date:** [April 4, 2023, 12:06pm UTC](https://community.pinecone.io/t/metadata-size-limit-10kb-or-40kb/900/8 "2023-04-04T12:06:01Z")

</div>

@Cory_Pinecone , I have the same problem with my [huber-172d557.svc.us-east1-gcp.pinecone.io](http://huber-172d557.svc.us-east1-gcp.pinecone.io) index:  
{“code”:3,“message”:“metadata size is 10546 bytes, which exceeds the limit of 10240 bytes per vector”,“details”:}

Could you increase metadata size for me too?

---

<div class="post-metadata">

**Author:** ![Arn0n1m](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/arn0n1m/32/579_2.png) [@Arn0n1m](https://community.pinecone.io/u/Arn0n1m)\
**Post date:** [May 21, 2023, 11:24pm UTC](https://community.pinecone.io/t/metadata-size-limit-10kb-or-40kb/900/9 "2023-05-21T23:24:57Z")

</div>

Also have this error. Could possibly increasing metadata size also work for this account?

```auto
ApiException: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'content-type': 'application/json', 'date': 'Sun, 21 May 2023 23:06:10 GMT', 'x-envoy-upstream-service-time': '3', 'content-length': '115', 'server': 'envoy'})
HTTP response body: {"code":3,"message":"metadata size is 52074 bytes, which exceeds the limit of 40960 bytes per vector","details":[]}

```
