Skip to main content

Bemba AI - Intelligent Assistant

Bemba AI is an intelligent conversational assistant integrated into the PCH-SIG application. It allows users to explore data through natural language queries and file grievances via guided voice conversation.

Overview

┌─────────────────────────────────────────────────────────────────────────────┐
│ BEMBA AI │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────────────────────────────────────────────────────────────┐ │
│ │ "How many households in the Oio region?" │ │
│ │ [Mic] [Send] │ │
│ └──────────────────────────────────────────────────────────────────────┘ │
│ │
│ ┌──────────────────────────────────────────────────────────────────────┐ │
│ │ 🤖 Bemba: │ │
│ │ There are **2,450 households** in the Oio region, spread across │ │
│ │ 12 sectors. Farim sector has the most households (523). │ │
│ │ [🔊] │ │
│ └──────────────────────────────────────────────────────────────────────┘ │
│ │
│ Suggestions: [Statistics] [Households] [Payments] [File grievance] │
│ │
└─────────────────────────────────────────────────────────────────────────────┘

Main Features

FeatureDescription
Natural language queriesAsk questions in French, Portuguese, English or Creole
Speech synthesisListen to responses read aloud
Speech recognitionSpeak instead of typing
Grievance filingFile a grievance through guided conversation
Map integrationResults can be displayed on the map

Supported Languages

LanguageCodeExample question
FrenchFR"Combien de beneficiaires actifs ?"
PortuguesePT"Quantos agregados na regiao de Oio?"
Creole (Kriol)CR"Kantu agregadu na Oio?"
EnglishEN"How many households in Bafata?"

Accessing Bemba AI

  1. Open the GIS Map
  2. Click on the Bemba mascot in the bottom right
  3. The assistant opens in a floating panel

Interface Controls

IconAction
🎤Activate speech recognition
🔊Enable/disable voice reading
🗑️Clear conversation history
Minimize assistant
Close assistant

Types of Questions

General Statistics

"How many households in total?"
"What is the number of active beneficiaries?"
"Payment statistics for last month"

Geographic Questions

"How many households in the Oio region?"
"What are the sectors in Bafata?"
"List of localities in Farim sector"

Payment Questions

"Total payment amount for cycle C015?"
"How many pending payments?"
"Telecel payment success rate"

Grievance Questions

"How many open grievances?"
"Grievances past SLA deadline"
"Grievance statistics by type"

Quick Suggestions

Suggestion buttons are available for common queries:

ButtonAction
StatisticsShows global statistics
HouseholdsInformation about households
PaymentsPayment statistics
File grievanceStarts grievance filing mode

Response Formatting

Bemba AI formats responses with:

  • Bold text for important numbers
  • Italic text for clarifications
  • Bullet lists for enumerations
  • Tables for structured data

Technical Architecture

Bemba AI Architecture

Privacy

  • Conversations are stored locally in the browser
  • Only the last 50 messages are kept
  • No conversation data is sent to third parties
  • SQL queries are executed in read-only mode

Best Practices

:::tip Usage Tips

  1. Be specific: "households in Oio" rather than "households"
  2. Use suggestions: They cover common queries
  3. Enable voice: Useful for users unfamiliar with keyboards
  4. Verify results: AI may sometimes misinterpret :::

Limitations

  • Read-only queries (no data modification)
  • Requires internet connection for AI queries
  • Speech recognition depends on browser (Chrome recommended)
  • Creole (Kriol) uses a Portuguese voice (approximation)