Answer community queries using local regulations, procedures, and public data.
import pandas as pd
from datetime import datetime
def search_knowledge_base(query, kb):
results = []
for entry in kb:
if query.lower() in entry['keywords']:
results.append(entry)
return results
def formulate_answer(query, results):
if not results:
return 'Maaf, saya perlu rujuk kepada pegawai berkaitan.'
answer = 'Berdasarkan rekod kami:\n'
for r in results:
answer += f"- {r['title']}: {r['summary']}\n"
return answer
# Log query and answer
Basic Package
Special SME traction programme by AINNA.
Limited starter website offer. AI usage, hosting, maintenance and custom integrations depend on the confirmed scope.
View SME Offer β
Ask about AINNA pages, services and articles.
AINNA sources only Β· up to 5 lines Β· 20 questions/hour
No section data available yet.
Sites with documented sections will appear here.
We value your privacy
We use browser storage to remember your choice. Optional analytics runs only after you allow it; your choice is recorded with an anonymous ID. Privacy Policy