Skip to content

Commit 9f9154a

Browse files
authored
fix: Update JSON conversion method (#405)
fix: Update JSON conversion method
1 parent f3d6ae5 commit 9f9154a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/langchain_google_alloydb_pg/async_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def _search_where(
226226

227227
# construct predicate for metadata filter
228228
if filter:
229-
wheres.append("encode(metadata,'escape')::jsonb @> :metadata ")
229+
wheres.append("convert_from(metadata,'UTF8')::jsonb @> :metadata ")
230230
param_values.update({"metadata": f"{json.dumps(filter)}"})
231231

232232
# construct predicate for `before`

0 commit comments

Comments
 (0)