Spaces:
Runtime error
Runtime error
Commit History
-
fix: Add gunicorn to core dependencies in requirements.txt
ba7ac84
-
Integrate LangChain with Groq Cloud for enhanced LLM handling
LANGCHAIN INTEGRATION: - Replaced direct Groq API calls with LangChain framework - Added LangChainGroqLLMHandler with proper prompt templates - Structured prompt engineering with entity-specific guidance - Template context injection for better AI mapping accuracy ENHANCED PROMPT TEMPLATES: - Professional LangChain PromptTemplate implementation - Dynamic template context sections from template.json - Entity-specific guidance for each ERP type (sales_orders, customers, etc.) - Structured JSON response formatting with validation ROBUST ERROR HANDLING: - JSON extraction from LLM responses (handles code blocks) - Multiple retry attempts with proper logging - Graceful fallback to MockLLMHandler when LangChain unavailable - Comprehensive mapping validation UPDATED DEPENDENCIES: - Added langchain>=0.1.0 and langchain-groq>=0.1.0 - Maintained backward compatibility with existing code - Factory pattern for seamless handler switching SYSTEM VALIDATION: - All LangChain components operation…be86e78 -
Enhanced API with smart auto-selection and Groq integration
SMART AUTO-SELECTION LOGIC: - When auto_select_erp=true, ERP parameter is completely ignored - When auto_select_entity=true, entity parameter is completely ignored - Two-stage resolution: resolve_with_template() resolve_with_ai() - Template-first approach with AI fallback for unknown schemas GROQ CLOUD INTEGRATION: - Replaced OpenAI with Groq Cloud (Llama models) - Added comprehensive prompt templates with entity-specific guidance - Environment variable support (.env.example created) - Mock LLM handler for testing without API keys FILE FORMAT OPTIMIZATION: - Removed Parquet support (focused on CSV, Excel, JSON, SQL) - Updated data processor and API endpoints - Streamlined format detection and processing ENHANCED TRANSFORMATION ENGINE: - Smart confidence scoring for template vs AI decisions - Comprehensive data type handling and format consistency - Two-stage mapping resolution with fallback logic - Template context loading for AI prompts ENVIRONMENT CONFIGURATION: - .env.examp…afba74c -
Implement high-performance transformation engine with Polars + DuckDB
Major Enhancement: High-Performance Data Processing - Added DataProcessor class using Polars for CSV/Excel/JSON and DuckDB for SQL - Implemented TransformationEngine with auto-detection capabilities - Created enhanced API v2.0 with comprehensive endpoints Key Features: - Auto-detect ERP system and entity type from data structure - Template-based transformation with AI fallback using LLM - Format consistency following ERP-CDF-Mapping guidelines - Support for CSV, Excel, JSON, SQL, and Parquet formats - High-performance in-memory processing Data Format Consistency: - Date fields: ISO yyyy-MM-dd (APIs/DB) vs dd-MMMM-yyyy (human-readable) - Decimal fields: DECIMAL(18,2) with 2 decimal places - Boolean fields: true/false (JSON) vs 1/0 (database) - Text fields: UTF-8 encoding with proper escaping Enhanced API Endpoints: - POST /transform - Transform JSON data directly - POST /transform/file - Upload and transform files - POST /transform/file/download - Transform and download result - P…f12ad36 -
Initial AI done
d448413