Knowledge Base & Architecture Clarifications

Frequently Asked Questions

Comprehensive answers addressing Project Pak-LLM's sovereignty model, tokenization technology, infrastructure requirements, and financial targets.

Project Pak-LLM (pak-llm.com) is Pakistan's sovereign, high-performance artificial intelligence ecosystem. It features native Nastaliq tokenization (95% token savings), a hybrid sovereign architecture with domestic control plane, an Islamic ethical alignment framework (Amanah Gate under Maqasid al-Shariah), and a comprehensive agentic workflow ecosystem.

Global foundational AI models often route sensitive corporate, legal, and citizen data through foreign servers with uncontrolled data retention. Pak-LLM couples a sovereign domestic control plane (Amanah Gate PII redaction, local tenant isolation, and cryptographic audit ledgers) with enterprise zero-data-retention inference backends, ensuring compliance with the Draft Pakistan PDPB, PECA 2016, and international privacy benchmarks.

The Amanah Gate is an automated ethical policy interceptor built directly into Pak-LLM's inference and tool-calling pipeline. Grounded in Maqasid al-Shariah (preservation of faith, life, intellect, lineage, and wealth), it strictly blocks usury (Riba), deceptive transactions (Gharar), forged invoices, and gambling (Qimar), while enforcing PII masking and halal trade compliance.

