We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76c3e4a commit 9cbdb9bCopy full SHA for 9cbdb9b
pyobvector/client/hybrid_search.py
@@ -61,6 +61,8 @@ def search(
61
with self.engine.connect() as conn:
62
with conn.begin():
63
res = conn.execute(sql, {"index": index, "body_str": body_str}).fetchone()
64
+ if res[0] is None:
65
+ return []
66
return json.loads(res[0])
67
68
def get_sql(
@@ -84,4 +86,6 @@ def get_sql(
84
86
85
87
88
89
90
+ return ""
91
return res[0]
0 commit comments