Skip to content

qdrant: Add metadata-based deletion support to QdrantVectorStore #31712

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

HarshitR2004
Copy link

@HarshitR2004 HarshitR2004 commented Jun 24, 2025

Description
Added support for deleting documents by metadata filters in QdrantVectorStore. Previously, only ID-based deletion was possible.

How it works

  • Finds points matching metadata filters using Qdrant’s scroll method
  • Deletes them by ID

What's new

  • delete() accepts **kwargs for metadata filtering
  • Supports metadata field path construction (metadata.{key})
  • Keeps existing ID-based deletion unchanged

Examples

vector_store.delete(ids=["id1", "id2"])           # Existing  
vector_store.delete(owner="admin")                # New  
vector_store.delete(type="document", status="draft")  

Tests

  • Deletion by ID
  • Deletion by metadata
  • Handling invalid filters

Copy link

vercel bot commented Jun 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Jun 24, 2025 6:12am

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Ɑ: vector store Related to vector store module labels Jun 24, 2025
Copy link

codspeed-hq bot commented Jun 24, 2025

CodSpeed WallTime Performance Report

Merging #31712 will not alter performance

Comparing HarshitR2004:feat/qdrant-metadata-delete (65f7c32) with master (6d71b6b)

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

Summary

✅ 13 untouched benchmarks

Copy link

codspeed-hq bot commented Jun 24, 2025

CodSpeed Instrumentation Performance Report

Merging #31712 will not alter performance

Comparing HarshitR2004:feat/qdrant-metadata-delete (65f7c32) with master (6d71b6b)

Summary

✅ 13 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files. Ɑ: vector store Related to vector store module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant