import React from 'react' import { Plus, Minus, Eraser } from 'lucide-react' import { useZeroShotClassification } from '../../contexts/ZeroShotClassificationContext' import { Slider } from '@/components/ui/slider' const ZeroShotClassificationConfig = () => { const { config, setConfig, sections, addCategory, removeCategory, clearResults, updateSectionTitle } = useZeroShotClassification() return (

Zero-Shot Classification Settings

setConfig((prev) => ({ ...prev, threshold: value[0] })) } className="w-full rounded-lg" />

Minimum confidence score required for classification (lower values classify more items)

Categories

{sections.map((section, index) => (
updateSectionTitle(index, e.target.value)} disabled={section.title === 'Other'} className="flex-1 px-2 py-1 text-xs border border-input rounded-sm focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-ring disabled:bg-muted disabled:cursor-not-allowed" /> ({section.items.length})
))}

Threshold: Items with confidence scores below this threshold will be classified as "Other"

Categories: Edit category names to customize classification labels

Other: Fallback category for items that don't meet the threshold for any specific category

) } export default ZeroShotClassificationConfig