From 6ddfddc25064991bcf58352761c8cc65fe87ef34 Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Thu, 30 Nov 2023 15:11:48 -0800 Subject: [PATCH] Fix lint --- langchain/src/vectorstores/elasticsearch.ts | 2 ++ langchain/src/vectorstores/xata.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/langchain/src/vectorstores/elasticsearch.ts b/langchain/src/vectorstores/elasticsearch.ts index 94073ddf50ff..3d0161bb8035 100644 --- a/langchain/src/vectorstores/elasticsearch.ts +++ b/langchain/src/vectorstores/elasticsearch.ts @@ -38,6 +38,7 @@ export interface ElasticClientArgs { /** * Type representing a filter object in Elasticsearch. */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any type ElasticFilter = object | { field: string; operator: string; value: any }[]; /** @@ -299,6 +300,7 @@ export class ElasticVectorSearch extends VectorStore { private buildMetadataTerms( filter?: ElasticFilter + // eslint-disable-next-line @typescript-eslint/no-explicit-any ): { [operator: string]: { [field: string]: any } }[] { if (filter == null) return []; const result = []; diff --git a/langchain/src/vectorstores/xata.ts b/langchain/src/vectorstores/xata.ts index 80817c657465..8d8ed0b5c7e9 100644 --- a/langchain/src/vectorstores/xata.ts +++ b/langchain/src/vectorstores/xata.ts @@ -127,8 +127,8 @@ export class XataVectorSearch< } ); - // eslint-disable-next-line @typescript-eslint/no-explicit-any return ( + // eslint-disable-next-line @typescript-eslint/no-explicit-any records?.map((record: any) => [ new Document({ pageContent: record.content,