Skip to content

armgit / sie

Public Imported from GitHub
0

Open-source inference server and production cluster for all the models your agent needs.

readme: quality pass on the repo front page

Filip Makradulia2a78fc86c0a
diff --git a/README.md b/README.md
index a4077d14b..16f2f93ac 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,6 @@
<h1>SIE: Superlinked Inference Engine</h1>
<p><strong>Self-hosted inference for agents. Every model your agents call, served from one open-source cluster in your cloud.</strong></p>
-<p>85+ models: Stella, SPLADE, Qwen3, GLiNER, SigLIP, and more. One API. From laptop to Kubernetes. All Apache 2.0.</p>
<p>
<a href="https://superlinked.com/docs/">Docs</a> |
@@ -30,11 +29,11 @@
SIE is an open-source inference engine that runs the models behind every agent task through one API: search and retrieval, document-to-markdown conversion, structured output, content safety, and the agent loop itself. It replaces the patchwork of a separate model server per task with one system that serves 85+ models, loading each on demand.
-- 85+ pre-configured models, hot-swappable, all quality-verified against MTEB in CI
+- OpenAI-compatible API for drop-in migration: `/v1/embeddings`, `/v1/chat/completions`, `/v1/completions`, `/v1/responses`
+- Pre-configured model catalog: Stella, SPLADE, Qwen3, GLiNER, SigLIP, and more, all quality-verified against MTEB in CI
- Serves multiple models simultaneously with on-demand loading and LRU eviction
-- Ships the full production stack: load-balancing gateway, KEDA autoscaling, Grafana dashboards, Terraform for GKE/EKS
+- Ships the full production stack: load-balancing gateway, KEDA autoscaling, Grafana dashboards, Terraform for GKE, EKS, and AKS
- Integrates with LangChain, LlamaIndex, Haystack, DSPy, CrewAI, Chroma, Qdrant, and Weaviate
-- OpenAI-compatible `/v1/embeddings` endpoint for drop-in migration
## Tasks
@@ -50,108 +49,84 @@ One SIE cluster runs the inference behind a whole agent. Each task is a handful
## Quickstart
-SIE runs as a server you call over HTTP — a Docker container, or a native macOS pip install for Apple Silicon. Start it, install the SDK, run the example.
-
-**1. Run the engine**
+**1. Start the engine**
```bash
-# macOS (Apple Silicon) — native, served on Metal (requires Python 3.12).
-# Embeddings + reranking (torch-MPS):
-pip install "sie-server[local]" && sie-server serve
-# Generation (Apple MLX), in its own env — keeps mlx-lm's transformers>=5 out of the
-# embed/rerank lock:
-# uvx --with "mlx-lm>=0.30.7" --from sie-server sie-server serve -b sglang -p 8081
-# Or run the Linux CPU image under emulation:
-# docker run --platform linux/amd64 -p 8080:8080 -v sie-hf-cache:/app/.cache/huggingface ghcr.io/superlinked/sie-server:latest-cpu-default
+# Linux, NVIDIA GPU
+docker run --gpus all -p 8080:8080 -v sie-hf-cache:/app/.cache/huggingface ghcr.io/superlinked/sie-server:latest-cuda12-default
# Linux, CPU
docker run -p 8080:8080 -v sie-hf-cache:/app/.cache/huggingface ghcr.io/superlinked/sie-server:latest-cpu-default
-# Linux, NVIDIA GPU
-docker run --gpus all -p 8080:8080 -v sie-hf-cache:/app/.cache/huggingface ghcr.io/superlinked/sie-server:latest-cuda12-default
+# macOS (Apple Silicon), native on Metal (requires Python 3.12)
+pip install "sie-server[local]" && sie-server serve
```
-Confirm it is up:
-
```bash
curl http://localhost:8080/readyz # expect: ok
```
-**2. Use SIE from Python or TypeScript**
+**2. Install the SDK**
```bash
pip install sie-sdk # Python
pnpm add @superlinked/sie-sdk # TypeScript
```
-The same `SIEClient` talks to every model. Four of them, one call each:
+**3. Call models**
```python
from sie_sdk import SIEClient
from sie_sdk.types import Item
client = SIEClient("http://localhost:8080")
-# First call to each model downloads weights from Hugging Face (seconds for
-# these tinies, longer for larger models). After that, calls are warm in ms.
-# all-MiniLM-L6-v2: compact dense embeddings (~90 MB)
+# Dense embeddings
result = client.encode("sentence-transformers/all-MiniLM-L6-v2", Item(text="Hello world"))
print(result["dense"].shape) # (384,)
-# ms-marco-MiniLM: cross-encoder that reranks documents by relevance (~80 MB)
+# Rerank documents against a query
scores = client.score(
"cross-encoder/ms-marco-MiniLM-L-6-v2",
Item(text="What is machine learning?"),
- [Item(text="ML learns from data."), Item(text="The weather is sunny.")]
+ [Item(text="ML learns from data."), Item(text="The weather is sunny.")],
)
-print(scores["scores"])
-# [{'item_id': 'item-0', 'score': -7.1, 'rank': 0},
-# {'item_id': 'item-1', 'score': -11.048, 'rank': 1}]
-# (cross-encoder logits; relative order is what matters, not the absolute value)
+print(scores["scores"][0]) # {'item_id': 'item-0', 'score': -7.1, 'rank': 0}
-# GLiNER: zero-shot entity extraction with any labels, no training data
+# Zero-shot entity extraction
result = client.extract(
"urchade/gliner_multi-v2.1",
Item(text="Tim Cook is the CEO of Apple."),
- labels=["person", "organization"]
-)
-print(result["entities"])
-# [{'text': 'Tim Cook', 'label': 'person', 'score': 0.991},
-# {'text': 'Apple', 'label': 'organization', 'score': 0.978}]
-
-# Qwen3-0.6B: open-weight text generation (~1.2 GB). Generation needs a GPU and
-# the generation image (latest-cuda12-sglang below), not the latest-cpu-default
-# server above; SGLang has no CPU path.
-result = client.generate(
- "Qwen/Qwen3-0.6B",
- "Reply with a single word: the capital of France.",
- max_new_tokens=16,
+ labels=["person", "organization"],
)
-print(result["text"]) # 'Paris'
-print(result["usage"]) # {'prompt_tokens': 12, 'completion_tokens': 1, 'total_tokens': 13}
+print(result["entities"][0]) # {'text': 'Tim Cook', 'label': 'person', 'score': 0.991}
```
-`encode`, `score`, and `extract` run on the `latest-cpu-default` server above.
-Generation ships in a separate GPU image (the `sglang` bundle); start it with:
+The first call to a model downloads its weights from Hugging Face; after that, calls are warm. Text generation runs on the GPU generation image:
```bash
docker run --gpus all -p 8080:8080 -v sie-hf-cache:/app/.cache/huggingface ghcr.io/superlinked/sie-server:latest-cuda12-sglang
```
-For the equivalent TypeScript example, see the [TypeScript SDK docs](https://superlinked.com/docs/reference/typescript-sdk/). For more, see the [full quickstart guide](https://superlinked.com/docs/quickstart/) and [SDK reference](https://superlinked.com/docs/reference/sdk/).
+```python
+result = client.generate("Qwen/Qwen3-0.6B", "Reply with a single word: the capital of France.", max_new_tokens=16)
+print(result["text"]) # Paris
+```
+
+For generation on Apple Silicon (MLX), the TypeScript walkthrough, and every configuration in between, see the [quickstart guide](https://superlinked.com/docs/quickstart/), [TypeScript SDK docs](https://superlinked.com/docs/reference/typescript-sdk/), and [SDK reference](https://superlinked.com/docs/reference/sdk/).
---
### Production
-The same code works against a production cluster. SIE ships a load-balancing gateway, KEDA autoscaling (scale to zero), Grafana dashboards, and Terraform modules for GKE and EKS. Not just the server, the whole stack. All Apache 2.0.
+The same code works against a production cluster. SIE ships a load-balancing gateway, KEDA autoscaling (scale to zero), Grafana dashboards, and Terraform modules for [GKE](https://github.com/superlinked/terraform-google-sie), [EKS](https://github.com/superlinked/terraform-aws-sie), and [AKS](https://github.com/superlinked/terraform-azure-sie). Not just the server, the whole stack. All Apache 2.0.
```bash
helm upgrade --install sie-cluster oci://ghcr.io/superlinked/charts/sie-cluster \
--namespace sie --create-namespace \
--set hfToken.create=true \
--set hfToken.value=YOUR_HF_TOKEN \
- -f deploy/helm/sie-cluster/values-{gke|aws}.yaml
+ -f deploy/helm/sie-cluster/values-{gke|aws|aks}.yaml
```
See the [deployment guide](https://superlinked.com/docs/deployment/).
@@ -162,14 +137,11 @@ See the [deployment guide](https://superlinked.com/docs/deployment/).
### Explore
-[**85+ models**](https://superlinked.com/models) across embedders, rerankers, extractors, and generators: dense, sparse, multi-vector, vision, cross-encoder, and generative architectures. All pre-configured, all quality-verified in CI.
-Every model is a config in [`packages/sie_server/models/`](https://github.com/superlinked/sie/tree/main/packages/sie_server/models); pass its full Hugging Face ID to the SDK (e.g. `sentence-transformers/all-MiniLM-L6-v2`, `Qwen/Qwen3-4B-Instruct-2507`). Browse the rendered [catalog](https://superlinked.com/models) for the complete list.
+[**85+ models**](https://superlinked.com/models): dense, sparse, multi-vector, vision, cross-encoder, and generative architectures. Every model is a config in [`packages/sie_server/models/`](https://github.com/superlinked/sie/tree/main/packages/sie_server/models); pass its full Hugging Face ID to the SDK (e.g. `sentence-transformers/all-MiniLM-L6-v2`, `Qwen/Qwen3-4B-Instruct-2507`).
[**Integrations**](https://superlinked.com/docs/integrations/): LangChain, LlamaIndex, Haystack, DSPy, CrewAI, Chroma, Qdrant, Weaviate.
-[**Notebooks**](notebooks/): Quickstarts and walkthroughs
-
-[**Examples**](examples/): End-to-end project gallery
+[**Examples**](examples/): A quickstart notebook and an end-to-end project gallery.
[**Why we built SIE**](https://www.youtube.com/watch?v=qdh_x-uRs9g): The motivation, told at AI Engineer Europe 2026.
diff --git a/examples/README.md b/examples/README.md
index 567b849ee..c87f4f93f 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -2,6 +2,8 @@
A project gallery of full end-to-end applications built with SIE. Each project lives in its own subdirectory. Clone it, run it, learn from it.
+New to SIE? Start with the **[quickstart notebook](./quickstart.ipynb)** [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/superlinked/sie/blob/main/examples/quickstart.ipynb): encode, score, and extract in 5 minutes, then pick a project below.
+
## Gallery
Use this table to pick the right starting point. "Runnable" means the
diff --git a/notebooks/quickstart.ipynb b/examples/quickstart.ipynb
similarity index 100%
rename from notebooks/quickstart.ipynb
rename to examples/quickstart.ipynb
diff --git a/notebooks/README.md b/notebooks/README.md
deleted file mode 100644
index 4d056883b..000000000
--- a/notebooks/README.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Notebooks
-
-Quickstarts and educational walkthroughs for SIE. Each notebook is a self-contained tutorial you can run locally or in Colab.
-
-> More notebooks are in progress and will be published before launch.
-
-## Notebooks
-
-| Notebook | Description | |
-|----------|-------------|---|
-| **[Quickstart](quickstart.ipynb)** | Encode, score, extract in 5 minutes | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/superlinked/sie/blob/main/notebooks/quickstart.ipynb) |
-| **Multi-Model Hybrid Search** | Combine SOTA dense + sparse + reranker models |
-| **Model Swapping** | Compare models, find the best for your data |
-| **Image Search** | CLIP / SigLIP cross-modal search |
-| **Visual Docs** | ColPali PDF search without OCR |
-| **RAG Pipeline** | End-to-end retrieval-augmented generation |
-| **OpenAI Migration** | Switch from OpenAI in 5 minutes |
-
-## Running locally
-
-```bash
-pip install sie-sdk jupyterlab
-jupyter lab
-```
-
-## Links
-
-- [SIE overview](../README.md)
-- [API reference](https://superlinked.com/docs/reference/sdk)
-- [Full quickstart guide](https://superlinked.com/docs/quickstart)
-- [All models](https://superlinked.com/models)