In-memory vector store with cosine similarity search.
npm install embedding-storeconst { VectorStore } = require('embedding-store');
const store = new VectorStore();
store.add('doc1', [1, 0, 1]);
store.add('doc2', [0, 1, 0]);
store.search([1, 0, 0.5], 1); // [{key:'doc1', similarity:...}]MIT