Capability Analytic Tools
Bintulu PortBePACE

Bintulu Port HR Analytics

An AI-powered workforce intelligence platform combining three specialized AI engines for comprehensive HR data analysis, knowledge discovery, and document understanding.

vanna
edgequake
pageindex

System Architecture

Interactive 3D visualization — orbit to explore how the AI engines connect. Each node represents a component, edges show data flow.

Three AI Engines

Working together to answer any HR question from every angle

Vanna AI

Text-to-SQL Engine

Converts natural language questions into precise SQL queries. Trained on the HR database schema, it generates accurate queries, executes them, and returns results with explanations.

Natural language to SQL conversion powered by Gemini LLM
Self-correcting: auto-retries failed queries with error context
Trained on database schema, documentation, and example patterns
Returns data, explanation, and follow-up question suggestions
Continuously improves as more query patterns are learned

EdgeQuake

Knowledge Graph Engine

Builds and searches a knowledge graph of HR entities and relationships using Apache AGE. Maps connections between employees, departments, competencies, and organizational structure.

Graph-based entity and relationship mapping
Hybrid search: semantic + keyword + graph traversal
Ingests documents and extracts entities automatically
Powers the interactive 3D Knowledge Graph page
Connects employees, departments, competencies, and plans

PageIndex

Document Retrieval Engine

A vectorless, reasoning-based RAG system that builds hierarchical tree indexes from documents. Uses LLM reasoning to navigate document structure like a human expert — finding the most relevant sections with traceable evidence.

No vector database needed — uses document structure + reasoning
Hierarchical tree index preserves natural document organization
LLM navigates the index to find relevant sections intelligently
Returns evidence with specific citations and confidence scores
Auto-indexes uploaded documents for instant searchability

How a Question Gets Answered

1

User Asks a Question

Example: "Which department has the worst competency gaps and what does the original report say about them?"

2

Vanna Generates SQL

Converts the question to a precise SQL query, executes it against PostgreSQL, and returns structured data with department scores, gap values, and employee counts.

3

EdgeQuake Searches the Graph

Finds related entities in the knowledge graph — connected employees, reporting chains, competency relationships — providing contextual understanding.

4

PageIndex Searches Documents

Reasons over the hierarchical index of uploaded documents, navigates to the most relevant sections, and extracts evidence with specific citations.

5

AI Synthesizes the Answer

Gemini LLM combines data from all three sources — numbers from Vanna, context from EdgeQuake, evidence from PageIndex — into a comprehensive, data-driven response with charts.

Technology Stack

Frontend

  • Next.js 16
  • React 19
  • Tailwind CSS
  • Three.js / 3D Force Graph
  • Recharts

Backend

  • Node.js
  • Drizzle ORM
  • Flask (Python)
  • Gunicorn

AI / LLM

  • Gemini 2.5 Flash
  • Vanna AI
  • EdgeQuake
  • PageIndex
  • LiteLLM

Infrastructure

  • PostgreSQL + Apache AGE
  • Redis
  • Docker
  • Traefik (SSL)
  • SSH Tunnels

Bintulu Port Holdings Berhad · HR Analytics & AI Assistant Platform

Capability Development Framework Pilot Project