From c374a013ca2cca48ea2d644ae103ad8bdb156ce5 Mon Sep 17 00:00:00 2001 From: Ignacio Lara Vidal <71242366+kappita@users.noreply.github.com> Date: Mon, 29 Jul 2024 13:10:42 -0400 Subject: [PATCH] community[patch]: fix TypeError using the client created with xata init (#6241) --- libs/langchain-community/src/vectorstores/xata.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain-community/src/vectorstores/xata.ts b/libs/langchain-community/src/vectorstores/xata.ts index b67a459e3919..a965df471435 100644 --- a/libs/langchain-community/src/vectorstores/xata.ts +++ b/libs/langchain-community/src/vectorstores/xata.ts @@ -145,7 +145,7 @@ export class XataVectorSearch< ) ), }), - record.xata.score, + record.xata ? record.xata.score : record.xata_score, ]) ?? [] ); }