feat: update plugin references from @soulcraft/brainy-cortex to @soulcraft/cortex

This commit is contained in:
David Snelling 2026-02-01 08:22:07 -08:00
parent b0439fbc26
commit 7f9d2a70a5
6 changed files with 9 additions and 8 deletions

View file

@ -576,10 +576,10 @@ const stats = brain.getCacheStats() // Performance insights
### Native Acceleration (Optional) ### Native Acceleration (Optional)
Install `@soulcraft/brainy-cortex` for Rust-powered native acceleration: SIMD distance calculations, native metadata/graph indexes, CRoaring bitmaps, and Candle ML embeddings. Auto-detected — zero configuration required. Install `@soulcraft/cortex` for Rust-powered native acceleration: SIMD distance calculations, native metadata/graph indexes, CRoaring bitmaps, and Candle ML embeddings. Auto-detected — zero configuration required.
```bash ```bash
npm install @soulcraft/brainy-cortex npm install @soulcraft/cortex
``` ```
--- ---

View file

@ -6632,7 +6632,7 @@ export class Brainy<T = any> implements BrainyInterface<T> {
* Called internally during init(). * Called internally during init().
*/ */
private async loadPlugins(): Promise<void> { private async loadPlugins(): Promise<void> {
// Auto-detect installed plugins (e.g., @soulcraft/brainy-cortex) // Auto-detect installed plugins (e.g., @soulcraft/cortex)
const pluginPackages = (this.config as any).plugins as string[] | undefined const pluginPackages = (this.config as any).plugins as string[] | undefined
await this.pluginRegistry.autoDetect(pluginPackages || []) await this.pluginRegistry.autoDetect(pluginPackages || [])

View file

@ -316,7 +316,7 @@ export interface HNSWConfig {
// SQ8 vector quantization (4x memory reduction, ~0.4% accuracy loss) // SQ8 vector quantization (4x memory reduction, ~0.4% accuracy loss)
quantization?: { quantization?: {
enabled: boolean // default: false — preserves current behavior exactly enabled: boolean // default: false — preserves current behavior exactly
bits?: 8 | 4 // default: 8 (SQ8). SQ4 requires brainy-cortex native. bits?: 8 | 4 // default: 8 (SQ8). SQ4 requires cortex native.
rerankMultiplier?: number // default: 3 — over-retrieve 3x, rerank with float32 rerankMultiplier?: number // default: 3 — over-retrieve 3x, rerank with float32
} }
// Vector storage mode // Vector storage mode

View file

@ -117,7 +117,7 @@ export class EmbeddingManager {
try { try {
if (isBrowser()) { if (isBrowser()) {
console.warn('[brainy] Browser WASM embedding engine is deprecated and will be removed in v8.0. Use Node.js/Bun with native embeddings (@soulcraft/brainy-cortex) instead.') console.warn('[brainy] Browser WASM embedding engine is deprecated and will be removed in v8.0. Use Node.js/Bun with native embeddings (@soulcraft/cortex) instead.')
} }
// Initialize WASM engine (handles all model loading) // Initialize WASM engine (handles all model loading)
await this.engine.initialize() await this.engine.initialize()

View file

@ -2,7 +2,7 @@
* Brainy Plugin System * Brainy Plugin System
* *
* Simple plugin architecture for two use cases: * Simple plugin architecture for two use cases:
* 1. Native acceleration (@soulcraft/brainy-cortex) * 1. Native acceleration (@soulcraft/cortex)
* 2. Custom storage adapters (e.g., Redis, DynamoDB, custom backends) * 2. Custom storage adapters (e.g., Redis, DynamoDB, custom backends)
* *
* Plugins are auto-detected by package name or registered manually. * Plugins are auto-detected by package name or registered manually.
@ -89,7 +89,8 @@ export class PluginRegistry {
*/ */
async autoDetect(additionalPackages: string[] = []): Promise<void> { async autoDetect(additionalPackages: string[] = []): Promise<void> {
const packages = [ const packages = [
'@soulcraft/brainy-cortex', '@soulcraft/cortex',
'@soulcraft/brainy-cortex', // deprecated — backward compat
...additionalPackages ...additionalPackages
] ]

View file

@ -732,7 +732,7 @@ export interface BrainyConfig {
hnsw?: { hnsw?: {
quantization?: { quantization?: {
enabled?: boolean // default: false — current behavior exactly enabled?: boolean // default: false — current behavior exactly
bits?: 8 | 4 // default: 8 (SQ8). SQ4 requires brainy-cortex native. bits?: 8 | 4 // default: 8 (SQ8). SQ4 requires cortex native.
rerankMultiplier?: number // default: 3 — over-retrieve 3x, rerank with float32 rerankMultiplier?: number // default: 3 — over-retrieve 3x, rerank with float32
} }
vectorStorage?: 'memory' | 'lazy' // default: 'memory' — 'lazy' evicts vectors after insert vectorStorage?: 'memory' | 'lazy' // default: 'memory' — 'lazy' evicts vectors after insert