Skip to content

feat(search): Add basic vector search (l2_distance)#26

Merged
pthurlow merged 3 commits into
mainfrom
feat/vector-search
Mar 30, 2026
Merged

feat(search): Add basic vector search (l2_distance)#26
pthurlow merged 3 commits into
mainfrom
feat/vector-search

Conversation

@pthurlow
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/query.rs Outdated
Comment thread src/query.rs Outdated
Comment thread src/main.rs
claude[bot]
claude Bot previously approved these changes Mar 30, 2026
Comment thread src/main.rs
Comment thread src/main.rs
let vec = embedding::read_vector_from_stdin();
let vec_str = embedding::vector_to_sql(&vec);
format!(
"SELECT {}, l2_distance({}, {}) as dist FROM {} ORDER BY dist LIMIT {}",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same unquoted-identifier issue as above — column and table need identifier quoting here too.

@pthurlow pthurlow merged commit 398f839 into main Mar 30, 2026
7 checks passed
@pthurlow pthurlow deleted the feat/vector-search branch March 30, 2026 19:12
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