fix: quantization in /configure, HNSW defaults in POST /collections, filter_metadata in search/file
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user