https://docs.pinecone.io/reference/delete_index
(name string)
| 256 | |
| 257 | // https://docs.pinecone.io/reference/delete_index |
| 258 | func (api pineconeAPI) deleteIndex(name string) error { |
| 259 | base := api.getIndexOperationURL(fmt.Sprintf("databases/%s", name)) |
| 260 | _, err := api.request("DELETE", base, nil, http.StatusAccepted) |
| 261 | return err |
| 262 | } |
| 263 | |
| 264 | // https://docs.pinecone.io/reference/upsert |
| 265 | func (api pineconeAPI) upsert(indexName, namespace, id string, vector []float32) error { |