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/simple.csv
vendored
Normal file
5
tests/fixtures/import/simple.csv
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
name,age,email,active
|
||||
John Doe,30,john@example.com,true
|
||||
Jane Smith,25,jane@example.com,false
|
||||
Bob Johnson,45,bob@example.com,true
|
||||
Alice Williams,35,alice@example.com,true
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue