Skip to content

Commit

Permalink
temporary hack for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coszio committed Mar 5, 2025
1 parent c1febab commit edf2c91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qdrant_client/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 ApiClient, SyncApis
from qdrant_client.http.models.models import FormulaQuery
from qdrant_client.local.qdrant_local import QdrantLocal
from qdrant_client.migrate import migrate
from qdrant_client.qdrant_fastembed import QdrantFastembedMixin
Expand Down Expand Up @@ -556,7 +557,9 @@ def query_points(
# If the query contains unprocessed documents, we need to embed them and
# replace the original query with the embedded vectors.
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 edf2c91

Please sign in to comment.