Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector .delete() not working #1561

Open
13 tasks
LawrenceGB opened this issue Dec 11, 2024 · 0 comments
Open
13 tasks

Vector .delete() not working #1561

LawrenceGB opened this issue Dec 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@LawrenceGB
Copy link
Contributor

LawrenceGB commented Dec 11, 2024

Describe the bug
.delete() action from PineconeVectorStore not working.

To Reproduce
Ran a test here, I called delete from a separate call to test and it does not delete the doc from Pinecone:

 const nodeId = "5bb16627-f6c0-459c-bb18-71642813ef21";

const pcvs = new PineconeVectorStore({
    indexName: 'index-1',
    namespace: 'test',
});

const doc = new Document({
    id_: nodeId,
    text: 'Hello world.',
})

const storageContext = await storageContextFromDefaults({
    vectorStore: pcvs,
});

await VectorStoreIndex.fromDocuments([doc], {
    storageContext,
});

await pcvs.delete(nodeId);

Expected behavior
Should have deleted doc from storage

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. macOS, Linux]
  • JS Runtime / Framework / Bundler (select all applicable)
  • [X ] Node.js
  • Deno
  • Bun
  • Next.js
  • ESBuild
  • Rollup
  • Webpack
  • Turbopack
  • Vite
  • Waku
  • Edge Runtime
  • AWS Lambda
  • Cloudflare Worker
  • Others (please elaborate on this)
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@LawrenceGB LawrenceGB added the bug Something isn't working label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant