Qdrant Compatibility¶
bdb-search (the benodb-search add-on) speaks the Qdrant v1.x REST
wire format on port 6333 (override with BDB_QDRANT_BIND / BDB_QDRANT_PORT).
Collections are stored as BenoDB tables: a reserved _id (Utf8) column,
a vector (FixedSizeList<Float32>) column, and one Arrow column per inferred
payload field. Collection parameters the engine has no native home for (the
distance metric, HNSW config) are persisted in a small sidecar object
(_qdrant_collection.json) under the collection root.
This document lists exactly what is supported, what is not, and how the semantics map onto the engine.
Supported¶
Service¶
Endpoint |
Notes |
|---|---|
|
|
|
|
|
Basic JSON ( |
Collections¶
Endpoint |
Notes |
|---|---|
|
Lists every table under the storage root. |
|
|
|
Real |
|
Creates the collection eagerly with dense vectors ( |
|
Persists |
|
Hard delete — removes all store objects and any aliases pointing at the collection. |
|
Payload index creation. Builds physical BM25 or Bitmap index on the payload column and records in |
|
Payload index deletion. Drops physical index from the underlying table and |
|
Creates a point-in-time collection snapshot metadata entry. |
|
Lists available snapshots for the collection. |
|
Deletes a snapshot. |
|
Restores/recovers collection snapshot metadata. |
Points¶
Endpoint |
Notes |
|---|---|
|
Upsert dense vectors, sparse vectors ( |
|
Retrieve by |
|
Single point; |
|
Vector search for dense (Euclid, Cosine, Dot, Manhattan) and sparse vectors (dot product scoring). |
|
Universal query API. Accepts dense nearest vectors, sparse nearest vectors ( |
|
|
|
|
|
Supports |
|
Metric-aware context discovery: searches with |
|
|
|
Set (merge) payload. |
|
Overwrite payload. |
|
Delete payload keys. |
|
Clear payload. |
|
Update point vectors (dense or sparse). |
|
Delete by |
Aliases¶
Endpoint |
Notes |
|---|---|
|
Lists aliases. |
|
|
Aliases are process-local (in-memory), not persisted: they are a routing convenience and the underlying collection data is durable. They are lost on restart. Every collection-scoped endpoint resolves an alias to its target.
Filters¶
must / should / must_not accept a single condition or an array. Supported
conditions:
Condition |
Notes |
|---|---|
|
Equality ( |
|
|
|
Equality on a string column. |
|
Numeric range. |
|
|
Nested |
Recursively translated. |
must is AND-combined, should is OR-combined (AND-ed with must), and
must_not is negated.
Score semantics¶
The engine returns a distance (lower is better) for every metric; the API
converts it to the Qdrant score for the collection’s configured distance:
|
Engine value |
Qdrant score |
Ordering |
|---|---|---|---|
|
squared L2 |
|
ascending (lower is better) |
|
|
|
descending (higher is better) |
|
|
|
descending (higher is better) |
|
L1 |
|
ascending |
For sparse vectors, scoring evaluates the dot product $\sum a_i b_i$ across matching indices (higher is better, descending order).
Results are always ordered best-first.
Error envelope¶
Errors use the standard Qdrant shape, and any unmapped routes return this envelope rather than crashing clients:
{ "status": { "error": "..." }, "time": <seconds> }
Success responses use { "result": <T>, "status": "ok", "time": <seconds> }.
time is the real elapsed request time.
Not supported / approximations¶
Feature |
Behavior / workaround |
|---|---|
Named vectors |
A point’s |
Sparse vectors |
Fully supported: native wire format |
Binary / multi-vector (ColBERT) |
Not supported yet; dense |
|
Accepted and ignored (the engine manages its own storage layout). |
Payload index semantics |
Fully supported: |
|
Both |
|
Metric-aware context discovery evaluated over positive/negative pairs with the collection distance metric. |
|
Universal query supports vector prefetch queries and Reciprocal Rank Fusion ( |
|
Applied after scoring (inclusive). |
|
Supported for top-level fields and dot-notation paths ( |
|
Supported as a bool; named-vector selection returns the single stored vector. |
|
Accepted and ignored (writes are synchronous). |
Snapshots |
Collection snapshots supported via |
Sharding, replication, distributed mode |
Single-node only. |
Authentication / TLS |
Not implemented. Bind to |
gRPC API (port 6334) |
Not implemented; REST only. |
Performance notes¶
Use
BDB_SEARCH_DEVICE=cpufor the search server unless you have a validated GPU backend. With the defaultautodevice, index builds on every commit can be dramatically slower on an unaccelerated/software GPU backend; the CPU path is consistently fast for the small collections typical of Qdrant workloads.Qdrant collections index only the
vectorcolumn (no BM25 inverted index over payload columns), which keeps point writes cheap. Payload filtering falls back to a scan.Upserts flush the write buffer before deleting the previous rows, so each upsert is a commit. Batch many points into one
PUT /points(or onebatchoperation) rather than issuing one request per point.
Positioning¶
BenoDB-Search is not a drop-in replacement for an in-memory, sub-millisecond Qdrant cluster. It is positioned for website search, document catalogs, and knowledge bases where a 50–200 ms query envelope is imperceptible, and the object-storage-native, scale-to-zero operational model (Iceberg/Parquet data, on-demand index fetch, dynamic schema evolution) delivers a large TCO reduction versus an always-on vector cluster. Because collections are standard Iceberg tables, the same data is queryable via the OpenSearch API, SQL (DuckDB / Trino / Spark), and the Python client without duplication.