Skip to content

Commit

Permalink
gen async client
Browse files Browse the repository at this point in the history
  • Loading branch information
coszio committed Mar 6, 2025
1 parent 409e055 commit 96d7854
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qdrant_client/async_qdrant_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from qdrant_client.conversions import common_types as types
from qdrant_client.embed.type_inspector import Inspector
from qdrant_client.http import AsyncApiClient, AsyncApis
from qdrant_client.http.models.models import FormulaQuery
from qdrant_client.local.async_qdrant_local import AsyncQdrantLocal
from qdrant_client.async_qdrant_fastembed import AsyncQdrantFastembedMixin
from qdrant_client.async_qdrant_remote import AsyncQdrantRemote
Expand Down Expand Up @@ -527,7 +528,9 @@ async def query_points(
"""
assert len(kwargs) == 0, f"Unknown arguments: {list(kwargs.keys())}"
query = self._resolve_query(query)
requires_inference = self._inference_inspector.inspect([query, prefetch])
requires_inference = not isinstance(
query, FormulaQuery
) and self._inference_inspector.inspect([query, prefetch])
if requires_inference and (not self.cloud_inference):
query = (
next(
Expand Down

0 comments on commit 96d7854

Please sign in to comment.