ragleap-rag · release notes
2026-11-15 · ragleap-rag-v0.16.0
ragleap-rag v0.16.0
Upgrade note
- Tenant views (
RagLeap.for_tenant) on the Redis, OpenSearch and LanceDB backends of ragleap-vectorstores need ragleap-vectorstores>=0.7.0; on 0.6.x those backends ignore the tenant filter or cannot filter by tenant_id.
Added
- Opt-in multi-tenant scope:
RagLeap.for_tenant(tenant_id) returns a view that tags every ingest with tenant_id, adds it to every search filter, prefixes session ids, and lists, deletes and updates only that tenant's documents. RagLeap(..., require_tenant=True) makes unscoped calls raise TenantRequiredError. Default behaviour is unchanged; documents ingested without a tenant tag are not visible through a view.
Fixed
PineconeBackend, QdrantBackend, MilvusBackend and WeaviateBackend: the stored chunk fields (document_id, document_name, chunk_index, and for Milvus id and vector) can no longer be overwritten by caller metadata.
MilvusBackend metadata filter: string values are escaped (a value containing a double quote could change the expression), keys must be plain identifiers, booleans are written as true and false, and unsupported value types raise ValueError.
Changed
RagLeap.for_tenant: tenant ids are limited to 1 to 128 characters from A-Z a-z 0-9 _ . @ -, because the id is put into filter expressions.
Release notes mirrored from GitHub Releases.