pinecone-io / pinecone-ts-client

The official TypeScript/Node client for the Pinecone vector database
https://www.pinecone.io
Apache License 2.0
192 stars 38 forks source link

[Bug] support deleteMany for serverless option #196

Open ladrians opened 10 months ago

ladrians commented 10 months ago

Is this a new bug?

Current Behavior

I am trying to test the serverless option as we are using a bunch of indexes in our organization. For us is mandatory to delete or at least locate vectorIds by metadata. Are these limitations permanent? https://docs.pinecone.io/docs/limits#serverless-index-limitations

During ingestion we associate document information that then need to locate all chunks from there during a delete operation. Now we are using a filter like

...
  const filter = {
    id: identifier
  };
...
await namespace.deleteMany(filter);

Expected Behavior

Followed the comments from here but still cannot locate the vectors I need to delete. https://docs.pinecone.io/docs/manage-rag-documents#fetch-all-records-for-a-parent-document

Steps To Reproduce

create a serverless index, try to delete some vectors by some metadata

...
  const filter = {
    id: identifier
  };
...
await namespace.deleteMany(filter);

Relevant log output

No response

Environment

- **OS**: windows 10
- **Language version**: nodejs 18
- **Pinecone client version**: 2.0.0

Additional Context

Would like to know the timeframe for this support as without this option is not possible to evaluate the new serverless option. Besides would be nice to have a method on the namespace to be able to list documents, otherwise extrametadata is needed to do a POST as detailed here, we do not have the metadata to fully locate the index location

https://docs.pinecone.io/docs/manage-rag-documents#fetch-all-records-for-a-parent-document

In short for the library it would be grat to

standing by, thanks in advance

ladrians commented 10 months ago

any comment on this issue? a little concerned to know this is on the roadmap on the serverless indexes.

phgn0 commented 10 months ago

I'm getting this error when calling deleteMany with a metadata filter on a serverless index:

PineconeBadRequestError: Filters in this operation are not supported by the current index type 'Starter'.

I'm on the Standard account plan though:

Screenshot 2024-01-29 at 5 03 15 PM

dsenese commented 10 months ago

I am getting the same issue on the Standard Plan using serverless. I believe this was working last week however when I originally switched. Would very much appreciate an update on this.

rafalzawadzki commented 9 months ago

I suspect the error is just misleading - just means that filters are not supported in deleteMany operation, regardless of your plan

ladrians commented 9 months ago

any advance on this issue of deleting vectors by metadata for serverless?

ladrians commented 8 months ago

I have not followed this case, is there any advance to be able to delete vectors by metadata for serverless? Is it no the roadmap? Your feedback is important for us to analize options. thanks in advance

anawishnoff commented 3 months ago

This is currently a limitation of serverless, though it's on our roadmap to address. We'll circle back once this has been completed. Thanks!