diff --git a/pkg/component/data/pinecone/v0/task_upsert.go b/pkg/component/data/pinecone/v0/task_upsert.go index 3f70f015b..c5bf7344d 100644 --- a/pkg/component/data/pinecone/v0/task_upsert.go +++ b/pkg/component/data/pinecone/v0/task_upsert.go @@ -57,30 +57,3 @@ func convertOutput(resp upsertResp) *taskUpsertOutput { upsertedCount: resp.RecordsUpserted, } } - -// case taskUpsert: -// req := newIndexClient(e.Setup, e.GetLogger()).R() - -// v := upsertInput{} -// err := base.ConvertFromStructpb(input, &v) -// if err != nil { -// job.Error.Error(ctx, err) -// continue -// } - -// resp := upsertResp{} -// req.SetResult(&resp).SetBody(upsertReq{ -// Vectors: []vector{v.vector}, -// Namespace: v.Namespace, -// }) - -// if _, err := req.Post(upsertPath); err != nil { -// job.Error.Error(ctx, httpclient.WrapURLError(err)) -// continue -// } - -// output, err = base.ConvertToStructpb(upsertOutput(resp)) -// if err != nil { -// job.Error.Error(ctx, err) -// continue -// }