RagLeap
ragleap-vectorstores · release notes

ragleap-vectorstores v0.7.1

ragleap-vectorstores 0.7.1

Behaviour changes (read first)

  • RedisBackend creates the tenant_id and document_id TAG fields case-sensitive (CASESENSITIVE). A search for tenant ACME no longer returns chunks of tenant acme.
  • search_dense() now also checks, in Python, that every returned chunk has exactly the requested tenant_id (and document_id). delete_document() deletes only chunks whose document_id is exactly the one given.
  • An index created by 0.7.0 or older keeps its case-insensitive field (RediSearch cannot change it). The backend logs a warning for it. Results are now checked exactly, so no other tenant's chunk is returned, but a search can return fewer than top_k hits when another tenant's id differs only in case. Use a new index_name and re-ingest to get the case-sensitive field.

Fixed

  • REAL BUG in 0.7.0, reproduced with the published 0.7.0 wheel on Redis Stack: two tenants whose ids differ only in case (acme and ACME; both are valid tenant ids in ragleap-rag) saw each other's chunks in search_dense(), because RediSearch TAG fields ignore case unless told otherwise.

Not verified

  • Only Redis Stack was run (the image redis/redis-stack-server:latest, 2026-11-25). The other four backends were read, not attacked with case-different tenant ids.

What this does not defend

  • The tenant tag is whatever the caller (for example rag.for_tenant) passes; this package does not authenticate anyone.
  • On an index made by 0.7.0 or older, chunk counts in list_documents() still match document ids without regard to case.

Added after the release (2026-11-25)

  • Chroma and LanceDB were run for real in a sandbox with tenants acme, ACME, Acme and acme : each search returned only the exact tenant. OpenSearch and Upstash were not run with case-different tenant ids (UNVERIFIED).

Verified (after publishing)

  • Both file hashes match the PyPI JSON.
  • The wheel's .py files are identical to the source at the tag.
  • The 46 tenant-filter tests pass against the installed wheel (clean install, Python 3.12, sandbox).
  • The attack that leaked on 0.7.0 was run again on the published 0.7.1 on Redis Stack (VPS): searching as ACME returned only ACME.txt.
  • Before release, on the VPS (Python 3.10.12): 80 passed and 32 skipped without servers, 22 live Redis Stack tests passed, 18 of 18 deliberate breaks of the new protections were caught.
  • Provenance of both files decoded and matched.

Provenance

  • PyPI upload: 2026-11-25 06:38 UTC. Tag ragleap-vectorstores-v0.7.1 on commit eb404dfc943058557b03632e0d365303b3c10a5f.
  • Wheel sha256 a4f8100729e67f43cc926d863146012655ac7b564a34f2ec0b36b1892d3594cd
  • Source archive sha256 b3b188c21653f31950885ece4b57d954d6e06d68a81180c371ff2fde8acf5638
  • Both files carry a PyPI provenance record: publisher GitHub ragleap/ragleap-core, workflow release.yml, environment pypi; the digests match.
  • No independent security review has been done.
View on GitHub Package page All releases
← v0.7.0

Release notes mirrored from GitHub Releases.