Inserting vectors into Pinecone
Sudipta013 opened this issue · 0 comments
Sudipta013 commented
console.log('inserting vectors into Pinecone');
const namespace = pineconeIndex.namespace(convertToAscii(filekey));
console.log("inserting vectors into pinecone");
await namespace.upsert(vectors);
return documents[0];
i have tried using this but its throwing error i pass vectors in upsert():
'PineconeRecord<RecordMetadata>'.
Types of property 'metadata' are incompatible.
Type 'object | undefined' is not assignable to type 'RecordMetadata | undefined'.
Type 'object' is not assignable to type 'RecordMetadata'.
Index signature for type 'string' is missing in type '{}'.