Skip to content

feat(vector): tag the Valkey Search client lib-name for attribution - #2620

Open
Jonathan-Improving wants to merge 1 commit into
langbot-app:masterfrom
Jonathan-Improving:aea-698-tag
Open

Jonathan-Improving wants to merge 1 commit into
langbot-app:masterfrom
Jonathan-Improving:aea-698-tag

Conversation

@Jonathan-Improving

Copy link
Copy Markdown

概述 / Overview

Follow-up to the Valkey Search vector backend (#2276). This sets a library-name tag on its glide client, so the server can tell LangBot's connections apart from any other valkey-glide user.

  • src/langbot/pkg/vector/vdbs/valkey_search.py — client_info_tag='langbot' on the one GlideClientConfiguration in _ensure_client(). The existing client_name='langbot_vector_client' stays as it is; CLIENT SETNAME and CLIENT SETINFO LIB-NAME are separate fields.
  • pyproject.toml — valkey-glide floor >=2.4.1,<3.0.0 → >=2.5.2,<3.0.0, because client_info_tag first shipped in 2.5.2. The install hint in the ImportError and docs/VALKEY_SEARCH_INTEGRATION.md are updated to match.
  • uv.lock — regenerated with uv lock (valkey-glide 2.4.1 → 2.5.3, which brings in trio/sortedcontainers/outcome as its own deps). uv 0.12.3 also simplified some nvidia-* / cuda-* resolution markers. I didn't hand-edit anything, and I'm happy to regenerate with whatever uv version you use.

Metadata only: no behaviour change, and the Windows marker is untouched.

更改前后对比截图 / Screenshots

Observed on a live server (valkey 9.1.1, standalone), with the connection opened by ValkeySearchVectorDatabase itself:

修改前 / Before: lib-name=GlidePy (glide's untagged default, which doesn't distinguish LangBot)

修改后 / After:

name=langbot_vector_client ... lib-name=GlidePy(langbot) lib-ver=0.1.0

(CLIENT LIST LIB-NAME 'GlidePy(langbot)' returns the connection. The backend only builds a standalone GlideClient, so there is no cluster path to check.)

检查清单 / Checklist

PR 作者完成 / For PR author

  • 阅读仓库贡献指引了吗? / Have you read the contribution guide?
  • 我已签署或将在机器人提示后签署 CLA。 / I have signed, or will sign when prompted by the bot, the CLA.
  • 与项目所有者沟通过了吗? / Have you communicated with the project maintainer?
  • 我确定已自行测试所作的更改,确保功能符合预期。 / I have tested the changes and ensured they work as expected. (tests/unit_tests/vector: 116 passed; the single failure, TestQdrantFilterConversion::test_empty_filter_returns_empty_must, is unrelated to this change. ruff check and ruff format --check are clean.)

Set client_info_tag='langbot' on the Valkey Search vector store's glide
client, so CLIENT SETINFO LIB-NAME reports GlidePy(langbot) and operators
can attribute Valkey usage to LangBot. client_name is unchanged.

client_info_tag was added in valkey-glide 2.5.2, so raise the floor from
>=2.4.1 to >=2.5.2 (pyproject, install hint, docs) and regenerate uv.lock.
@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. ✅ 所有贡献者均已签署 CLA。
Posted by the CLA Assistant Lite bot.

@Jonathan-Improving

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

dadachann added a commit to langbot-app/cla that referenced this pull request Sep 30, 2026
@Jonathan-Improving

Copy link
Copy Markdown
Author

The CLA assistant is still failing for some reason, despite I having signed the CLA.

@github-actions github-actions Bot locked and limited conversation to collaborators Oct 2, 2026

This branch has not been deployed

No deployments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant