Spaces:
Runtime error
Runtime error
Commit History
-
Implement dynamic entity detection for Pure LLM system
- Add detect_entity_type method to PureLLMHandler - Remove hardcoded 'sales_orders' default in transformation engine - Use LLM to analyze column patterns and detect appropriate entity type - Add comprehensive entity detection prompts with business context - Create test_entity_detection.py to validate functionality - Update documentation to reflect dynamic entity detection feature - Achieve 71.4% accuracy in entity detection tests - Maintain fallback to sales_orders only if all detection attempts fail26d0417
-
fix: Improve Pure LLM transformation to preserve all mapped fields
Key Improvements: - Modified _apply_column_mapping to prioritize LLM-mapped fields - Preserves all successfully mapped columns instead of restricting to CDF schema - Only adds missing essential CDF fields as null values - Maintains logical column ordering (mapped first, then missing CDF fields) SAP Data Handling: - Successfully maps 11/12 SAP fields (smart duplicate avoidance) - Preserves complex SAP field names like VBAK.VBELN order_id - Handles SAP-specific data types and formats correctly - Comprehensive test suite with test_sap_pure_llm.py LLM Mapping Logic: - Enhanced field preservation without breaking CDF compatibility - Intelligent duplicate field handling (avoids mapping both VBAK.WAERK and VBAP.WAERK to currency) - Maintains data integrity while maximizing field coverage - Robust error handling for type conversions Results: - 11/12 SAP fields successfully mapped and preserved - All LLM mapping decisions respected and maintained - No data loss from overly restrictive sc…330ad16 -
feat: Implement Pure LLM-based transformation system
New Features: - Pure LLM transformation engine with enhanced template context - Eliminates Jaccard similarity and heuristic fallbacks - 5 retry attempts with robust error handling - New API endpoints with llm_pure/ prefix API Endpoints Added: - POST /llm_pure/transform - JSON data transformation - POST /llm_pure/transform/file - File upload transformation - POST /llm_pure/transform/file/download - File download transformation - POST /llm_pure/analyze - Data analysis for Pure LLM LLM Configuration: - Model: meta-llama/llama-4-maverick-17b-128e-instruct - Temperature: 0.2 for consistent mapping - Enhanced context with template examples from template.json - Entity-specific guidance and business patterns Technical Implementation: - mapper/llm_handler_pure.py - Enhanced LLM handler - mapper/transformation_engine_pure.py - Simplified decision logic - Updated app.py with dual engine support - Comprehensive test suite and documentation Key Benefits: - No breaking changes - all existing…4293da0