(options *UpsertOptions)
| 187 | } |
| 188 | |
| 189 | func (pa *PineconeAdapter) Upsert(options *UpsertOptions) (*UpsertOutput, error) { |
| 190 | res, err := pa.Client.Upsert(&pinecone.UpsertRequest{ |
| 191 | Vectors: options.Vectors, |
| 192 | Namespace: options.Namespace, |
| 193 | }) |
| 194 | |
| 195 | if err != nil { |
| 196 | return nil, err |
| 197 | } |
| 198 | |
| 199 | return &UpsertOutput{ |
| 200 | UpsertedCount: res.UpsertedCount, |
| 201 | }, nil |
| 202 | } |