native-vector-store 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +232 -9
  2. package/binding.gyp +3 -2
  3. package/docs/PERFORMANCE_CASE_STUDY.md +130 -0
  4. package/docs/PREBUILDS.md +69 -0
  5. package/docs/VectorStore.html +180 -0
  6. package/docs/VectorStoreWrapper.html +1356 -0
  7. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  8. package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  9. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  10. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  11. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  12. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  13. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  14. package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  15. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  16. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  17. package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  18. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  19. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  20. package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  21. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  22. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  23. package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  24. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  25. package/docs/global.html +561 -0
  26. package/docs/index.html +570 -0
  27. package/docs/scripts/linenumber.js +25 -0
  28. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  29. package/docs/scripts/prettify/lang-css.js +2 -0
  30. package/docs/scripts/prettify/prettify.js +28 -0
  31. package/docs/styles/jsdoc-default.css +358 -0
  32. package/docs/styles/prettify-jsdoc.css +111 -0
  33. package/docs/styles/prettify-tomorrow.css +132 -0
  34. package/index.js +162 -0
  35. package/package.json +7 -3
  36. package/prebuilds/darwin-arm64/native-vector-store.node +0 -0
  37. package/prebuilds/darwin-x64/native-vector-store.node +0 -0
  38. package/prebuilds/linux-arm64/native-vector-store.node +0 -0
  39. package/prebuilds/linux-x64/native-vector-store.node +0 -0
  40. package/prebuilds/linux-x64-musl/napi-v9/native-vector-store.node +0 -0
  41. package/prebuilds/linux-x64-musl/native-vector-store.node +0 -0
  42. package/prebuilds/win32-x64/native-vector-store.node +0 -0
  43. package/src/Makefile +4 -4
  44. /package/{src → deps/atomic_queue}/atomic_queue.h +0 -0
  45. /package/{src → deps/atomic_queue}/defs.h +0 -0
  46. /package/deps/{simdjson.cpp → simdjson/simdjson.cpp} +0 -0
  47. /package/deps/{simdjson.h → simdjson/simdjson.h} +0 -0
@@ -0,0 +1,561 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>JSDoc: Global</title>
6
+
7
+ <script src="scripts/prettify/prettify.js"> </script>
8
+ <script src="scripts/prettify/lang-css.js"> </script>
9
+ <!--[if lt IE 9]>
10
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
+ <![endif]-->
12
+ <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
+ </head>
15
+
16
+ <body>
17
+
18
+ <div id="main">
19
+
20
+ <h1 class="page-title">Global</h1>
21
+
22
+
23
+
24
+
25
+
26
+
27
+ <section>
28
+
29
+ <header>
30
+
31
+ <h2></h2>
32
+
33
+
34
+ </header>
35
+
36
+ <article>
37
+ <div class="container-overview">
38
+
39
+
40
+
41
+
42
+
43
+
44
+ <dl class="details">
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+ </dl>
78
+
79
+
80
+
81
+
82
+ </div>
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+ <h3 class="subsection-title">Type Definitions</h3>
102
+
103
+
104
+
105
+ <h4 class="name" id="Document">Document</h4>
106
+
107
+
108
+
109
+
110
+
111
+
112
+ <h5>Type:</h5>
113
+ <ul>
114
+ <li>
115
+
116
+ <span class="param-type">Object</span>
117
+
118
+
119
+ </li>
120
+ </ul>
121
+
122
+
123
+
124
+
125
+
126
+ <h5 class="subsection-title">Properties:</h5>
127
+
128
+
129
+
130
+ <table class="props">
131
+ <thead>
132
+ <tr>
133
+
134
+ <th>Name</th>
135
+
136
+
137
+ <th>Type</th>
138
+
139
+
140
+
141
+
142
+
143
+ <th class="last">Description</th>
144
+ </tr>
145
+ </thead>
146
+
147
+ <tbody>
148
+
149
+
150
+ <tr>
151
+
152
+ <td class="name"><code>id</code></td>
153
+
154
+
155
+ <td class="type">
156
+
157
+
158
+ <span class="param-type">string</span>
159
+
160
+
161
+
162
+ </td>
163
+
164
+
165
+
166
+
167
+
168
+ <td class="description last"><p>Unique identifier for the document</p></td>
169
+ </tr>
170
+
171
+
172
+
173
+ <tr>
174
+
175
+ <td class="name"><code>text</code></td>
176
+
177
+
178
+ <td class="type">
179
+
180
+
181
+ <span class="param-type">string</span>
182
+
183
+
184
+
185
+ </td>
186
+
187
+
188
+
189
+
190
+
191
+ <td class="description last"><p>The text content of the document</p></td>
192
+ </tr>
193
+
194
+
195
+
196
+ <tr>
197
+
198
+ <td class="name"><code>metadata</code></td>
199
+
200
+
201
+ <td class="type">
202
+
203
+
204
+ <span class="param-type">Object</span>
205
+
206
+
207
+
208
+ </td>
209
+
210
+
211
+
212
+
213
+
214
+ <td class="description last"><p>Document metadata</p>
215
+ <h6>Properties</h6>
216
+
217
+ <table class="props">
218
+ <thead>
219
+ <tr>
220
+
221
+ <th>Name</th>
222
+
223
+
224
+ <th>Type</th>
225
+
226
+
227
+ <th>Attributes</th>
228
+
229
+
230
+
231
+
232
+ <th class="last">Description</th>
233
+ </tr>
234
+ </thead>
235
+
236
+ <tbody>
237
+
238
+
239
+ <tr>
240
+
241
+ <td class="name"><code>embedding</code></td>
242
+
243
+
244
+ <td class="type">
245
+
246
+
247
+ <span class="param-type">Array.&lt;number></span>
248
+
249
+
250
+
251
+ </td>
252
+
253
+
254
+ <td class="attributes">
255
+
256
+
257
+
258
+ </td>
259
+
260
+
261
+
262
+
263
+ <td class="description last"><p>The embedding vector for the document</p></td>
264
+ </tr>
265
+
266
+
267
+
268
+ <tr>
269
+
270
+ <td class="name"><code>*</code></td>
271
+
272
+
273
+ <td class="type">
274
+
275
+
276
+ <span class="param-type">*</span>
277
+
278
+
279
+
280
+ </td>
281
+
282
+
283
+ <td class="attributes">
284
+
285
+ &lt;optional><br>
286
+
287
+
288
+
289
+ </td>
290
+
291
+
292
+
293
+
294
+ <td class="description last"><p>Additional metadata properties</p></td>
295
+ </tr>
296
+
297
+
298
+ </tbody>
299
+ </table>
300
+
301
+ </td>
302
+ </tr>
303
+
304
+
305
+ </tbody>
306
+ </table>
307
+
308
+
309
+
310
+
311
+ <dl class="details">
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+ </dl>
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+ <h4 class="name" id="SearchResult">SearchResult</h4>
354
+
355
+
356
+
357
+
358
+
359
+
360
+ <h5>Type:</h5>
361
+ <ul>
362
+ <li>
363
+
364
+ <span class="param-type">Object</span>
365
+
366
+
367
+ </li>
368
+ </ul>
369
+
370
+
371
+
372
+
373
+
374
+ <h5 class="subsection-title">Properties:</h5>
375
+
376
+
377
+
378
+ <table class="props">
379
+ <thead>
380
+ <tr>
381
+
382
+ <th>Name</th>
383
+
384
+
385
+ <th>Type</th>
386
+
387
+
388
+
389
+
390
+
391
+ <th class="last">Description</th>
392
+ </tr>
393
+ </thead>
394
+
395
+ <tbody>
396
+
397
+
398
+ <tr>
399
+
400
+ <td class="name"><code>score</code></td>
401
+
402
+
403
+ <td class="type">
404
+
405
+
406
+ <span class="param-type">number</span>
407
+
408
+
409
+
410
+ </td>
411
+
412
+
413
+
414
+
415
+
416
+ <td class="description last"><p>Similarity score (0-1, higher is more similar)</p></td>
417
+ </tr>
418
+
419
+
420
+
421
+ <tr>
422
+
423
+ <td class="name"><code>id</code></td>
424
+
425
+
426
+ <td class="type">
427
+
428
+
429
+ <span class="param-type">string</span>
430
+
431
+
432
+
433
+ </td>
434
+
435
+
436
+
437
+
438
+
439
+ <td class="description last"><p>Document identifier</p></td>
440
+ </tr>
441
+
442
+
443
+
444
+ <tr>
445
+
446
+ <td class="name"><code>text</code></td>
447
+
448
+
449
+ <td class="type">
450
+
451
+
452
+ <span class="param-type">string</span>
453
+
454
+
455
+
456
+ </td>
457
+
458
+
459
+
460
+
461
+
462
+ <td class="description last"><p>Document text content</p></td>
463
+ </tr>
464
+
465
+
466
+
467
+ <tr>
468
+
469
+ <td class="name"><code>metadata_json</code></td>
470
+
471
+
472
+ <td class="type">
473
+
474
+
475
+ <span class="param-type">string</span>
476
+
477
+
478
+
479
+ </td>
480
+
481
+
482
+
483
+
484
+
485
+ <td class="description last"><p>Serialized metadata as JSON string</p></td>
486
+ </tr>
487
+
488
+
489
+ </tbody>
490
+ </table>
491
+
492
+
493
+
494
+
495
+ <dl class="details">
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+
528
+ </dl>
529
+
530
+
531
+
532
+
533
+
534
+
535
+
536
+
537
+
538
+
539
+ </article>
540
+
541
+ </section>
542
+
543
+
544
+
545
+
546
+ </div>
547
+
548
+ <nav>
549
+ <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>
550
+ </nav>
551
+
552
+ <br class="clear">
553
+
554
+ <footer>
555
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.4</a>
556
+ </footer>
557
+
558
+ <script> prettyPrint(); </script>
559
+ <script src="scripts/linenumber.js"> </script>
560
+ </body>
561
+ </html>