TsgcAIDatabaseVectorPinecone › Methods › EndAddData
Sends the accumulated vectors to Pinecone in a single upsert request.
procedure EndAddData;
Builds a VectorsUpsert call against the index configured in PineconeIndexOptions (IndexName + ProjectId) and sends every vector queued by AddData. Always call it from a try..finally block to guarantee that network resources are released.
oDB.BeginAddData;
try
oDB.AddData('hello world', vVector1);
oDB.AddData('foo bar', vVector2);
finally
oDB.EndAddData;
end;