TsgcAIDatabaseVectorPineconeMethods › AddData

AddData Method

Queues a single vector inside the current Pinecone upsert batch.

Syntax

procedure AddData(const aInput, aVector: string);

Parameters

NameTypeDescription
aInputconst stringOriginal text associated with the embedding; kept for user reference (the generated vector Id is derived from an internal counter, optionally prefixed by IdLabel).
aVectorconst stringEmbedding serialized as a comma-separated list of doubles; it is parsed into a float array and stored in the Pinecone upsert payload.

Remarks

Creates a new upsert record and appends it to the batch opened by BeginAddData. No HTTP traffic is generated until EndAddData is called. Each record is assigned an automatically incremented Id; dimensionality of the vector must match the one configured for the Pinecone index.

Example

oDB.AddData('the quick brown fox', oEmbeddings.GetEmbedding('the quick brown fox'));

Back to Methods