Skip to main content
Version: 3.6.2-rc.2

Set RAG storage quotas

Overview​

The RAG Storage Quota system allows administrators to control storage capacity for RAG (Retrieval-Augmented Generation) services through the Stack portal. Manage storage limits at the service level, tenant level, and set defaults for new services.

In the portal, open Manage platform, then Tenants to view tenant storage usage. Select the storage quota button in a tenant's row, enter a Quota, and select Save. Select Remove limit in the same dialog to clear the tenant-wide quota. This requires platform tenant-management permission.

Portal tenant storage

Portal tenant storage quota

Storage management is available in the portal (Manage platform → Tenants): see how much storage each tenant uses and set a limit for a whole tenant.


Key Concepts​

What Gets Limited​

Storage quotas control the total database size for RAG services, including:

  • Document content: Raw text and file data
  • Vector embeddings: High-dimensional vectors for semantic search (HNSW indexes)
  • Metadata: Document and chunk metadata stored as JSON
  • Indexes: All database indexes including primary keys and vector indexes

Limit Types​

  1. Service Quota: Limit for a specific RAG service instance
  2. Tenant Quota: Aggregate limit across all RAG services in a tenant
  3. Default Quota: Applied automatically to new RAG services in a tenant

How Limits Work​

  • No quota set: No limit (unlimited storage). To remove a quota through the API, use UnsetQuota or UnsetTenantQuota. Setting an empty value counts as 0.
  • Zero (0): Storage disabled (all uploads rejected)
  • Positive Numbers: Maximum allowed storage in bytes

Quota Format: Kubernetes quantity strings (e.g., "10G", "500Mi", "1Ti")

Storage limits are Kubernetes quantity strings (e.g. "10G", "500Mi", "1Ti").

Enforcement​

Storage quotas are enforced at upload time:

  • Uploads are allowed until usage reaches ≥95% quota
  • Large file uploads are denied if estimated to exceed quota
  • Both service and tenant quotas apply; an upload must fit the space left under each
  • Usage tracked after operations complete

Quota Hierarchy​

When both service and tenant quotas are configured, the platform compares the space left under each, not the quotas themselves:

  1. Service: the service quota minus what this endpoint already uses
  2. Tenant: the tenant quota minus what all the tenant's endpoints use together
  3. An upload must fit the smaller of the two

Because the tenant quota is shared, an endpoint can have less room than its own quota. Each limit also stops uploads at 95% of the quota, so the room shown below is slightly less in practice.

Examples:

Service quotaTenant quotaRoom for this endpoint
10Gi100Gi, other endpoints use 20GiUp to 10Gi (service limit)
10Gi100Gi, other endpoints use 95GiNone (tenant limit)
Not set100GiWhat's left of the shared 100Gi
10GiNot setUp to 10Gi
Not setNot setUnlimited
0100GiNone (all uploads rejected)