Spaces:
Runtime error
Runtime error
Commit History
-
feat: Update LLM model to meta-llama/llama-4-maverick-17b-128e-instruct
🔄 MODEL UPDATE: - Changed default model from llama-3.1-8b-instant to meta-llama/llama-4-maverick-17b-128e-instruct - Updated model documentation and comments - Maintains backward compatibility with existing Groq API integration - Enhanced AI-assisted field mapping capabilities with newer model0b4afac -
refactor: update LLM handler initialization parameters
- Adjust constructor parameter handling for better flexibility - Improve API key and configuration managementaf079bc
-
Complete codebase cleanup and optimization
REMOVED UNUSED CODE: - Removed MockLLMHandler class (replaced with heuristic fallback) - Removed duplicate model definitions in transformation_engine.py - Removed use_mock_llm parameter complexity - Cleaned up obsolete files and imports ENHANCED TYPE SAFETY: - Migrated to Pydantic models for all data structures - Added comprehensive type hints throughout codebase - Implemented proper enum classes for constants - Enhanced error handling with typed exceptions SIMPLIFIED ARCHITECTURE: - Single LLMHandler class with built-in fallback logic - Streamlined factory pattern for LLM creation - Consolidated model definitions in models.py - Clean separation of concerns across modules IMPROVED CODE QUALITY: - Professional docstrings with proper typing - Consistent naming conventions - Reduced code duplication - Better error messages and logging OPTIMIZED IMPORTS: - Clean __init__.py with proper exports - Removed circular dependencies - Organized imports by category - Version 2.0.0 with upda…d16f985 -
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 -
Initial AI done
d448413