Applies the same performance optimizations from v3.38.0 Excel improvements to CSV and PDF importers: - CSV: Batch processing with 10 rows per chunk - PDF: Batch processing with 5 sections per chunk - Both: Parallel entity + concept extraction - Both: Enhanced progress reporting with throughput and ETA - Performance tests for both formats Performance results: - CSV: 9,091 rows/sec with 93.8% cache hit rate - PDF: 313 sections/sec with 90.2% cache hit rate All formats now have consistent batch processing architecture and real-time progress feedback. |
||
|---|---|---|
| .. | ||
| tests | ||
| api-server-example.ts | ||
| augmentations-zero-config.ts | ||
| bluesky-distributed-setup.js | ||
| brainy-backup.ts | ||
| complete-import-demo.ts | ||
| demo.ts | ||
| directory-import-with-caching.ts | ||
| import-excel-pdf-csv.ts | ||
| monitor-cache-performance.ts | ||
| quick-import-test.ts | ||
| README.md | ||
| smart-import-example.ts | ||
| test-csv-performance.ts | ||
| test-deduplication.ts | ||
| test-excel-import.ts | ||
| test-excel-performance.ts | ||
| test-pdf-performance.ts | ||
| unified-import-example.ts | ||
Brainy Examples
This directory contains example code and test scripts for Brainy.
Structure
demo.ts- Basic demonstration of Brainy's core featurestests/- Various test scripts demonstrating different aspects of Brainy- Performance tests
- Memory tests
- Storage adapter tests
- API functionality tests
- CLI tests
Running Examples
Basic Demo
npm run build
node dist/examples/demo.js
Test Scripts
The scripts in tests/ are standalone Node.js scripts that can be run directly:
node examples/tests/test-simple.js
node examples/tests/test-core-functionality.js
Note
These are examples and test scripts for reference. For production use, see the main documentation in the project root.