feat: update plugin references from @soulcraft/brainy-cortex to @soulcraft/cortex
This commit is contained in:
parent
b0439fbc26
commit
7f9d2a70a5
6 changed files with 9 additions and 8 deletions
|
|
@ -6632,7 +6632,7 @@ export class Brainy<T = any> implements BrainyInterface<T> {
|
|||
* Called internally during init().
|
||||
*/
|
||||
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
|
||||
await this.pluginRegistry.autoDetect(pluginPackages || [])
|
||||
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ export interface HNSWConfig {
|
|||
// SQ8 vector quantization (4x memory reduction, ~0.4% accuracy loss)
|
||||
quantization?: {
|
||||
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
|
||||
}
|
||||
// Vector storage mode
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ export class EmbeddingManager {
|
|||
|
||||
try {
|
||||
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)
|
||||
await this.engine.initialize()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* Brainy Plugin System
|
||||
*
|
||||
* 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)
|
||||
*
|
||||
* Plugins are auto-detected by package name or registered manually.
|
||||
|
|
@ -89,7 +89,8 @@ export class PluginRegistry {
|
|||
*/
|
||||
async autoDetect(additionalPackages: string[] = []): Promise<void> {
|
||||
const packages = [
|
||||
'@soulcraft/brainy-cortex',
|
||||
'@soulcraft/cortex',
|
||||
'@soulcraft/brainy-cortex', // deprecated — backward compat
|
||||
...additionalPackages
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -732,7 +732,7 @@ export interface BrainyConfig {
|
|||
hnsw?: {
|
||||
quantization?: {
|
||||
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
|
||||
}
|
||||
vectorStorage?: 'memory' | 'lazy' // default: 'memory' — 'lazy' evicts vectors after insert
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue