You may not need pg_vector, sqlite-vss, etc.
dev.to·9h·
Discuss: DEV
Flag this post

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...