Skip to content

Commit

Permalink
Fix lint (#3466)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Nov 30, 2023
1 parent c1c988c commit ccc9ea3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions langchain/src/vectorstores/elasticsearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }[];

/**
Expand Down Expand Up @@ -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 = [];
Expand Down
2 changes: 1 addition & 1 deletion langchain/src/vectorstores/xata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

1 comment on commit ccc9ea3

@vercel
Copy link

@vercel vercel bot commented on ccc9ea3 Nov 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.