Problems with vectors/upsert

Hello guys,

I have an API call with the above endpoint.

Strangely, when mapping the vector data, I get an error “[400] Expected a value or ] within an array.
0.00037085838, 0.”

“values”: [0.01776783, 0.00037085838, 0.009771639, -0.019743515, -…]

When I enter the payload in a JSON tool, everything is “OK”.

Why can’t I upload the data via API?

BTW: It works via the Make.com module, i.e. the embeddings fit

Thank you very much!

Hi @info10, and thank you for your question!

Could you please share all your relevant code, being careful not to include any sensitive secrets, such as your Pinecone API key?

That will help us better debug what might be going wrong.

In the meantime, please have a look at our Quickstart guide. It will step you through everything, including creating and upserting data to your index programmatically via the API.

Hope this helps!

Best,
Zack

Hey Zack,

my body payload:

{
“vectors”: [
{
“id”: “23424-{{26.__ROW_NUMBER__}}”,
“values”: [{{8.data.data.embedding}}],
“metadata”: {
“Artikelbeschreibung”: “Artikelbeschreibung”,
“Artikelbezeichnung”: “Artikelbezeichnung”,
“Artikelnummer”:123456,
“Keywords”:[“0815”,“4711”,“Bodylotion”]
}
}
],
“namespace”: “Artikelstamm”
}

My Header
Content-Type: application/json
X-Pinecone-API-Version: 2024-07

Many thanks!

Hey Zack - anything new about this?
I’m stuck here. I can neither use the upsert via an api - call, because it comes with an inexplicable error, nor can I use the upsert-make module.
I can upload the vector data with the upsert-make module, but I can’t upload a dynamic keyword list. Kind of exhausting

1 Like