Upsert is not working; I get the error pinecone.core.client.exceptions.PineconeApiTypeError: Invalid type for variable 'metadata'. Required value type is dict and passed type was str at ['metadata']

Although metadata is of type dict, I get the error pinecone.core.client.exceptions.PineconeApiTypeError: Invalid type for variable ‘metadata’. Required value type is dict and passed type was str at [‘metadata’]

Hi @nabil.k.takla, please share the code you used to perform the upsert and a sample of what you passed to the metadata parameter.