fix: update all imports and references from BrainyData to Brainy
- Fixed imports in examples/tests/ to use correct Brainy import - Fixed imports in tests/benchmarks/ to use correct paths - Updated bin/brainy-interactive.js to use Brainy instead of BrainyData - Corrected documentation references throughout codebase - Removed duplicate imports in benchmark files - All files now consistently use 'Brainy' class from dist/index.js
This commit is contained in:
parent
791fac54cd
commit
196690863d
77 changed files with 328 additions and 331 deletions
|
|
@ -5,8 +5,8 @@
|
|||
* This will help us identify where we lost the claimed 500,000 ops/sec
|
||||
*/
|
||||
|
||||
import { BrainyData } from '../dist/index.js'
|
||||
import { MemoryStorage } from '../dist/storage/adapters/memoryStorage.js'
|
||||
import { Brainy } from '../../dist/index.js'
|
||||
import { MemoryStorage } from '../../dist/storage/adapters/memoryStorage.js'
|
||||
|
||||
// Performance tracking
|
||||
class PerformanceProfiler {
|
||||
|
|
@ -78,20 +78,20 @@ async function profilePerformance() {
|
|||
console.log('Initializing Brainy configurations...')
|
||||
|
||||
// 1. Minimal config (no augmentations)
|
||||
const minimalBrain = new BrainyData({
|
||||
const minimalBrain = new Brainy({
|
||||
storage: new MemoryStorage(),
|
||||
augmentations: false // Disable all augmentations
|
||||
})
|
||||
await minimalBrain.init()
|
||||
|
||||
// 2. Default config (with augmentations)
|
||||
const defaultBrain = new BrainyData({
|
||||
const defaultBrain = new Brainy({
|
||||
storage: new MemoryStorage()
|
||||
})
|
||||
await defaultBrain.init()
|
||||
|
||||
// 3. Full augmentations config
|
||||
const fullBrain = new BrainyData({
|
||||
const fullBrain = new Brainy({
|
||||
storage: new MemoryStorage(),
|
||||
augmentations: {
|
||||
batchProcessing: { enabled: true, maxBatchSize: 1000 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue