Upon executing an upsert operation on the vector provided below, I noticed that the document_id was automatically converted into a datetime.date object.
Here is the vector:
vector = {
“text”: “Some random text”,
“metadata”: {
“name”: “text_1”,
“document_id”: “16790821”,
“ref_id”: “ref_1”,
“id”: “21256”
}
}
After querying the vector, this is what was returned:
{
‘matches’: [{
‘id’: ‘21256’,
‘metadata’: {
‘document_id’: datetime.date(1679, 8, 21),
‘id’: ‘21256’,
‘name’: ‘text_1’,
‘ref_id’: ‘ref_1’,
‘text’: ‘Some random text’
},
‘score’: 1.0,
‘values’:
}],
‘namespace’: ‘’
}
Is this an unintended bug, or is it predictable behavior? I couldn’t find any relevant information about this within the official Pinecone documentation. Furthermore, is there a method to prevent numerical strings of a certain length from being converted into datetime.date objects?