crispembed 0.15.0 copy "crispembed: ^0.15.0" to clipboard
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.a linked 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.

0
likes
0
points
197
downloads

Publisher

verified publishercrispstro.be

Weekly Downloads

Lightweight embedding + math OCR inference via ggml. Dense, sparse, ColBERT, cross-encoder reranking, and DeiT+TrOCR on-device math equation recognition.

Homepage
Repository (GitHub)
View/report issues

Topics

#embeddings #ocr #ffi #ggml #on-device

License

unknown (license)

Dependencies

ffi, flutter

More

Packages that depend on crispembed

Packages that implement crispembed