From 765b04adfde4923c5efb071a0cf26dc1c5cecea0 Mon Sep 17 00:00:00 2001 From: Ykoh Date: Sat, 22 Mar 2025 05:39:39 +0900 Subject: [PATCH] Docs: fix example (#3972) --- libs/checkpoint-postgres/langgraph/store/postgres/aio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/checkpoint-postgres/langgraph/store/postgres/aio.py b/libs/checkpoint-postgres/langgraph/store/postgres/aio.py index a5e7604cd..c2d670b94 100644 --- a/libs/checkpoint-postgres/langgraph/store/postgres/aio.py +++ b/libs/checkpoint-postgres/langgraph/store/postgres/aio.py @@ -78,7 +78,7 @@ class AsyncPostgresStore(AsyncBatchedBaseStore, BasePostgresStore[_ainternal.Con await store.aput(("docs",), "doc3", {"text": "Other guide"}, index=False) # don't index # Search by similarity - results = await store.asearch(("docs",), "programming guides", limit=2) + results = await store.asearch(("docs",), query="programming guides", limit=2) ``` Using connection pooling for better performance: