Interface IndexerParams<CustomOptions>

Options passed to the index function.

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

Type Parameters

Properties

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