The vector database that fits.

Skeg combines vector search and key-value storage. Disk-backed indexes keep full vectors on disk, leaving memory for your model.

Illustration of a graph search
macOS and Linux builds

Use Skeg from a Redis client

Run the supported key-value commands alongside Skeg’s vector commands over RESP3.

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. # limit admission headroom
  2. SKEG_MEMORY_LIMIT_BYTES=268435456 \
  3. skeg --data-dir ./data

How Skeg answers a vector query

A disk index uses quantized codes to find candidates and reads the original vectors to rerank them.

Inside the engine →
  1. 01 · WALKtq2codes in memory

    The query traverses a Vamana graph using two-bit codes to shortlist candidates.

  2. 02 · READSSDwhere vectors live

    Full float32 vectors stay on disk. Skeg reads the shortlisted vectors for reranking.

  3. 03 · RE-RANKf32final precision

    Skeg rescores the shortlisted vectors at full precision.

  4. 04 · RETURNRESP3how it comes back

    RESP3 returns IDs, scores and any requested payloads.

Inspect the server

Switch between the console and terminal to see how Skeg reports traffic, index state and maintenance. This preview uses simulated data.

Observability docs →
127.0.0.1:8099 skeg-console
skeg console 10:24:58[email protected]: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.

Run storage alongside a local model

Disk-backed indexes keep full vectors on disk so the database and model can share the same machine.

The manifesto →

The drakkar is Skeg’s mark. The illustration shows a query and the nearby points a search can retrieve.

Why a drakkar →

Try the local example

Start a server, load three vectors and run a filtered search.