// API Base URL for klausur-service
export const API_BASE = process.env.NEXT_PUBLIC_KLAUSUR_SERVICE_URL || 'http://localhost:8086'

export interface Collection {
  name: string
  displayName: string
  bundesland: string
  useCase: string
  documentCount: number
  chunkCount: number
  years: number[]
  subjects: string[]
  status: 'ready' | 'indexing' | 'empty'
}

export interface IngestionStatus {
  running: boolean
  lastRun: string | null
  documentsIndexed: number | null
  chunksCreated: number | null
  errors: string[]
}

export interface SearchResult {
  id: string
  score: number
  text: string
  year: number | null
  subject: string | null
  niveau: string | null
  taskNumber: number | null
}

// Tab definitions
export type TabId = 'collections' | 'upload' | 'ingestion' | 'search' | 'metrics'
