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, ]) ?? [] ); }