crispembed 0.15.0
crispembed: ^0.15.0 copied to clipboard
Lightweight embedding + math OCR inference via ggml. Dense, sparse, ColBERT, cross-encoder reranking, and DeiT+TrOCR on-device math equation recognition.
crispembed #
Flutter/Dart FFI bindings for CrispEmbed, an on-device ggml-based inference library for embeddings, OCR, layout analysis, scan cleanup and related document-processing tasks.
The package exposes the Dart API. It expects the native crispembed
library to be supplied by your application or build pipeline:
- Linux and Android:
libcrispembed.so - macOS:
libcrispembed.dylib - Windows:
crispembed.dll - iOS:
Libs/libcrispembed-static.alinked into the app
The platform plugin files contain the expected locations for prebuilt libraries. Model GGUF files are loaded at runtime by the native library.
Usage #
import 'package:crispembed/crispembed.dart';
final model = CrispEmbed('/path/to/model.gguf');
final embedding = model.encode('A short document');
model.dispose();
The public API also includes wrappers for sparse and ColBERT embeddings, reranking, face pipelines, OCR engines, OMR, layout detection, scan cleanup, PDF DPI analysis and image restoration models, depending on which symbols are available in the native library you bundle.
License #
MIT. See LICENSE.