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
|
|
@ -11,10 +11,10 @@ Brainy is designed with **"Zero Config by Default, Infinite Tunability"** philos
|
|||
### Instant Start
|
||||
|
||||
```typescript
|
||||
import { BrainyData } from 'brainy'
|
||||
import { Brainy } from 'brainy'
|
||||
|
||||
// That's it. No config needed.
|
||||
const brain = new BrainyData()
|
||||
const brain = new Brainy()
|
||||
await brain.init()
|
||||
|
||||
// Brainy automatically:
|
||||
|
|
@ -100,7 +100,7 @@ Brainy seamlessly migrates between storage types:
|
|||
|
||||
```typescript
|
||||
// Start with memory storage (development)
|
||||
const brain = new BrainyData() // Auto-selects memory
|
||||
const brain = new Brainy() // Auto-selects memory
|
||||
|
||||
// Later, migrate to production storage
|
||||
await brain.migrate({
|
||||
|
|
@ -292,7 +292,7 @@ Models are automatically downloaded when needed:
|
|||
|
||||
```typescript
|
||||
// First use - model auto-downloads
|
||||
const brain = new BrainyData()
|
||||
const brain = new Brainy()
|
||||
await brain.init() // Downloads model if not cached
|
||||
|
||||
// Intelligent model caching
|
||||
|
|
@ -705,7 +705,7 @@ While zero-config is default, you can override when needed:
|
|||
|
||||
```typescript
|
||||
// Explicit configuration when needed
|
||||
const brain = new BrainyData({
|
||||
const brain = new Brainy({
|
||||
// Override auto-detection
|
||||
storage: {
|
||||
type: 'filesystem',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue