Qdrant Compatibility — MDDB API
The Qdrant REST requests qdrant-client's query_points makes, under /qdrant, run through MDDB's vector search (requires the qdrantCompat module, or MDDB_QDRANT_COMPAT=true; v2.19.10+). See QDRANT_COMPAT.md.
Version probe #
GET /qdrant
What qdrant-client reads at start-up. version is the Qdrant API level
the subset follows (1.20.0); title says it is MDDB. The client only
warns on a mismatch. v2.19.10+, needs the qdrantCompat module (or MDDB_QDRANT_COMPAT=true).
Authorization: BearerAuth or APIKeyAuth or none
Responses #
| Status | Description | Body |
|---|---|---|
200 |
Version info | object (application/json) |
401 |
Auth is on (MDDB_AUTH_ENABLED=true) and the request carries no credentials, an invalid or expired JWT, or an unknown API key. | ErrorResponse (application/json) |
429 |
The client is over the API rate limit (MDDB_RATE_LIMIT_ENABLED=true, MDDB_RATE_LIMIT_REQUESTS per MDDB_RATE_LIMIT_WINDOW seconds). A call that embeds can also be refused by the collection's daily embedding budget, with a QuotaExceeded body. Since v2.19.8 (GO-054) a request over its tenant's or its credential's rate or concurrency limit is refused with a TenantLimit body. | anyOf RateLimitError | TenantLimit (application/json) |
401 example (application/json)
{
"error": "missing authentication"
}
Version probe (HEAD) #
HEAD /qdrant
Authorization: BearerAuth or APIKeyAuth or none
Responses #
| Status | Description | Body |
|---|---|---|
200 |
The surface is served | |
401 |
Auth is on (MDDB_AUTH_ENABLED=true) and the request carries no credentials, an invalid or expired JWT, or an unknown API key. | ErrorResponse (application/json) |
401 example (application/json)
{
"error": "missing authentication"
}
Nearest-neighbour query by a supplied vector (query_points) #
POST /qdrant/collections/{collection}/points/query
The request qdrant-client's query_points sends over REST, run through
/v1/vector-search (algorithm auto, chunk retrieval): one point per
matching passage. The vector must have the dimension of MDDB's
embedding model (a 400 names both). Fields other than those below are
a 400 naming them. Needs read on the collection; a caller without it
gets 403 whether or not the collection exists. The api-key header is
accepted as an MDDB API key. See QDRANT_COMPAT.md.
Authorization: BearerAuth or APIKeyAuth or none
Parameters #
| Name | In | Type | Description |
|---|---|---|---|
collection (required) |
path | string |
The collection (an alias resolves to its collection). |
Request body #
Required.
Content type application/json: object
| Property | Type | Description |
|---|---|---|
query (required) |
oneOf array of number | object |
A dense vector, or an object whose nearest is one |
using |
string | null |
Only null or empty; an MDDB collection has one unnamed vector |
limit |
integer |
Default 10. Minimum 1. |
offset |
integer |
Default 0. Minimum 0. |
score_threshold |
number |
|
with_payload |
boolean |
Default true. |
with_vector |
boolean |
One of false. |
params |
object |
Accepted and ignored |
{
"limit": 10,
"offset": 0,
"query": [
0
],
"score_threshold": 0,
"using": "string",
"with_payload": true,
"with_vector": false
}
Responses #
| Status | Description | Body |
|---|---|---|
200 |
Scored points, best first | object (application/json) |
400 |
(v2.19.10, | object (application/json) |
401 |
Auth is on (MDDB_AUTH_ENABLED=true) and the request carries no credentials, an invalid or expired JWT, or an unknown API key. | ErrorResponse (application/json) |
403 |
(v2.19.10, | object (application/json) |
404 |
(v2.19.10, | object (application/json) |
413 |
The body is over MDDB_MAX_BODY_BYTES (32 MiB by default). | ErrorResponse (application/json) |
429 |
The client is over the API rate limit (MDDB_RATE_LIMIT_ENABLED=true, MDDB_RATE_LIMIT_REQUESTS per MDDB_RATE_LIMIT_WINDOW seconds). A call that embeds can also be refused by the collection's daily embedding budget, with a QuotaExceeded body. Since v2.19.8 (GO-054) a request over its tenant's or its credential's rate or concurrency limit is refused with a TenantLimit body. | anyOf RateLimitError | TenantLimit (application/json) |
503 |
(v2.19.8, GO-053) Every search slot (MDDB_SEARCH_MAX_CONCURRENT) stayed taken for MDDB_SEARCH_QUEUE_TIMEOUT_MS. The query did not run; retry after Retry-After seconds. The same limit covers gRPC (RESOURCE_EXHAUSTED), GraphQL (the body below in the error's extensions) and MCP (a tool error with the body below as structuredContent). | SearchBusy (application/json) |
401 example (application/json)
{
"error": "missing authentication"
}
413 example (application/json)
{
"error": "request body too large"
}