agentdb 1.0.9 → 1.0.10
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.
- package/bin/agentdb.js +27 -32
- package/package.json +1 -1
package/bin/agentdb.js
CHANGED
|
@@ -429,38 +429,33 @@ function runBenchmark() {
|
|
|
429
429
|
process.exit(1);
|
|
430
430
|
});
|
|
431
431
|
} catch (error) {
|
|
432
|
-
//
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
console.error(' const db = new SQLiteVectorDB({ memoryMode: true });');
|
|
460
|
-
console.error(' // Add your benchmark code here');
|
|
461
|
-
console.error('');
|
|
462
|
-
process.exit(1);
|
|
463
|
-
}
|
|
432
|
+
// Benchmarks are not included in npm package
|
|
433
|
+
console.error('');
|
|
434
|
+
console.error('❌ Benchmarks not available in npm package');
|
|
435
|
+
console.error('');
|
|
436
|
+
console.error('To run benchmarks, clone the source repository:');
|
|
437
|
+
console.error('');
|
|
438
|
+
console.error(' git clone https://github.com/ruvnet/agentic-flow.git');
|
|
439
|
+
console.error(' cd agentic-flow/packages/agentdb');
|
|
440
|
+
console.error(' npm install');
|
|
441
|
+
console.error(' npm run bench:comprehensive');
|
|
442
|
+
console.error('');
|
|
443
|
+
console.error('Or create a custom benchmark script:');
|
|
444
|
+
console.error('');
|
|
445
|
+
console.error(' const { SQLiteVectorDB } = require("agentdb");');
|
|
446
|
+
console.error(' const db = new SQLiteVectorDB({ memoryMode: true });');
|
|
447
|
+
console.error(' ');
|
|
448
|
+
console.error(' // Insert test vectors');
|
|
449
|
+
console.error(' const vectors = Array.from({ length: 1000 }, () => ({');
|
|
450
|
+
console.error(' embedding: Array(128).fill(0).map(() => Math.random()),');
|
|
451
|
+
console.error(' metadata: { test: true }');
|
|
452
|
+
console.error(' }));');
|
|
453
|
+
console.error(' ');
|
|
454
|
+
console.error(' const start = Date.now();');
|
|
455
|
+
console.error(' vectors.forEach(v => db.insert(v));');
|
|
456
|
+
console.error(' console.log(`Inserted 1000 vectors in ${Date.now() - start}ms`);');
|
|
457
|
+
console.error('');
|
|
458
|
+
process.exit(1);
|
|
464
459
|
}
|
|
465
460
|
}
|
|
466
461
|
|
package/package.json
CHANGED