You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UnexpectedResponse: Unexpected Response: 400 (Bad Request) Raw response content: b'{"status":{"error":"Format error in JSON body: data did not match any variant of untagged enum Condition at line 1 column 19605"},"time":0.0}'
#849
Closed
KunalBose07 opened this issue
Apr 25, 2024
· 1 comment
Error :
UnexpectedResponse: Unexpected Response: 400 (Bad Request)
Raw response content:
b'{"status":{"error":"Format error in JSON body: data did not match any variant of untagged enum Condition at line 1 column 19605"},"time":0.0}'
Information:
type(payload.hit["Product Type"]) is
type("cotton osteotomy cloth") is str.
Also i imported the necessary libraries.
Please let me know root cause for such issue ?
The text was updated successfully, but these errors were encountered:
Code without Filter
hits = client.search(
collection_name=cluster_name,
query_vector=get_embedding("Cotton cloth 23x17x5.5mm"),
limit=3
)
Output
Cosine Similarity score:0.87813747 and Product: cotton osteotomy cloth 20millimeterx5.5millimeter sterile. and Product Type: cotton osteotomy cloth
Cosine Similarity score:0.87775576 and Product: cotton cloth titanium 20millimeterx4.5millimeter sterile. and Product Type: cotton osteotomy cloth
Code with Filter
hits_2 = client.search(
collection_name=cluster_name,
query_vector=get_embedding("Cotton cloth 23x17x5.5mm"),
limit=5,
query_filter=Filter(
must=[FieldCondition(key="Product Type", match=MatchValue(value='cotton osteotomy cloth'))]
),
)
Error :
UnexpectedResponse: Unexpected Response: 400 (Bad Request)
Raw response content:
b'{"status":{"error":"Format error in JSON body: data did not match any variant of untagged enum Condition at line 1 column 19605"},"time":0.0}'
Information:
Please let me know root cause for such issue ?
The text was updated successfully, but these errors were encountered: