UNPKG

native-vector-store

Version:

High-performance local vector store with SIMD optimization for MCP servers

180 lines (54 loc) 2.47 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: VectorStore</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: VectorStore</h1> <section> <header> <h2><span class="attribs"><span class="type-signature"></span></span>VectorStore<span class="signature">()</span><span class="type-signature"></span></h2> </header> <article> <div class="container-overview"> <h4 class="name" id="VectorStore"><span class="type-signature"></span>new VectorStore<span class="signature">()</span><span class="type-signature"></span></h4> <div class="description"> <p>High-performance vector store with SIMD optimization for similarity search. Designed for immutable, one-time loading scenarios with fast searches over focused corpora.</p> </div> <dl class="details"> </dl> <h5>Examples</h5> <pre class="prettyprint"><code>// Basic usage const store = new VectorStore(1536); store.loadDir('./documents'); const results = store.search(queryEmbedding, 10);</code></pre> <pre class="prettyprint"><code>// Multiple domain-specific stores const productStore = new VectorStore(1536); const supportStore = new VectorStore(1536); productStore.loadDir('./knowledge/products'); supportStore.loadDir('./knowledge/support');</code></pre> </div> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="VectorStore.html">VectorStore</a></li><li><a href="VectorStoreWrapper.html">VectorStoreWrapper</a></li></ul><h3><a href="global.html">Global</a></h3> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a> </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>