Semantic Search Block
- from @localmode
- by LocalMode
Full text/PDF/OCR ingest into its OWN corpus with off/recursive/semantic chunking and a live chunk-boundary preview, then reranked vector search (over-fetch topK×3 → a real cross-encoder from the transformers ONNX group or the wllama GGUF group; raw + rerank scores preserved, never fabricated) with category facets and preset or corpus-calibrated similarity thresholds — carrying the core-pipeline ⇄ LangChain engine toggle. Over the promoted useKnowledgeBase engine layer; ships justified block-local ingest-panel + search-panel siblings. Nothing downloads until an explicit action. Split from ui/blocks/knowledge-base (Ingest + Search tabs; absorbs pdf-search + ocr-scanner).
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @localmode/ui/blocks/knowledge/semantic-searchRegistry dependencies16
- @localmode/ui/lib/utils
- @localmode/ui/lib/browser-utils
- @localmode/ui/local-first/model-downloader
- @localmode/ui/local-first/capability-gate
- @localmode/ui/data-documents/file-dropzone
- @localmode/ui/data-documents/chunk-boundary-visualizer
- @localmode/ui/data-documents/indexed-document-card
- @localmode/ui/data-documents/category-facet-list
- @localmode/ui/media-vision/media-dropzone
- @localmode/ui/input-controls/segmented-mode-picker
- @localmode/ui/input-controls/parameter-slider
- @localmode/ui/input-controls/option-list
- @localmode/ui/conversation/pipeline-tracker
- @localmode/ui/results/cosine-similarity-meter
- @localmode/ui/results/scored-result-bar-list
- @localmode/ui/results/top-result-card
