Skip to content

stef41/embedding-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

embedding-store

In-memory vector store with cosine similarity search.

Installation

npm install embedding-store

Usage

const { 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:...}]

License

MIT

About

In-memory vector store with cosine similarity search

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors