export type EmbedJobWithProgress = { jobId: string fileName: string filePath: string progress: number status: string error?: string } export type ProcessAndEmbedFileResponse = { success: boolean message: string chunks?: number hasMoreBatches?: boolean articlesProcessed?: number totalArticles?: number } export type ProcessZIMFileResponse = ProcessAndEmbedFileResponse export type RAGResult = { text: string score: number keywords: string chunk_index: number created_at: number article_title?: string section_title?: string full_title?: string hierarchy?: string document_id?: string content_type?: string source?: string } export type RerankedRAGResult = Omit & { finalScore: number }