Interface RerankerParams<CustomOptions>

interface RerankerParams<CustomOptions extends ZodTypeAny = ZodTypeAny> {
    documents: {
        content: (
            | { media?: undefined; text: string }
            | { media: { contentType?: string; url: string }; text?: undefined }
        )[];
        metadata?: Record<string, any>;
    }[];
    options?: TypeOf<CustomOptions>;
    query:
        | string
        | {
            content: (
                | { media?: undefined; text: string }
                | { media: { contentType?: string; url: string }; text?: undefined }
            )[];
            metadata?: Record<string, any>;
        };
    reranker: RerankerArgument<CustomOptions>;
}

Type Parameters

Properties

documents: {
    content: (
        | { media?: undefined; text: string }
        | { media: { contentType?: string; url: string }; text?: undefined }
    )[];
    metadata?: Record<string, any>;
}[]
query:
    | string
    | {
        content: (
            | { media?: undefined; text: string }
            | { media: { contentType?: string; url: string }; text?: undefined }
        )[];
        metadata?: Record<string, any>;
    }