skegdb/skeg
Sobre
A multi-tenant vector database focused on extreme RAM efficiency. Lightweight, scalable, and optimized for high-density deployments.
Dados e análiseCrescimento medido de estrelas
- em 24 h
- Coletando histórico
- em 7 dias
- Coletando histórico
- em 15 dias
- Coletando histórico
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Original
Skeg · 0.8.0 · Medb
Skeg is an open-source vector database and key-value store that runs in one process. You supply the vectors and can attach metadata to each one. For example, you can search document embeddings for similar passages and limit the results to a language or category. A single deployment can keep each tenant's data separate.
A disk-backed index stores the full-precision vectors on disk. Search uses compact vector codes to find candidates, then reads their original vectors from disk to rerank them. The graph search is approximate.
Use a Redis client for the supported key-value commands and the SKEG.*
vector commands. See Redis compatibility
for the supported command subset.
Install
Choose the archive for your machine from the 0.8.0 release.
| Platform | Archive |
|---|---|
| macOS on Apple Silicon | skeg-v0.8.0-aarch64-apple-darwin.tar.gz |
| Linux on ARM64 | skeg-v0.8.0-aarch64-unknown-linux-gnu.tar.gz |
| Linux on x86-64 | skeg-v0.8.0-x86_64-unknown-linux-gnu.tar.gz |
Each archive contains the skeg executable and has a separate .sha256 file
on the release page. Below you can also start the Docker image, which is built
for Linux on ARM64 and x86-64.
To build and install the server with Cargo:
cargo install skeg-server --version 0.8.0 --locked
Quickstart
Use a fresh data directory or volume for this local demo. It has no authentication. Anyone who can reach the listener can read and change data.
From the directory where you extracted the archive, run:
./skeg --data-dir ./data --addr 127.0.0.1:6379
If you installed with Cargo, use skeg in place of ./skeg.
Or start the Docker image on a trusted container network. The image listens
on all interfaces inside the container. The 127.0.0.1 port mapping keeps
the published host port on loopback:
docker run -d --name skeg -p 127.0.0.1:6379:6379 \
-v skeg-data:/var/lib/skeg -e SKEG_ALLOW_UNAUTHENTICATED_NETWORK=1 \
ghcr.io/skegdb/skeg:0.8.0
Run redis-cli -3 PING to check that the server responds with PONG.
First vector search
With the redis package installed in your Python environment, run this example
against the local server. It creates an index named readme-demo, inserts two
four-dimensional vectors and returns the nearest one.
import struct
from redis import Redis
client = Redis(host="127.0.0.1", port=6379, protocol=3)
index = "readme-demo"
first = struct.pack("<4f", 1, 0, 0, 0)
second = struct.pack("<4f", 0, 1, 0, 0)
client.execute_command("SKEG.VINDEX.CREATE", index, 4, "tq2", "disk")
client.execute_command("SKEG.VSET", index, 1, first)
client.execute_command("SKEG.VSET", index, 2, second)
nearest_id, _ = client.execute_command("SKEG.VSEARCH", index, 1, 32, first)
print(nearest_id.decode("ascii"))
The expected result is 1. To remove the example index, run
redis-cli -3 SKEG.VINDEX.DROP readme-demo.
Follow the full quickstart to add a login, filter by metadata and verify the data after a restart.
Documentation
- Configuration for YAML and TOML examples.
- Command reference for syntax and replies.
- Multi-tenancy for authentication and tenant isolation.
- Operations for running Skeg and converting a 0.7 store.
If you are upgrading from 0.7, follow the upgrade guide and read the Medb release notes.
[!NOTE] Release names. All Skeg
0.x.xreleases share the name Medb, after the queen of Connacht in the Ulster Cycle of Irish mythology. Where possible, we will continue to name release series after women from folklore and mythology.
Security
For network deployments, use RESP with strict tenant authentication
(--tenant-auth and --tenant-strict). Terminate TLS at a proxy and keep
the plaintext Skeg listener private. See the
deployment guide
for setup and a TLS proxy example.
Report vulnerabilities privately on GitHub. See the security policy for what to include.
Project
Explore projetos relacionados
Carregando…