fix: quantization in /configure, HNSW defaults in POST /collections, filter_metadata in search/file

This commit is contained in:
2026-03-31 20:08:58 +02:00
parent 609485a0f0
commit 6ea91c3452
2 changed files with 38 additions and 2 deletions

View File

@@ -246,6 +246,7 @@ async def vectors_search_file(
hnsw_ef: Optional[int] = Form(None),
exact: bool = Form(False),
indexed_only: bool = Form(False),
filter_metadata_json: Optional[str] = Form(None),
):
data = await file.read()
fields: Dict[str, Any] = {"limit": int(limit), "exact": exact, "indexed_only": indexed_only}
@@ -255,6 +256,8 @@ async def vectors_search_file(
fields["collection"] = collection
if hnsw_ef is not None:
fields["hnsw_ef"] = int(hnsw_ef)
if filter_metadata_json is not None:
fields["filter_metadata_json"] = filter_metadata_json
async with httpx.AsyncClient(timeout=VISION_TIMEOUT) as client:
return await _post_file(client, f"{QDRANT_SVC_URL}/search/file", data, fields)