# Unable to prepare type ndarray for serialization

**URL:** <https://community.pinecone.io/t/unable-to-prepare-type-ndarray-for-serialization/1874>\
**Category:** Support\
**Tags:** vector-database\
**Created:** [May 15, 2023, 9:14pm UTC](https://community.pinecone.io/t/unable-to-prepare-type-ndarray-for-serialization/1874 "2023-05-15T21:14:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Sean](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/sean/32/543_2.png) [@Sean](https://community.pinecone.io/u/Sean)\
**Post date:** [May 16, 2023, 1:36am UTC](https://community.pinecone.io/t/unable-to-prepare-type-ndarray-for-serialization/1874/2 "2023-05-16T01:36:54Z")

</div>

Figured it out - simply need to turn the model encoding into a list:

vector = model.encode(paragraph\_of\_text).tolist()

Not sure why the docs don’t mention that. 🙂

---

_[View the full topic](https://community.pinecone.io/t/unable-to-prepare-type-ndarray-for-serialization/1874)._
