Settings

Theme

Show HN: You need a few lines of JS, not a vector database

github.com

5 points by zcbenz · 3 comments

Reader

2 threads
Translationaut

Why do we need vectors for search anyway? The results are often unrelated to the query. Aren't therefore exact matches better? One could also annotate the corpus with related tags and hypothetical questions, if we need more results.

minimaxir

If you don't need a vector database, how are you storing the embeddings to compare the query against?

  • zcbenzOP

    You can use any serialization that supports numbers, in the repo I used BSER (a binary format of JSON), you can even use raw JSON but it would be very inefficient for float numbers though.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection