local_hnsw 1.0.0 copy "local_hnsw: ^1.0.0" to clipboard
local_hnsw: ^1.0.0 copied to clipboard

A lightweight, in-memory HNSW (Hierarchical Navigable Small World) vector index for Dart & Flutter. Supports fast approximate nearest neighbor (ANN) search with cosine or Euclidean similarity.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add local_hnsw

With Flutter:

 $ flutter pub add local_hnsw

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  local_hnsw: ^1.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:local_hnsw/local_hnsw.dart';
3
likes
130
points
42
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight, in-memory HNSW (Hierarchical Navigable Small World) vector index for Dart & Flutter. Supports fast approximate nearest neighbor (ANN) search with cosine or Euclidean similarity.

Repository (GitHub)
View/report issues

Topics

#vector-search #ann #hnsw #embeddings

Documentation

API reference

License

MIT (license)

More

Packages that depend on local_hnsw