TsgcAIDatabaseVectorPinecone › Methods › AddData
Queues a single vector inside the current Pinecone upsert batch.
procedure AddData(const aInput, aVector: string);
| Name | Type | Description |
|---|---|---|
aInput | const string | Original text associated with the embedding; kept for user reference (the generated vector Id is derived from an internal counter, optionally prefixed by IdLabel). |
aVector | const string | Embedding serialized as a comma-separated list of doubles; it is parsed into a float array and stored in the Pinecone upsert payload. |
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.
oDB.AddData('the quick brown fox', oEmbeddings.GetEmbedding('the quick brown fox'));