(options *UpdateOptions)
| 160 | type UpdateOutput struct{} |
| 161 | |
| 162 | func (pa *PineconeAdapter) Update(options *UpdateOptions) (*UpdateOutput, error) { |
| 163 | _, err := pa.Client.Update(&pinecone.UpdateRequest{ |
| 164 | ID: options.ID, |
| 165 | Values: options.Values, |
| 166 | SparseValues: options.SparseValues, |
| 167 | SetMetadata: options.SetMetadata, |
| 168 | Namespace: options.Namespace, |
| 169 | }) |
| 170 | |
| 171 | if err != nil { |
| 172 | return nil, err |
| 173 | } |
| 174 | |
| 175 | return &UpdateOutput{}, nil |
| 176 | } |
| 177 | |
| 178 | // Upsert |
| 179 |