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,