Skip to content

perf(sql): keep the last two parsed vectors for similarity functions - #52

Merged
harehare merged 2 commits into
mainfrom
perf/vector-parse
Oct 22, 2026
Merged

harehare merged 2 commits into
mainfrom
perf/vector-parse

Conversation

@harehare

Copy link
Copy Markdown
Owner

The query vector is the same for every row, so it is parsed once per query instead of once per row.

The query vector is the same for every row, so it is parsed once per
query instead of once per row.
The comma-separated parser used f64::parse, which accepts spellings such
as `+1`, `02`, `.5` and `1.` that JSON rejects, so malformed embeddings
produced similarity scores instead of NULL.
@harehare
harehare merged commit 28f36de into main Oct 22, 2026
6 checks passed
@harehare
harehare deleted the perf/vector-parse branch October 25, 2026 03:33
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.

1 participant