flutter_hybrid_search 1.0.2 copy "flutter_hybrid_search: ^1.0.2" to clipboard
flutter_hybrid_search: ^1.0.2 copied to clipboard

Offline hybrid search for Flutter: HNSW vector similarity, FTS5 full-text, typo-tolerant matching, and pluggable reranking — no cloud required.

1.0.2 #

Added #

  • HybridSearchEngine.isInitialized getter — check engine state without try/catch.
  • HybridSearchEngine.entryCount getter — number of embeddings managed by the engine, available immediately after construction.
  • HybridSearchConfig.copyWith() — create a tweaked copy without repeating every field.

Improved #

  • dispose() is now idempotent (safe to call multiple times) and guards against use-after-dispose: calling search() or initialize() after dispose() throws a clear StateError.
  • Typo-tolerance _canDrop rewritten from O(n²) substring concatenation to O(n) two-pointer scan — eliminates temporary string allocations.
  • SearchRanking RegExp instances are now compiled once and cached as static finals instead of being re-created on every call.

1.0.1 #

Improvements in documentation and metadata

1.0.0 #

Initial release.

Added #

  • HybridSearchEngine — offline hybrid search combining vector similarity, FTS5 full-text search, typo-tolerant matching, and heuristic reranking.
  • Embedder — abstract interface for plugging in any embedding model (BERT, sentence-transformers, TF-IDF, etc.).
  • SearchEntry — immutable Q&A entry with configurable column mapping.
  • SearchResult — search match carrying entry, score, and method identifier.
  • HybridSearchConfig — all engine parameters in one place (pool sizes, HNSW thresholds, database schema column names).
  • SearchRanking — pure static utilities: FTS query building, typo tolerance, concise-match boost, perfect-match shortcutting.
  • HeuristicReranker — rule-based reranker (FTS + typo + concise boosts, deduplication by question text).
  • RerankerInterface — contract for custom reranker implementations.
  • Float16Store — decoder for the compact Float16 binary embedding format produced by the companion Python training pipeline.
4
likes
160
points
141
downloads

Publisher

verified publisherkorshun.xyz

Weekly Downloads

Offline hybrid search for Flutter: HNSW vector similarity, FTS5 full-text, typo-tolerant matching, and pluggable reranking — no cloud required.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, local_hnsw, path, sqflite

More

Packages that depend on flutter_hybrid_search