serviette
A no-code RAG server that keeps answers in sync with your documents. Works with 8 vector databases. Built on Pathway.
- 59k
- Python
- MIT
- 13 d ago
Embedded vector search for React Native — Qdrant engine running in-process on iOS & Android
Repo rust-dd/react-native-qdrant-edge, read from GitHub 2 d ago. rust-dd has not joined Take My Repo.
rust-dd/react-native-qdrant-edge is a public repo on GitHub by rust-dd. Embedded vector search for React Native — Qdrant engine running in-process on iOS & Android. It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it. It is written mainly in TypeScript, has 10 stars and last changed on 2026-10-03. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-21.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Embedded vector search for React Native. Runs the Qdrant search engine in-process on the device — no server, no network, fully offline.
Built on qdrant-edge 0.8 (Rust) with Nitro Modules for near-zero JS↔native overhead.
hnsw_ef, exact search, quantization overrides, ACORN, filtered IDF corpusmust / should / must_not / min_should), incl. full-text, phrase, and prefix matchnpm install react-native-qdrant-edge react-native-nitro-modules
Prebuilt native binaries for iOS (arm64 + simulator) and Android (arm64 + x86_64) are included — no Rust toolchain required.
32-bit Android ABIs (armeabi-v7a, x86) are not supported. The Expo plugin limits reactNativeArchitectures to arm64-v8a,x86_64; in a bare app, set it in android/gradle.properties, or release builds fail to link.
{ "plugins": ["react-native-qdrant-edge"] }
npx expo run:ios
npx expo run:android
cd ios && pod install
import { createShard, loadShard } from 'react-native-qdrant-edge'
// Create a new shard
const shard = createShard('/path/to/shard', {
vectors: { '': { size: 384, distance: 'Cosine' } },
})
// Insert points
shard.upsert([
{ id: 1, vector: [0.1, 0.2, /* … */], payload: { title: 'Hello' } },
{ id: 2, vector: [0.3, 0.4, /* … */], payload: { title: 'World' } },
])
// Search
const results = shard.search({
vector: [0.1, 0.2, /* … */],
limit: 10,
with_payload: true,
})
// Persist + reload
shard.flush()
shard.close()
const loaded = loadShard('/path/to/shard')
console.log(loaded.count()) // 2
createShard(path, config)Create a new shard at the given filesystem path. The full config:
const shard = createShard(path, {
vectors: {
'': { size: 384, distance: 'Cosine' }, // default vector
'title': { size: 128, distance: 'Dot' }, // additional named dense
'image': { size: 512, distance: 'Cosine', on_disk: true },
},
sparse_vectors: {
'bm25': { modifier: 'idf' }, // BM25 sparse slot
},
on_disk_payload: true,
hnsw_config: { m: 16, ef_construct: 100 },
optimizers: { default_segment_number: 2, indexing_threshold: 20_000 },
wal_options: { segment_capacity: 4 * 1024 * 1024 }, // mobile-friendly 4 MiB
max_search_threads: 2, // per-segment reads run in parallel (default: CPU-derived)
search_pool_core: 0, // optionally pin search threads to one core (best-effort)
})
Distance metrics: Cosine | Euclid | Dot | Manhattan
The shard directory is created if missing. Fields left out of hnsw_config and wal_options take the upstream defaults.
For a mobile-tuned WAL preset, see mobileWalDefaults().
loadShard(path, config?)Load an existing shard. Config is optional — if omitted, the stored config is used.
// Mixed dense + sparse + multi vectors per point are supported
shard.upsert([
{
id: 'a3f1-...-uuid',
vector: {
dense: [0.1, 0.2, /* … */],
bm25: { indices: [42, 7, 1003], values: [1.0, 1.0, 1.0] },
},
payload: { title: 'Mixed', category: 'docs' },
},
])
shard.deletePoints([1, 2, 'a3f1-...-uuid'])
// Point IDs are u64 numbers OR UUID strings. Results return every ID as a
// string ('1'), and those strings are accepted back wherever an ID goes.
// Payload — single point convenience
shard.setPayload(1, { tag: 'new' })
shard.overwritePayload(1, { tag: 'final' })
shard.deletePayload(1, ['old_key'])
// Payload — full power (filter / batch / nested key)
shard.setPayloadOp({
payload: { archived: true },
filter: { must: [{ key: 'created_at', range: { lt: 1_700_000_000 } }] },
})
shard.overwritePayloadOp({ payload, points: [1, 2, 3] })
shard.deletePayloadOp({ keys: ['stale_key'], filter: { /* … */ } })
shard.clearPayload({ filter: { must: [{ key: 'archived', match: { value: true } }] } })
// Field indexes — required for filtering at scale
shard.createFieldIndex('category', 'keyword')
shard.createFieldIndex('price', 'float')
shard.deleteFieldIndex('category')
Field index types: keyword | integer | float | geo | text | bool | datetime
const results = shard.search({
vector: [0.1, 0.2, /* … */], // dense | { indices, values } | [[…]] (multi)
using: 'dense', // omit for the default vector
limit: 10,
offset: 0,
with_payload: true,
with_vector: false,
score_threshold: 0.5,
filter: {
must: [{ key: 'category', match: { value: 'electronics' } }],
},
params: { hnsw_ef: 128 }, // optional search-time tuning
})
// [{ id: '1', score: 0.98, payload: { category: '…' } }, …]
params is accepted by search, query, queryGroups, and every prefetch level:
{
hnsw_ef: 128, // HNSW beam size — accuracy vs speed
exact: true, // brute-force search, no approximation
indexed_only: true, // skip slow un-indexed segments
quantization: { ignore: false, rescore: true, oversampling: 2.0 },
acorn: { enable: true, max_selectivity: 0.4 },
idf: { corpus: { must: [{ key: 'lang', match: { value: 'en' } }] } },
}
idf selects the population that sparse-vector IDF statistics are computed
over (requires a sparse vector with modifier: 'idf'): 'global' (default)
or { corpus: <filter> } to score against a filtered corpus.
The query API mirrors the upstream qdrant-client REST shape. A prefetch tree fans out one search per vector type, then a fusion clause merges the rankings.
import { createBm25 } from 'react-native-qdrant-edge'
const bm25 = createBm25({ language: 'english' })
const dense = await embedDense('quick brown fox') // your dense model
const sparse = bm25.embedQuery('quick brown fox') // on-device BM25
const results = shard.query({
prefetch: [
{ query: dense, using: 'dense', limit: 100 },
{ query: sparse, using: 'bm25', limit: 100 },
],
query: { fusion: 'rrf' }, // or 'dbsf'
limit: 10,
with_payload: true,
})
bm25.close()
fusion: { fusion: 'rrf', k: 60, weights: [2.0, 1.0] } accepts an optional RRF k and per-source weights. Prefetches nest arbitrarily.
The BM25 model is configurable (k, b, avg_len, tokenizer, stopwords,
stemmer, …). Stemming can be explicitly disabled — the recommended
language-neutral setup:
const bm25 = createBm25({
stemmer: { type: 'none' },
stopwords: { languages: [] },
})
All of these go in the query slot at the root or within a prefetch:
// Recommend (positive + negative examples)
shard.query({ query: { recommend: { positive: [v1, v2], negative: [v3], strategy: 'best_score' } } })
// Discover (target + positive/negative context pairs)
shard.query({ query: { discover: { target: v, context: [{ positive: p1, negative: n1 }] } } })
// Context (no target, just preference pairs)
shard.query({ query: { context: [{ positive: p1, negative: n1 }] } })
// Order by payload field
shard.query({ query: { order_by: { key: 'created_at', direction: 'desc' } }, limit: 20 })
// Random sample
shard.query({ query: { sample: 'random' }, limit: 50 })
// MMR — diversity-aware rerank (lambda 0 = full diversity, 1 = full relevance)
shard.query({ query: { mmr: { vector: v, lambda: 0.5, candidates_limit: 100 } }, limit: 10 })
Group results by a payload field — each group key appears once with its own top hits, instead of one value dominating the result list.
const groups = shard.queryGroups({
query: queryVector,
group_by: 'document_id', // payload key to group by
limit: 5, // number of groups
group_size: 3, // hits per group
with_payload: true,
})
// [{ key: 'doc-1', hits: [{ id, score, payload }, …] }, …]
Pairwise distances over a random sample — each sampled point's nearest neighbours within the sample. Useful for on-device dedup and clustering.
const { sample_ids, nearests } = shard.searchMatrix({
sample: 20, // points to sample (default 10)
limit: 3, // neighbours per sample (default 3)
using: 'dense', // omit for the default vector
filter: { must: [{ key: 'active', match: { value: true } }] },
})
// nearests[i] are the neighbours of sample_ids[i]
const points = shard.retrieve([1, 2, 'uuid-…'], { withPayload: true, withVector: false })
let page = shard.scroll({ limit: 100, with_payload: true })
while (page.next_offset) {
page = shard.scroll({ limit: 100, with_payload: true, offset: page.next_offset })
}
// Order by an indexed payload field (numeric / datetime index required).
// next_offset is not returned when ordering by field.
const latest = shard.scroll({
limit: 20,
with_payload: true,
order_by: { key: 'created_at', direction: 'desc' },
})
const total = shard.count()
const active = shard.count({ must: [{ key: 'active', match: { value: true } }] })
Count points per unique value of a payload key.
const { hits } = shard.facet({
key: 'category',
limit: 20,
filter: { must: [{ key: 'in_stock', match: { value: true } }] },
exact: true,
})
// [{ value: 'electronics', count: 42 }, { value: 'books', count: 17 }, …]
Treat the snapshot manifest as opaque — pass it back through recoverPartialSnapshot verbatim.
import { unpackSnapshot, recoverPartialSnapshot } from 'react-native-qdrant-edge'
// Apply an external snapshot to an existing local shard
unpackSnapshot('/downloads/snapshot.tar', '/tmp/snapshot-unpacked')
// { [segmentId]: contents of segments/<segmentId>/segment_manifest.json }
const incoming = await readSegmentManifests('/tmp/snapshot-unpacked') // your fs code
const current = shard.snapshotManifest()
shard.close() // recovery rewrites the shard's files, so release it first
const merged = recoverPartialSnapshot(shardPath, current, '/tmp/snapshot-unpacked', incoming)
shard.flush() // persist to disk (throws on failure)
shard.optimize() // merge segments, build HNSW indexes
shard.info() // { points_count, segments_count, indexed_vectors_count,
// payload_schema: { category: { data_type: 'keyword', points: 42 }, … } }
shard.close() // flush + release
shard.setHnswConfig({ m: 32, ef_construct: 200 }) // omitted fields: upstream defaults
shard.setVectorHnswConfig('title', { full_scan_threshold: 5000 }) // dense vectors only
shard.setOptimizersConfig({ indexing_threshold: 10_000, prevent_unoptimized: true })
shard.createVectorName('caption', { dense: { size: 768, distance: 'Cosine' } })
shard.deleteVectorName('legacy')
The upstream default WAL segment capacity is 32 MiB — wasteful on phones. Use the helper:
import { createShard, mobileWalDefaults } from 'react-native-qdrant-edge'
const shard = createShard(path, {
vectors: { '': { size: 384, distance: 'Cosine' } },
wal_options: mobileWalDefaults(), // 4 MiB segments, retain_closed: 1
})
Filters follow the Qdrant filter syntax:
{
must: [
{ key: 'price', range: { gte: 10, lte: 100 } },
{ key: 'category', match: { value: 'shoes' } },
],
should: [
{ key: 'brand', match: { any: ['Nike', 'Adidas'] } },
],
must_not: [
{ key: 'archived', match: { value: true } },
],
}
Text matching supports full-text (text), any-token (text_any), and phrase
(phrase) modes on text-indexed fields. prefix is a case-sensitive prefix
match on keyword values:
{ must: [{ key: 'sku', match: { prefix: 'QD-' } }] }
Additional conditions: { has_id: [...] }, { has_vector: 'name' },
{ is_empty: { key } }, { is_null: { key } }, and
{ slice: { total, index } } — a deterministic slice of the point-id space
for processing a shard in independent batches.
Every Shard / Bm25 method that fails throws a JS Error with a message of the form "<operation> failed: <cause>". For structured access:
import { asQdrantError, QdrantError } from 'react-native-qdrant-edge'
try {
shard.upsert(points)
} catch (err) {
const qe = asQdrantError(err)
if (qe instanceof QdrantError) {
console.log(qe.operation, qe.cause) // e.g. 'upsert', 'invalid JSON path: …'
}
}
import {
useShard, useUpsert, useDelete,
useSearch, useQuery, useQueryGroups, useSearchMatrix,
useRetrieve, useScroll, useCount, useShardInfo,
useBm25, useFacet, useSnapshotManifest,
} from 'react-native-qdrant-edge'
function NotesScreen() {
const { shard, open, close } = useShard({
path: `${documentDir}/notes`,
config: { vectors: { '': { size: 384, distance: 'Cosine' } } },
create: true,
})
const { bm25 } = useBm25({ language: 'english' })
const { results, search } = useSearch({
shard,
request: { vector: queryEmbedding, limit: 10, with_payload: true },
enabled: true,
})
useEffect(() => { open() }, [])
// shard + bm25 are auto-closed/disposed on unmount
return <NotesList shard={shard} bm25={bm25} results={results} />
}
With create: true, open() creates the shard on first launch and opens the existing one afterwards. Request and config objects are compared by value, so inline literals don't re-run the hooks; to re-run with an unchanged request (e.g. after an upsert), call the function the hook returns (search(), query(), refresh(), …). useShard returns the same Shard class as createShard, and every hook also accepts a Shard you created yourself.
Hybrid search via useQuery:
const { results } = useQuery({
shard,
request: {
prefetch: [
{ query: denseVec, using: 'dense', limit: 100 },
{ query: sparseVec, using: 'bm25', limit: 100 },
],
query: { fusion: 'rrf' },
limit: 10,
with_payload: true,
},
})
Each shard is independent — separate storage, config, and indexes.
const docs = createShard(`${dir}/docs`, { vectors: { '': { size: 768, distance: 'Cosine' } } })
const imgs = createShard(`${dir}/photos`, { vectors: { '': { size: 512, distance: 'Dot' } } })
Bug fixes, no API removals:
'1', next_offset) are accepted back by every call, so scroll pagination and ID round trips work.prefetch array no longer loses its query.payload throws instead of aborting the app, and an invalid createVectorName config is rejected before it can block later writes.hnsw_config / wal_options objects are completed with upstream defaults; createShard creates a missing directory.useShard({ create: true }) reopens an existing shard, and open() closes the previous handle first.datatype is 'float32' | 'float16' | 'uint8' and multivector_config.comparator is 'max_sim'. The old spellings never deserialized at runtime.0.4.0 upgrades the engine from qdrant-edge 0.7 to 0.8. Additive on the JS API, with three behavior notes:
Bm25Stemmer type corrected — the shape is
{ type: 'snowball', language: 'english' } or { type: 'none' }. The old
{ language } TS shape never deserialized at runtime, so no working call
site changes.flush() now throws on failure instead of aborting the process on an
internal panic.search() routes through the query engine (upstream deprecated the
standalone search path). Results are identical.New in 0.4.0: queryGroups, searchMatrix, params on
search/query/prefetch (incl. filtered IDF corpus), payload_schema in
info(), order_by scroll, prefix match, has_vector / slice
conditions, and the max_search_threads / search_pool_core config for the
parallel search pool.
Mostly additive. The only TS-visible widening is:
Point.id and IDs in deletePoints / retrieve: number → number | string. Existing numeric IDs still work.Point.vector and SearchRequest.vector: accept sparse { indices, values } and multi [[…]] in addition to dense.Shard.setPayload(pointId, payload) gains an optional 3rd argument key?: string and accepts string IDs. Existing call sites are unchanged.Note one upstream behavior change: with optimizers.prevent_unoptimized: true, points written to unoptimized segments above indexing_threshold are persisted as deferred — they are excluded from reads/search until you call shard.optimize(). Previously this option blocked the write entirely.
TypeScript API
→ Nitro HybridObject (C++, near-zero JS overhead)
→ extern "C" FFI
→ qdrant-edge 0.8 (Rust)
→ HNSW index, WAL, segment storage, BM25 tokenizer, search thread pool
All operations are synchronous and run on the JS thread via JSI — no bridge, no serialization between JS and the C++ object. Vector and metadata payloads cross the FFI boundary as JSON; the JSON-parse overhead is negligible vs HNSW lookup for search, and measurable but acceptable for bulk upsert (raw Float32Array marshaling is on the roadmap — see Future work).
Only needed if you contribute, or the prebuilt binaries don't cover your target.
cbindgen for header regen: cargo install cbindgennpm run rust:build:ios # xcframework: device arm64 + simulator
npm run rust:build:android # arm64 + x86_64
npm run rust:build # both
After modifying any .nitro.ts, regenerate the bindings:
npm run specs
Float32Array for vectors — skip JSON encoding for bulk upsert (HNSW search itself is already JSON-light).optimize, bulk upsert, and snapshotManifest via Nitro async methods.ReadOnlyEdgeShard (one writer process, N reader processes over the same directory); useful for app-extension setups, not yet exposed here.MIT
rust-dd/react-native-qdrant-edge is a public repo on GitHub by rust-dd. Embedded vector search for React Native — Qdrant engine running in-process on iOS & Android.
It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-10-03. Take My Repo does not judge from that whether it is maintained.
A no-code RAG server that keeps answers in sync with your documents. Works with 8 vector databases. Built on Pathway.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
A framework for building native applications using React
Flutter makes it easy and fast to build beautiful apps for mobile and beyond
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

