This repository has been archived on 2026-09-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
open-brainy/src/importers
David Snelling 87eb60d527 perf: optimize concept extraction for production (15x faster)
Major performance improvement for large file imports:
- Neural entity extraction now only initializes requested types
- Reduces initialization from 31 types to 2-5 types for concept extraction
- Fixed apparent hang in Excel/PDF/Markdown imports with concept extraction

Technical changes:
- Modified NeuralEntityExtractor.initializeTypeEmbeddings() to accept requestedTypes parameter
- Updated extract() to pass options.types to initialization
- Re-enabled concept extraction by default in SmartExcelImporter
- Added enhanced GCS diagnostic logging for initialization troubleshooting

Performance impact:
- Small files (<100 rows): 5-20 seconds (was: appeared to hang)
- Medium files (100-500 rows): 20-100 seconds (was: timeout)
- Large files (500+ rows): Can be disabled if needed

Fixes critical production issue where brain.extractConcepts() caused timeouts
2025-10-09 17:52:28 -07:00
..
index.ts feat: add unified import system with auto-detection and dual storage 2025-10-08 16:55:30 -07:00
SmartCSVImporter.ts feat: add unified import system with auto-detection and dual storage 2025-10-08 16:55:30 -07:00
SmartExcelImporter.ts perf: optimize concept extraction for production (15x faster) 2025-10-09 17:52:28 -07:00
SmartImportOrchestrator.ts feat: add unified import system with auto-detection and dual storage 2025-10-08 16:55:30 -07:00
SmartJSONImporter.ts feat: add unified import system with auto-detection and dual storage 2025-10-08 16:55:30 -07:00
SmartMarkdownImporter.ts feat: add unified import system with auto-detection and dual storage 2025-10-08 16:55:30 -07:00
SmartPDFImporter.ts feat: add unified import system with auto-detection and dual storage 2025-10-08 16:55:30 -07:00
VFSStructureGenerator.ts feat: add unified import system with auto-detection and dual storage 2025-10-08 16:55:30 -07:00