Pak-LLM natively embeds the complete Holy Quran Canonical Index (all 114 Surahs with translations across 14 languages) and the Authentic Kutub al-Sittah Hadith Compendium (Sahih al-Bukhari, Sahih Muslim, Sunan Abu Dawud, Jami` at-Tirmidhi, Sunan an-Nasa'i, Sunan Ibn Majah, Muwatta Malik, Riyad as-Salihin, 40 Hadith an-Nawawi, and Sahih Hadith Qudsi). Queries return verified Arabic text, authentic Sanad narrators, and Fiqh context without model hallucination.

All Islamic financial calculations, commerce rulings, and ethical guidelines are validated against Darul Uloom Karachi Shariah standards. The Amanah Gate prevents interest-bearing (Riba) calculations and deceptive (Gharar) commercial workflows, while complex legal fatwas are transparently referenced to established classical jurisprudence.

Visit /video-chat to speak live with Zara—a hyper-realistic Pakistani female executive AI avatar in Hijab—coupled with Pak-LLM's Sovereign Voice AI, Multi-Agent Orchestra Council, 16 MCP Tools, OAuth Connectors, and HITL-gated Workflows. It enforces OWASP LLM & Agentic ASI01–ASI10 controls, NIST AI RMF & SP 800-88 Zero-Data Retention, ISO/IEC 42001/27001/27701/30107-3 alignment, C2PA 2.1 synthetic provenance, and SGS Stage 1/2 audit readiness.

Pak-LLM implements standard Model Context Protocol (MCP 1.0) tool interfaces. This allows autonomous AI agents to interact with external enterprise systems via bilingual English and Urdu parameter schemas. Available connectors include Google Workspace (Docs, Sheets, Gmail), Microsoft 365 (Outlook, Excel), WhatsApp Business Cloud, and localized Pakistani business platforms.

Pak-LLM provides native MCP connectors for major domestic logistics couriers (TCS, Leopards, Trax consignment booking and real-time tracking), Daraz Open API / Seller Center product and inventory management, FBR POS digital tax invoice verification, SBF-BERP ERP systems, and Darul Uloom verified Fatwa RAG reference retrieval.

Pak-LLM includes a secure, memory-bounded, and network-isolated Python 3 analytical sandbox. Enterprise users can execute mathematical algorithms, data analysis, and financial forecasting with zero risk of external network exfiltration or OS-level security compromises.

Pak-Workflows is a custom no-code event-driven automation engine that enables users and businesses to construct automated multi-step pipelines: [Trigger] ➔ [Condition] ➔ [Pak-LLM Reasoning] ➔ [Action(s)]. It supports scheduled timers, inbound webhooks, manual triggers, and chat event triggers.

For high-risk or financial actions (such as booking parcel consignments, generating legal invoices, or executing database writes), the workflow state machine automatically suspends execution in a 'pending_approval' state, generating an authenticated approval modal with cryptographic audit logs before resuming.

Yes. Pak-Workflows features an AI-powered workflow synthesizer that translates natural Urdu or English instructions into validated multi-step automation state machines with appropriate trigger, condition, and tool connector mappings.

Pak-LLM provides specialized sovereign domain personas with tailored system instructions, statutory references, and default toolsets. Built-in sovereign skills include Sovereign Legal & Contract Drafter (Pakistan Contract Act 1872), FBR Tax Consultant, Darul Uloom Shariah Advisor, Pak-Commerce & Daraz Specialist, and Python Data Science Lab.

Users can upload and pin reference files (PDF contracts, corporate policies, financial spreadsheets, tax schedules) into a project knowledge base. Pak-LLM's context manager automatically estimates token budgets and injects relevant excerpts into the LLM system prompt for grounded, hallucination-free answers.

Yes. Through the Skills Studio (/skills), users can create custom prompt personas, specify recommended MCP tools, define bilingual suggested prompts, and tag them for personal or team workspace use.

Pak-LLM currently secures credentials with AES-256-GCM authenticated encryption and signs workflow records with HMAC-SHA3-512 integrity tags, over TLS 1.3 transport. Post-quantum algorithms (NIST FIPS 203 ML-KEM and FIPS 204 ML-DSA) are on the migration roadmap but are not implemented today, so no FIPS 203/204 conformance is claimed.

Sensitive third-party credentials (WhatsApp tokens, Daraz API keys, FBR certificates) are sealed in an AES-256-GCM authenticated encrypted vault. The vault key is derived from a server-held master secret; there is no ML-KEM envelope.

Pak-LLM provides 15+ pre-integrated connectors allowing AI agents to perform real actions across Notion API (Workers & Agents), Shopify Plus Stores (custom distribution & webhooks), WhatsApp Business Cloud (Graph v26), Gmail, Google Sheets, Trax/TCS logistics couriers, Daraz Open Platform, and FBR IRIS APIs, with instant live or sandbox testing.

Pak-LLM connects directly to the official Notion API & Workers runtime (ntn.dev) for inserting pages, querying databases, and subscribing to 28 live webhook events. For Shopify merchants, Pak-LLM runs as an official Partner App (pak-llm-1) with custom Plus multi-store installation, order webhooks (2026-07), storefront App Proxy (/apps/pak-llm), and automated Trax/TCS courier tracking.

The Sovereign RAG Engine stores document chunks inside isolated enterprise vector storage namespaces with bilingual Urdu/English token indexing. Data never leaves your tenant boundary and queries complete with sub-100ms hybrid semantic accuracy.

Yes. Public MCP tools (Search, Fetch Tools, Database Sandbox, Trax Logistics, FBR Tax RAG) are pre-loaded in the public hub for one-click selection in workflows and chat.

The governed catalog covers Microsoft 365 (Outlook, Teams, OneDrive, SharePoint, Word, Excel, PowerPoint, OneNote, Planner, To Do, Loop, Forms, Power Automate, Dynamics 365, Viva Engage), email (Gmail, Outlook, Yahoo Mail, Proton Mail, Apple Mail, Zoho Mail, Thunderbird, Fastmail, iCloud Mail), productivity (Google Docs/Sheets/Slides/Drive/Calendar/Tasks, Notion, Slack, Discord, Asana, Trello, Airtable, Todoist, Obsidian, Jira, Dropbox, Zoom, ClickUp, monday.com, Confluence, Miro, Calendly) and social (Facebook, Instagram, Threads, Messenger, WhatsApp Business, X, LinkedIn, YouTube, TikTok, Telegram, Reddit, Pinterest, Snapchat, WeChat). A catalog entry is a policy map, not a claim that every app has a live API connector.

Read-only work: searching, reading visible content, summarising threads or documents, extracting action items, drafting (without sending), and planning. Sending, posting, publishing, replying, commenting, sharing, uploading, editing, deleting, inviting, scheduling, recording or changing settings requires an explicit Approve & Run action.

Bulk or unsolicited email, mass DMs, mass posting, automated follows/likes/comments/votes, fake reviews, engagement manipulation, connection-request farming, scraping contacts/followers/members/private messages, impersonation, fake accounts, harassment, threats, doxxing, non-consensual imagery, credential/OTP/card capture, platform-security bypass, and promotion of riba, gambling, alcohol, narcotics or pornography.

Pak-LLM enforces adab: no gheebah (backbiting), buhtan (slander), namimah (tale-carrying), mockery, baseless suspicion or spreading immorality (Quran 49:11-12, 24:19; Sahih Muslim 2564). It protects satr and consent (Quran 24:27-28, 4:58), requires verification before sharing news (Quran 49:6, 17:36), and refuses haram promotion such as riba, gambling, alcohol or narcotics.

Open /docs/apps for the full governed app guide with allowed tasks, approval-required writes, blocked actions, setup, usage and FAQs. Developers can query GET /api/apps/catalog and check a proposed action with POST /api/apps/policy.

Windows 11 (23H2 or later recommended) is the supported desktop surface: 64-bit, 4 GB RAM minimum (8 GB recommended), 500 MB free space, and the official Microsoft Store listing. Windows 10 22H2 may still run but is legacy: it reached end of support on 14 October 2025, so Windows 11 and current security updates are strongly recommended. Normal chat, voice, RAG and same-window Co-Exec do not need administrator rights; UAC, elevated windows, Defender and firewall changes are blocked.

macOS requires Screen Recording for Co-Exec to see the screen or window you explicitly share, and Accessibility for the desktop bridge to send approved mouse and keyboard events. Both are controlled by you in System Settings > Privacy & Security and can be revoked at any time. Pak-LLM never asks you to disable Gatekeeper, SIP, FileVault or MDM policy, and it does not distribute unsigned DMGs or ZIPs.

No. iOS/iPadOS and Android sandbox apps from each other, so one app cannot click or type inside another app. Pak-LLM provides step-by-step guidance, analyses content you deliberately share into the app, and prepares drafts, but you perform the taps in the other app. There is no hidden accessibility-service or background screen control.

Open /docs/platforms for Windows 10/11, macOS, iPhone/iPad, Android, Linux and web/PWA requirements, installation, permissions, Co-Exec capabilities, hard limits and FAQs. Official store links are on /download; Pak-LLM does not provide direct APK, IPA, MSI, DMG or ZIP links.

Pak-LLM provides 9 purpose-built tiers: 1. Awaam Sovereign (Free Forever - ₨ 0, 1 API Key, 1 Webhook); 2. Talib-e-Ilm Scholar (₨ 650/mo - MDCAT/ECAT, 2 API Keys, 2 Webhooks); 3. Hunar-Mand Freelancer (₨ 1,450/mo - Upwork/Fiverr & Image Generation, 5 API Keys, 5 Webhooks); 4. Tajir Daraz Merchant (₨ 2,950/mo - Daraz sync & Trax dispatch, 10 API Keys, 10 Webhooks); 5. Karobar SME & Tax Master (₨ 4,850/mo - FBR IRIS, 25 API Keys, 25 Webhooks); 6. Aalim Shariah Suite (₨ 3,500/mo - Fiqh RAG & Wirasat, 5 API Keys, 5 Webhooks); 7. Vakeel Legal Chamber (₨ 5,900/mo - Contract Act 1872 RAG, 10 API Keys, 10 Webhooks); 8. Madrasah & Campus Edu-BERP (₨ 9,500/mo - 50 seats, 50 API Keys, 50 Webhooks); 9. Gulf/MENA Sovereign Enterprise (Custom Quote - Unlimited API Keys & Webhooks). Switch to Annual billing for 20% discount.

Pak-LLM natively supports instant domestic checkout via Swich, JazzCash, EasyPaisa, Raast QR transfers, Payoneer, Visa, MasterCard, and Apple Pay with automated cryptographic ledger receipt verification.

Yes. Every subscription checkout and recharge event is cryptographically mined as an immutable block on Pak-LLM's sovereign public ledger with automated email receipts.

Administrators and developers can navigate to the Admin Dashboard (/admin ➔ Developer API & Webhooks) to create scoped API keys. You can specify a custom key name, grant granular RBAC permissions (chat:completions, embeddings, models:read, admin:all), set custom rate limits (RPM), and assign optional IP restrictions. Raw keys are hashed with one-way SHA-256 upon creation.

Pak-LLM provides standard high-throughput endpoints compatible with OpenAI-style client libraries: POST /api/v1/chat/completions (with full streaming and tool execution support), POST /api/v1/embeddings (for localized bilingual vector representations), and GET /api/v1/models (listing active sovereign foundation models).

Webhooks dispatch real-time JSON payloads to your destination HTTPS endpoint when platform events occur. Supported events include chat.completed, workflow.triggered, workflow.completed, workflow.failed, courier.dispatched, and voice.call_ended. You can test endpoints instantly with simulated test payloads and inspect full delivery response headers and status codes in the Admin Audit Ledger.

Every outbound webhook request includes an 'x-pakllm-signature-256' header computed as 'sha256=' + HMAC-SHA256(payloadRawString, webhookSecret) and an 'x-pakllm-timestamp' header. On your server, compute the HMAC-SHA256 hash using your stored webhook signing secret and verify with crypto.timingSafeEqual to prevent spoofing and replay attacks.

Pak-LLM REST endpoints use standard JSON over HTTPS and can be consumed in TypeScript/Node.js, Python, cURL, Go, PHP, Rust, Java, and C#. Because the chat completions endpoint adheres to standard schema conventions, you can easily use the official OpenAI Python/TypeScript SDK by pointing the baseURL to 'https://pak-llm.com/api/v1'.

Traditional Western LLMs use English-biased vocabularies that fragment Perso-Arabic characters in Urdu, Sindhi, and Pashto into 6 to 9 byte-level tokens per single word instead of 1 token. This causes an 800% token cost inflation and severe inference latency penalties for regional users.

A custom Urdu BPE tokenizer directly represents full words and frequent morpho-syntactic ligatures as single vocabulary tokens. By compressing Urdu text from 8 tokens/word down to 1.2 tokens/word, token count is reduced by up to 85%, cutting API inference costs by 6.5x and increasing generation throughput dramatically.

Foreign cloud-based LLMs present severe data sovereignty risks, including data transit through international cables, potential model retraining on proprietary prompts, and vulnerability to foreign jurisdiction subpoenas (e.g. US CLOUD Act). Private on-premise or sovereign domestic deployments eliminate these exposures through local tenant isolation and hardware encryption.

To deploy an on-premise sovereign LLM in Pakistan: 1) Deploy dedicated domestic enterprise nodes behind corporate firewalls; 2) Activate sovereign local inference; 3) Secure network endpoints with TLS 1.3 and the AES-256-GCM credential vault; 4) Connect local tenant databases with private RAG; and 5) Enforce Amanah Gate ethical, Shariah, and PII redaction guardrails.

The best LLM for Urdu is a localized foundation model fine-tuned on native Nastaliq corpora with custom BPE tokenization, such as Pak-LLM. Unlike translated models, it natively understands Pakistani cultural idioms, Islamic jurisprudence, provincial tax codes, and regional dialects (Sindhi, Pashto, Punjabi, Balochi, Saraiki).

Data sovereignty is a non-negotiable legal requirement for regulated sectors like banking, telecom, defense, and healthcare. Regulatory bodies (such as SBP and PTA) restrict off-shoring of sensitive financial and citizen records. Sovereign AI infrastructure allows regulated organizations to deploy generative AI without violating data residency mandates.

Yes. Pak-LLM integrates specialized character mapping and unicode ligature tokenization specifically engineered for the Nastaliq calligraphic style, ensuring high OCR accuracy, document intelligence parsing, and correct bidirectional RTL rendering without glyph corruption.

Urdu RAG works by ingesting native Urdu documents (PDF contracts, tax circulars, Fatwas), splitting them into semantic chunks using bilingual tokenizers, indexing them into a secure private vector store, and retrieving the most relevant statutory excerpts to ground the LLM's response with zero hallucination.

Pakistani banks deploying AI must comply with the State Bank of Pakistan (SBP) Framework for Cloud Outsourcing, ensure domestic customer data residency, enforce Role-Based Access Control (RBAC), provide audit logs, sanitize PII (CNIC/accounts), and adhere to the Draft Pakistan Personal Data Protection Bill (PDPB).

Pak-LLM adapts to regional languages by: 1) Expanding language representations with native Nastaliq and regional script subwords; 2) Curating verified domestic cultural and domain knowledge corpora; 3) Employing specialized parameter-efficient adaptation; and 4) Rigorously evaluating against Islamic ethics and local legal frameworks.

English-centered tokenizers lack vocabulary allocations for right-to-left Perso-Arabic Unicode blocks. They treat each Urdu character as multiple individual raw UTF-8 bytes, leading to severe fragmentation, context window exhaustion, and distorted semantic attention mechanisms.

On-premise AI inference removes round-trip intercontinental WAN network hops (e.g. Karachi to US/Europe: 180–250ms ping) down to local LAN latency (sub-5ms). Coupled with optimized stream inference, response streaming begins in under 100 milliseconds.

Public AI (like generic commercial web chatbots) operates on shared foreign infrastructure with global data collection and centralized governance. Sovereign AI operates on dedicated domestic infrastructure with strict national data residency, local language optimization, and governance aligned with domestic ethical values.

Air-gapped AI implementation involves deploying self-contained hardware in physically isolated server rooms with zero external internet connectivity. Model systems, tokenizers, private knowledge bases, and tools run entirely locally with hardware security modules and cryptographic verification.

Multi-User packages (such as SME 10-Seat Workspace, Campus 50-Seat Edu-BERP, and Sovereign Enterprise Hub) create a collaborative workspace where an organization receives a pooled monthly token quota (e.g. 50,000,000 to 75,000,000+ tokens) and dedicated seats for team members or students. Each user logs in with their own account while sharing workspace resources.

Workspace owners can assign granular roles: Admin (manage billing, invite/revoke seats, view usage logs), Editor (create and edit shared workflows, upload RAG collections), and Viewer (query models, run workflows, and execute tools).

Yes! Any RAG collection or workflow designated as 'Workspace Shared' is immediately accessible by all authenticated team members without needing to re-upload files or duplicate configurations.

All seats are consolidated into one unified monthly or annual billing cycle payable via Raast QR, EasyPaisa, JazzCash, or Corporate Credit Card. Single consolidated FBR-compliant tax invoices are automatically generated for corporate accounting.

All three models share the same 128,000-token context window, Nastaliq BPE tokenizer, custom personas, MCP connectors, and zero-hallucination Quran/Hadith/Tafseer guardrails, but scale in reasoning depth and token multiplier: v1.0 Genesis (1.0x multiplier, PKR 950/mo dedicated plan) is optimized for everyday chat and student study; v2.0 Azaadi (2.0x multiplier, PKR 2,850/mo) handles commercial legal drafting, FBR tax computation, and multi-app workflows; v3.0 Ummah (3.0x multiplier, PKR 6,500/mo) delivers flagship multi-step reasoning, deep code synthesis, and 6-agent Orchestra coordination.

Inside Chat (/chat), simply ask Pak-LLM to generate a Word document (.docx), Excel spreadsheet (.xlsx), PowerPoint presentation (.pptx), or PDF report in English or Urdu. Pak-LLM renders an interactive Document Artifact card with a live preview, integrity hash, and instant one-click download.

The FBR Tax Suite (/tax) calculates FY 2025-26 salary/business income tax slabs, analyzes Active Taxpayer List (ATL) vs. Non-Filer withholding rates, assists with IRIS 2.0 wealth reconciliations, and verifies FBR POS QR invoices (POS ID 821824 / C417C65F). The REA Reverse Engineering Studio (/reverse-engineer) provides 6 specialized workspaces: Decompiler & AST Analyzer, Binary/Hex & Protocol Inspector, Legacy-to-Modern Code Migrator, API & Schema Extractor, Dependency & Vulnerability Graph, and Clean-Room Specification Generator.

Pak-LLM Coder (/coder) is our sovereign agentic software engineering suite powered by PakLLM_Coder (pak-coder-32b). It includes the Web IDE (OpenVSCode), Desktop IDE (Void fork), Mission Control Cockpit (OpenHands), CLI Agent (@pak-llm/coder-cli), and Programmatic SDK (@pak-llm/coder-sdk / pakllm-coder). Subscriptions start at PKR 3,000/month with zero telemetry leakage and optional air-gapped self-hosting.

If your monthly package token balance reaches zero before your renewal date, Pak-LLM's Emergency Daily Auto-Replenishment automatically grants (Monthly Package Quota ÷ 30) tokens every 24 hours at no extra charge until your next billing cycle, ensuring you are never locked out of critical work.

Click the Lock icon in the Chat header to enable Workspace App Lock. You can set a 4-to-8 digit PIN (hashed via PBKDF2-SHA512 with 100,000 iterations) and register a hardware WebAuthn Biometric Passkey (Windows Hello, TouchID, FaceID, or YubiKey). You can also configure an idle auto-lock timer (1, 5, 15, or 30 minutes) and recover access via email OTP if needed.

Yes. Companies and clients can purchase API and Webhook access on mutually agreed plans. Once approved, you receive a private client portal assigned to your company or personal email where you can enter your own company data, general and special instructions, safety rules, and guidelines, and link your systems easily.

Every client portal is issued only after approval and is protected by your chosen password, 2-step verification (2FA), and App Lock. Your business rules, instructions, and data stay strictly private to your own account and are never shared with other companies or used to train our AI models.

Every approved client portal includes simple step-by-step guides, 100 real-world business examples (such as Call Center Voice AI agents and HR Video AI screening interviews), and a built-in Pak-LLM v2.0 helper chatbot that walks your team through setup in plain English, Urdu, or Roman Urdu.