TsgcAIDatabaseVectorPineconeMethods › EndAddData

EndAddData Method

Sends the accumulated vectors to Pinecone in a single upsert request.

Syntax

procedure EndAddData;

Remarks

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.

Example

oDB.BeginAddData;
try
  oDB.AddData('hello world', vVector1);
  oDB.AddData('foo bar',     vVector2);
finally
  oDB.EndAddData;
end;

Back to Methods