Skip to content

feat(clients): add Telys connector (on-device, Algenta-powered vector engine) - #824

Open
0xamlab wants to merge 2 commits into
zilliztech:mainfrom
0xamlab:telys-connector
Open

0xamlab wants to merge 2 commits into
zilliztech:mainfrom
0xamlab:telys-connector

Conversation

@0xamlab

@0xamlab 0xamlab commented Jul 21, 2026 •

Copy link
Copy Markdown

VectorDBBench has no Telys client, so its standard cases cannot exercise a Telys server. This adds a client for a running telys serve over TCP, plus its configuration and CLI registration, optional telys dependency, README install entry, and frontend styling.

Labeled collections are partitioned by labels, and equality filters become single-key where clauses; unfiltered collections use one constant scope partition. Each concurrent runner opens its own connection. The filter translation is:

if filters.type == FilterOp.NonFilter:
    self._where = None
elif filters.type == FilterOp.StrEqual:
    self._where = {LABEL_FIELD: filters.label_value}

Only NonFilter and StrEqual are advertised; NumGE is not implemented. Cosine/IP uses the existing normalization path, while L2 is rejected because Telys ranks raw collections by inner product. A live Telys 0.1.14 insert/optimize/search run returned [0, 1] unfiltered and [0, 2] with the label filter.

@0xamlab

0xamlab commented Jul 21, 2026

Copy link
Copy Markdown
Author

/assign @XuanYang-cn

@0xamlab

0xamlab commented Nov 6, 2026

Copy link
Copy Markdown
Author

Rebased onto main at 9782fde, keeping both the HouyiDB and Telys CLI registrations.

Validation: make lint; pytest tests/test_db_client_resolution.py -q (49 passed); VectorDBBench Telys CLI help; live Telys 0.1.14 insert/optimize/search with unfiltered [0, 1] and label-filtered [0, 2] results.

… engine)

Telys accelerates FILTERED search by physical layout: the partition key is stored as a
contiguous slice, so `label == X` reads one block instead of scanning + masking the whole
table. The connector talks to a running `telys serve` (TCP) via the public telys SDK
(server-vs-server), partitioning by the label field so the label-filter case (StrEqual)
maps to Telys's single-key contiguous-partition wedge.

- backend/clients/telys/{telys.py,config.py,cli.py,__init__.py}: VectorDB connector + config + CLI
- registered in backend/clients/__init__.py (DB enum + init/config/case-config) and cli/vectordbbench.py
- frontend/config/styles.py: DB_TO_ICON + COLOR_MAP entries
- pyproject.toml: telys extra (pip install vectordb-bench[telys], telys>=0.1.0b3); README table
- supports NonFilter + StrEqual (label==value); NumGE (range) intentionally not declared;
  cosine/IP only (need_normalize_cosine) — L2 datasets are rejected loudly

Validated end-to-end through VDBBench's real CaseRunner against a live telys serve:
Cohere-100K (768-d cosine, label-filter 1%) recall 1.0000, ndcg 1.0000, p99 1.5ms,
4099 qps @ concurrency 8; custom fixtures (unfiltered + label filters) recall 1.000.
@0xamlab

0xamlab commented Nov 16, 2026

Copy link
Copy Markdown
Author

Rebased onto current main and resolved styles.py by keeping both DB.Warm and DB.Telys icon/color entries. New head a3510f4. Validation: 51 client-resolution tests, Black across 253 files, Ruff, and git diff --check pass.

@sre-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 0xamlab
To complete the pull request process, please assign jamesgao-jpg after the PR has been reviewed.
You can assign the PR to them by writing /assign @jamesgao-jpg in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

# Conflicts:
#	vectordb_bench/cli/vectordbbench.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants