I have a little side-project I’ve been working on for some time. What it does and how it does what it does isn’t important. What is important is that it uses vector embeddings and it does use cosine similarity search.

One of the big stumbling blocks I kept running into over and over again was: how do I store these vectors? And, more importantly, how do I search these vectors to find matches?

I tried to get sqlite-vss and sqlite-vec both going, but I didn’t like having to set the size of the embedding in the Schema definition. pg_vector forces you to have a single embedding size, but you can truncate the database and re-import and it will only complain about the data if the data you are trying to insert does…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help