Skip to content

feat(turso): add Turso backend - #842

Open
uwu-420 wants to merge 1 commit into
zilliztech:mainfrom
uwu-420:feat/turso-adapter
Open

feat(turso): add Turso backend#842
uwu-420 wants to merge 1 commit into
zilliztech:mainfrom
uwu-420:feat/turso-adapter

Conversation

@uwu-420

@uwu-420 uwu-420 commented Aug 10, 2026

Copy link
Copy Markdown

@sre-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: uwu-420
To complete the pull request process, please assign xuanyang-cn after the PR has been reviewed.
You can assign the PR to them by writing /assign @xuanyang-cn 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

@uwu-420

uwu-420 commented Aug 10, 2026

Copy link
Copy Markdown
Author

/assign @XuanYang-cn

try:
connection.executemany(
"INSERT INTO vectors(id, embedding) VALUES (?, ?)",
[(int(row_id), vector.tobytes()) for row_id, vector in zip(metadata, vectors, strict=True)],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vectordb_bench/backend/clients/turso/turso.py line:111
High ---- Turso's vector_distance_* functions require vector32/vector64-encoded blobs, but this inserts raw NumPy float bytes directly. Those blobs are not valid Turso vectors, so every subsequent distance query will fail validation (or misinterpret the data) once the backend is used. Please encode each vector with Turso's vector32 representation before storing it.

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.

3 participants