feat: add intelligent import for CSV, Excel, and PDF files
Add IntelligentImportAugmentation with support for: - CSV: auto-detection of encoding, delimiters, and field types - Excel: multi-sheet extraction with metadata preservation - PDF: text extraction, table detection, and metadata extraction Features: - Automatic format detection from file extension or content - Intelligent type inference (string, number, boolean, date) - Seamless integration with neural entity extraction - Production-ready with 69 comprehensive tests Dependencies added: - xlsx@^0.18.5 for Excel parsing - pdfjs-dist@^4.0.379 for PDF parsing - csv-parse@^6.1.0 for CSV parsing - chardet@^2.0.0 for encoding detection Documentation: - Updated README with import examples - Updated API_REFERENCE with comprehensive import() docs - Updated import-anything.md guide - Added working example: import-excel-pdf-csv.ts - Updated augmentations README
This commit is contained in:
parent
aaf8e0f411
commit
814cbb48ee
33 changed files with 4664 additions and 28 deletions
5
tests/fixtures/import/semicolon.csv
vendored
Normal file
5
tests/fixtures/import/semicolon.csv
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
product;price;quantity;inStock
|
||||
Laptop;999.99;10;yes
|
||||
Mouse;29.99;100;yes
|
||||
Keyboard;79.99;50;no
|
||||
Monitor;299.99;25;yes
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue