DiskBBQ and Sliced DiskBBQ vector retrieval
DiskBBQ reduces the memory overhead of large-scale vector retrieval in Alibaba Cloud Elasticsearch Agent Engine Edition, and Sliced DiskBBQ narrows each query to a target tenant, knowledge base, or code repository. Together, they reduce the memory that you must reserve for large volumes of vectors and the cost of reading and computing irrelevant data in a single query.
DiskBBQ: Reduce the memory pressure of growing vector volumes
DiskBBQ is a disk-native vector indexing capability. It uses vector quantization and disk-oriented retrieval to reduce the dependency on keeping vectors RAM-resident. For document and vector stores that keep growing, DiskBBQ lowers the long-term cost of reserving memory for infrequently accessed vectors and leaves more resources for active queries.
Both standard indexes and Collections support DiskBBQ. DiskBBQ fits workloads with large volumes of vector data that need to keep memory costs under control.
Sliced DiskBBQ: Narrow each query to a target business space
Sliced DiskBBQ extends DiskBBQ with Slice awareness. A Slice is a business space within an index, such as a tenant, knowledge base, or code repository, whose vector data is retrieved separately from other Slices. The system locates vector data based on the target Slice and searches for neighbors only within the selected business space, which reduces vector reads and distance calculations on irrelevant Slices. When many knowledge bases share the same underlying index, a query on one knowledge base still focuses on its own data. Sliced DiskBBQ fits applications that have many business spaces but query only a few of them at a time.
When you retrieve data by tenant, knowledge base, or code repository, your application specifies the Slice. For workloads that already completed offline clustering, you can also use Vector cluster recall to select candidate Slices first and then search within them. For details about how business spaces are organized, see Manage data by tenant or knowledge base.
Choose between DiskBBQ and Sliced DiskBBQ
The following table summarizes when to use each capability:
Capability | What it optimizes | Use it when |
DiskBBQ | Memory cost — reduces the dependency on keeping vectors RAM-resident for large volumes of vectors. | You have large volumes of vector data and need to keep memory costs under control. |
Sliced DiskBBQ | Per-query cost — searches for neighbors only within the target Slice, which reduces vector reads and distance calculations on irrelevant Slices. | Your application has many business spaces, such as tenants, knowledge bases, or code repositories, but queries only a few of them at a time. |
Enable DiskBBQ and Sliced DiskBBQ
DiskBBQ and Sliced DiskBBQ both use vector fields configured with index_options.type=bbq_disk. After you use a Collection and select a Slice scope, the system takes the corresponding Slice retrieval path. For fields and query parameters, see Complete example.
Evaluate retrieval performance
DiskBBQ and Sliced DiskBBQ provide approximate nearest-neighbor retrieval. Expanding the search scope improves recall up to the point of diminishing returns, but it also increases compute and read overhead. If your workload requires strictly exact nearest-neighbor results, use an exact retrieval method.
Evaluate recall, latency, and resource consumption with representative business vectors and query sets to determine the appropriate search scope. Test hot and cold queries separately. For test conditions and latency data, see Performance reference in Feature overview.
Next steps
Create, write to, and query a standard index: Complete example.
Organize data by tenant and query it: Query by tenant.