mazed-dev / truthsayer

Second brain for knowledge workers that retains everything you read online and helps you to back up your communication with your source as easily as you might share an anecdote over a coffee.
MIT License
2 stars 2 forks source link

Bugfix: simsearch fix projection dimensions set & release v0.6.20 #830

Closed akindyakov closed 1 year ago

akindyakov commented 1 year ago

Fix projection dimensions set to make sure it stays the same after background restart. Otherwise fast search based on KNN doesn't work.

Components in embedding vectors are position dependent. This means if components in the same position in 2 vectors are close, original sentences by that "meaning" criteria are close. Read more at https://github.com/tensorflow/tfjs-models/tree/master/universal-sentence-encoder