Page cover

πŸ€–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?