Vector search and key-value storage.

Skeg stores vectors and application data in one database. Use RESP3 to write records and search vectors with metadata filters.

⌖ NEIGHBOURHOOD FOUNDSIMILARITY CONNECTS THE DOTS
▲ VECTORS + KEY-VALUE · ONE ENGINESPEAKS REDIS · RESP3MACOS · LINUX · ARM · X86APACHE-2.0 · RUST
01 · GET STARTED

One protocol. Every client you already have.

Install one binary, point a Redis client at it, and the vector commands sit beside the ones you know.

Quickstart ↗
  1. # macOS or Linux
  2. brew install skegdb/tap/skeg
  3. skeg --data-dir ./data
  1. # vectors and key-value, side by side
  2. > SKEG.VINDEX.CREATE docs 1024 tq2 disk
  3. > SKEG.VSET docs 1 <vec> PAYLOAD "ch-3"
  4. > SET session:42 "ctx"
  5. > SKEG.VSEARCH docs 10 100 <q> WITHPAYLOAD
  1. import skeg
  2. with skeg.connect() as c:
  3. c.vindex_create("notes", dim=1024, backend="disk")
  4. c.vset("notes", 1, embedding)
  5. hits = c.vsearch("notes", q, k=10)
  1. # nearest vectors that also match
  2. > SKEG.VSET docs 7 <vec> PAYLOAD "user=alice type=pdf ts=20240115"
  3. > SKEG.VSEARCH docs 10 100 <q> WITHPAYLOAD \
  4. FILTER "user = alice AND ts >= 20240101"
  1. # every connection scoped from the handshake
  2. skeg --tenant-auth auth.kdb --tenant-strict \
  3. --admin-tenant ops
  4. > HELLO 3 AUTH ops s3cret
  5. > SKEG.QUOTA.SET acme 100000 *
  1. # a ceiling the engine obeys
  2. SKEG_MEMORY_LIMIT_BYTES=268435456 \
  3. skeg --data-dir ./data
02 · THE ENGINE

How skeg answers a query

The corpus lives on disk. What stays in memory is a compressed sketch, small enough to walk and precise enough to shortlist. The full-precision answer is fetched once, at the end.

Inside the engine →
  1. 01 · WALKtq2codes in memory

    The query walks a Vamana graph through two-bit codes, never the full vectors.

  2. 02 · READSSDwhere vectors live

    Full float32 vectors stay on disk. Only rows that reach the re-rank are read.

  3. 03 · RE-RANKf32final precision

    Survivors are re-scored at full precision. Compression never gets the last word.

  4. 04 · RETURNRESP3how it comes back

    Ids, scores and payloads come back over the protocol your client speaks.

03 · ALWAYS VISIBLE

Every counter, one command away.

skeg-console streams health, traffic and every index live, one binary beside the engine. Or stay in the terminal: the same answers come back as plain text.

Observability docs →
127.0.0.1:8099 skeg-console
skeg console 10:24:58admin@127.0.0.1:6379sign out
server
server0.8.0read-write
modemulti-tenantadmin
indexes3listed 1s ago
vectors–across the listed indexes
rss–resident memory
cpu–process CPU over 10s
health
vsearch p99–server histogram, last 30s
graph hops / query–nodes a walk expands to answer
vlog live–live bytes in the value log
folds waiting–graph rebuilds parked on the fold budget
rerank cache–re-rank reads served from RAM
shard skew–max/mean keys across 8 shards
streams
searches/s–
writes/s–
p99 ms · server–
cache hit %–
vsearch p50 ms–
vset p99 ms–
cpu %–
rss–

Illustrative values. skeg-console is a local, read-only web console on the official client; the terminal asks the same engine directly.

04 · WHY IT EXISTS

A store that leaves room for the model.

A store that only works on a big machine decides who gets to build. Start from a hard budget instead, and a laptop becomes a deployment target.

The manifesto →

The navigators who sailed these ships had no charts of the ocean. Every crossing was the same question: of everything I can see, what is closest to where I want to be?

That is a vector search. Every memory your agent has is a point of light in a very large sky. A query is a bearing; the answer is the handful of points that sit nearest.

Why a drakkar →

Two minutes to your first search.

Install one binary, open a Redis client, and run a vector search on the machine in front of you.