Skip to content

Commit

Permalink
Lint and format
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Feb 29, 2024
1 parent 384a66f commit b82b921
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions langchain-core/src/retrievers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ export interface BaseRetrieverInput {
verbose?: boolean;
}

export interface BaseRetrieverInterface<Metadata extends Record<string, any> = Record<string, any>>
extends RunnableInterface<string, DocumentInterface<Metadata>[]> {
export interface BaseRetrieverInterface<
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Metadata extends Record<string, any> = Record<string, any>
> extends RunnableInterface<string, DocumentInterface<Metadata>[]> {
getRelevantDocuments(
query: string,
config?: Callbacks | BaseCallbackConfig
Expand All @@ -32,7 +34,10 @@ export interface BaseRetrieverInterface<Metadata extends Record<string, any> = R
* is defined as something that can take string queries and return the
* most 'relevant' Documents from some source.
*/
export abstract class BaseRetriever<Metadata extends Record<string, any> = Record<string, any>>
export abstract class BaseRetriever<
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Metadata extends Record<string, any> = Record<string, any>
>
extends Runnable<string, DocumentInterface<Metadata>[]>
implements BaseRetrieverInterface
{
Expand Down

0 comments on commit b82b921

Please sign in to comment.