🤖 𝗟𝗲𝗮𝗿𝗻 for 𝗳𝗿𝗲𝗲 how to 𝗯𝘂𝗶𝗹𝗱 an end-to-end 𝗽𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝗼𝗻-𝗿𝗲𝗮𝗱𝘆 𝗟𝗟𝗠 & 𝗥𝗔𝗚 𝘀𝘆𝘀𝘁𝗲𝗺 using 𝗟𝗟𝗠𝗢𝗽𝘀 best practices: ~ 𝘴𝘰𝘶𝘳𝘤𝘦 𝘤𝘰𝘥𝘦 + 12 𝘩𝘢𝘯𝘥𝘴-𝘰𝘯 𝘭𝘦𝘴𝘴𝘰𝘯𝘴

High-performance quantitative finance in Rust and Python — 130+ stochastic processes, option pricing, calibration, fixed income, risk & copulas, with SIMD/GPU acceleration.
Multi-transport Rust web framework: HTTP/1.1, HTTP/2, HTTP/3, WebSocket, SSE, gRPC, TCP/UDP and Unix sockets behind one router, on Tokio or Compio.

Starter template using Rust with Axum, Async-GraphQL, PostgreSQL, and Redis for building high-performance web APIs.

A Rust library that provides full support for DHT11, DHT22, and DHT20 (AHT20) temperature and humidity sensors.
This repository is dedicated to solving the Advent of Code 2024 puzzles using the Rust programming language