Dev Design Library

Threshold Calibrator Block

Calibrate a similarity threshold from corpus embeddings via useCalibrateThreshold at percentile 90, over a selected embedding model and corpus, rendering the calibrated threshold versus the model's getDefaultThreshold preset, metadata, dist.

Threshold Calibrator Block preview
Library
LocalMode
Framework
React
Type
block
License
MIT
Dependencies
@localmode/core, @localmode/react, @localmode/transformers, lucide-react
Install
npx shadcn add @localmode/ui/ui/blocks/text-insights/threshold-calibrator
Files
  • apps/ui/src/app/blocks/text-insights/threshold-calibrator/threshold-calibrator.tsx
  • packages/react/src/index.ts
  • packages/core/src/index.ts
  • packages/transformers/src/index.ts
  • apps/ui/registry/localmode/results/threshold-calibration-panel/threshold-calibration-panel.tsx
  • apps/ui/registry/localmode/local-first/model-loading-panel/model-loading-panel.tsx
  • apps/ui/registry/localmode/local-first/cache-badge/cache-badge.tsx
  • apps/ui/registry/localmode/results/error-alert/error-alert.tsx
Source
https://github.com/LocalMode-AI/LocalMode

Categories

More from LocalMode