• v5.7.6 001ba8efd7

    Stable

    dpsifr released this 2025-11-13 18:02:56 +01:00 | 570 commits to main since this release

    Neural Entity Extraction API (v5.7.6)

    Public API exports for Workshop team integration

    New Exports

    Classes:

    • NeuralEntityExtractor - Full extraction orchestrator
    • SmartExtractor - Entity type classifier (4-signal ensemble)
    • SmartRelationshipExtractor - Relationship type classifier

    Method:

    • brain.extractEntities(text, options) - Primary extraction API

    Subpath Imports:

    import { SmartExtractor } from '@soulcraft/brainy/neural/SmartExtractor'
    import { SmartRelationshipExtractor } from '@soulcraft/brainy/neural/SmartRelationshipExtractor'
    import { NeuralEntityExtractor } from '@soulcraft/brainy/neural/entityExtractor'
    

    Features

    • 🎯 4-Signal Ensemble - ExactMatch (40%) + Embedding (35%) + Pattern (20%) + Context (5%)
    • 📊 Format Intelligence - Adapts to Excel, CSV, PDF, YAML, DOCX, JSON, Markdown
    • Fast - ~15-20ms per extraction with LRU caching
    • 🌍 42 NounTypes - Person, Organization, Location, and 39 more

    Documentation

    • Comprehensive Guide: docs/neural-extraction.md (600+ lines)
    • README Examples: Updated with extraction workflows
    • API Reference: Complete interface documentation

    Example

    import { Brainy, NounType } from '@soulcraft/brainy'
    
    const brain = new Brainy()
    await brain.init()
    
    const entities = await brain.extractEntities(
      'John Smith founded Acme Corp in New York',
      { confidence: 0.7 }
    )
    // [
    //   { text: 'John Smith', type: NounType.Person, confidence: 0.95 },
    //   { text: 'Acme Corp', type: NounType.Organization, confidence: 0.92 },
    //   { text: 'New York', type: NounType.Location, confidence: 0.88 }
    // ]
    

    Full Changelog: See CHANGELOG.md

    Downloads