π€Multi-AI Agent
.
βββ agents/ # π§ Modular AI agents for handling NLP tasks
β βββ IntentAgent.ts # Detects user intent from text
β βββ EntityAgent.ts # Extracts Malaysian-specific HR entities
β βββ KnowledgeAgent.ts # Retrieves relevant HR policies or responses
β
βββ nlp/ # π€ Core natural language processing utilities
β βββ tokenizer.ts # BM/English tokenization logic
β βββ classifier.ts # Intent classification model interface
β βββ preprocessing.ts # Text normalization and language checks
β
βββ config/ # βοΈ Environment variables and system flags
β βββ default.json # Default configuration values
β βββ env.sample # Template .env file
β
βββ entities/ # ποΈ Custom entity extractors (IC, EPF, universities, etc.)
β βββ universities.json # Malaysian university patterns
β βββ epf.yaml # EPF-related values
β βββ roles.yaml # Job title patterns
β
βββ intents/ # ποΈ Intent schemas and classification examples
β βββ apply_leave.json # Intent for leave requests
β βββ payslip_request.json # Intent for payslip requests
β βββ resignation.json # Intent for resignation procedures
β
βββ knowledge/ # π HR knowledge base for Q&A or retrieval-augmented models
β βββ policies.md # General HR policies
β βββ faq.yaml # Common HR-related FAQs
β βββ immigration.pdf # Employment pass rules (Malaysia)
β
βββ legal/ # βοΈ Legal compliance docs and templates
β βββ contract_templates/ # Offer letters, NDA, etc.
β βββ industrial_relations.md
β βββ precedent_cases.json # Legal references for IR/ER
β
βββ pipelines/ # π NLP processing pipelines and logic chaining
β βββ mainPipeline.ts # Core processing sequence
β βββ taxPipeline.ts # Tax + Zakat-specific logic
β βββ onboardingPipeline.ts # For new employee flow
β
βββ responses/ # π¬ Localized response templates (BM + EN)
β βββ en.json # English responses
β βββ bm.json # Bahasa Malaysia responses
β βββ templates.yaml # Dynamic response generators
β
βββ roles/ # π₯ Role-based logic and user permissions
β βββ employee.ts # Basic employee permissions
β βββ hr_manager.ts # HR manager overrides
β βββ admin.ts # System-level privileges
β
βββ README.md # π Project overview, setup, and architecture
βββ nlp_orchestrator.ts # π§© Main controller that routes text through agents and pipelines
βββ AgentFactory.ts # π Factory pattern to instantiate and register all agents
Last updated
Was this helpful?

