QdrantEdge class

The client / factory. Cheap to construct; the native library loads once.

Constructors

QdrantEdge()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createBm25({Map<String, dynamic>? config}) Bm25
Construct an on-device BM25 sparse embedder. config is an optional EdgeBm25Config map (omit for defaults).
createDense(String modelDir) Dense
Load an on-device dense (semantic) embedder from modelDir — a directory with config.json, tokenizer.json and model.safetensors (MiniLM-style, 384-d). Requires the dense build of the engine.
createShard(String path, Map<String, dynamic> config) Shard
Create a new shard at path. config is an EdgeConfig map, e.g. {'vectors': {'dense': {'size': 384, 'distance': 'Cosine'}}, 'sparse_vectors': {'bm25': {'modifier': 'idf'}}}. The directory is created if needed.
loadShard(String path, {Map<String, dynamic>? config}) Shard
Load an existing shard from path. Pass config only to override the stored configuration.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openTextIndex(String path, {String? modelDir, int denseSize = 384}) TextIndex
Convenience for the "add text / search text" workflow. Opens (or creates) a shard wired with a BM25 sparse slot and, if modelDir is given, a dense slot — then TextIndex embeds on your behalf. See TextIndex.
recoverPartialSnapshot({required String shardPath, required Map<String, dynamic> currentManifest, required String snapshotPath, required Map<String, dynamic> snapshotManifest}) Shard
Recover a shard from a partial snapshot; the returned shard lives at shardPath.
toString() String
A string representation of this object.
inherited
unpackSnapshot(String snapshotPath, String targetPath) → void
Unpack a snapshot archive into a directory.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

bindings → QdrantEdgeBindings
The resolved native bindings (loaded lazily, once per process).
no setter