๐Ÿงญ Akal-Embed: Ultra-Sharp Edge CPU RAG Embedding Model (GGUF Edition)

llama.cpp logo
Base Model GGUF Akal-1B CPU Inference

Akal-Embed (akal-embed-indo-q4_k_m.gguf, 119 MB) is an ultra-lightweight, high-precision dense text embedding model engineered specifically for on-device Retrieval-Augmented Generation (RAG) on GPU-less edge CPUs.

Calibrated with an Indonesian RAG Importance Matrix (imatrix_indo_e5_id.dat) on top of a hybrid BertModel + XLMRobertaTokenizer (118M parameters, 384 dimensions), Akal-Embed-Indo reduces disk size by 74.7% and RAM footprint by 42.7% compared to PyTorch FP32 while achieving 100.0% Recall@1 and MRR@10 across Indonesian, Paraphrase, Hard-Negative, and Cross-Lingual (English $\rightarrow$ Indonesian) retrieval benchmarksโ€”with a 4.6x wider Hard-Negative Semantic Margin (+0.2676) than standard multilingual-e5-small (+0.0573).

๐Ÿ“„ Academic Research Preprint Available (Vol. 2):
Read the complete 6-page scientific paper detailing Indonesian RAG importance matrix calibration, 4.6x sharper hard-negative margin (+0.2676), sub-15ms pure CPU latency, and full sovereign data compliance under UU PDP No. 27/2022:
๐Ÿ‘‰ Download Akal_Embed_RAG_Research_Paper.pdf | View in Files Tab


๐ŸŽฏ Intended Use & Capability Boundaries (Managing Expectations)

As a 118-Million Parameter Edge Embedding Model (119โ€“126 MB), Akal-Embed-Indo is purposefully engineered for extreme efficiency on CPU hardware with minimal memory footprints (< 520 MB RAM).

โœ… Recommended & Best-Suited Use Cases

  1. Local & On-Device RAG for Indonesian Enterprises & Government:
    • Offline semantic search over internal SOPs, manuals, municipal codes, and product catalogs.
    • Compliance with Indonesia's Personal Data Protection Act (UU PDP No. 27/2022) with zero data leaving local hardware.
  2. Sub-15ms Latency Query Processing on Pure CPU:
    • Single-query inference takes only 12โ€“14 ms on a standard Intel Core i5 CPU without requiring GPUs.
  3. Paired Full-Stack Edge RAG with Akal-1B:
    • Akal-Embed-Indo (119 MB) acts as the retriever and Akal-1B (762 MB) acts as the generator, creating a complete RAG system under 1 GB total RAM.

โŒ Out-of-Scope & Non-Recommended Use Cases

  1. Massive Web-Scale Web Retrieval (Millions of Documents):
    • 384-dimensional dense vectors are optimized for compact CPU speed and small-to-medium corpora (< 100,000 chunks). For web-scale retrieval across billions of documents, 1024-dimensional large models are recommended.
  2. Context Beyond 512 Tokens:
    • Maximum input sequence is 512 tokens. Long documents must be segmented into chunks (e.g., 300โ€“400 tokens with 50-token overlap).
  3. Universal 100+ Language Retrieval:
    • Specialized specifically for Indonesian and English $\rightarrow$ Indonesian cross-lingual retrieval. Not intended for low-resource global languages outside this domain.

๐Ÿ“Š Benchmark Results (Intel Core i5-8250U, 4 Threads, Pure CPU)

Evaluated on the Akal-Embed Indonesian & Cross-Lingual RAG Benchmark (40 multi-domain passages with hard-negative distractors, 30 queries):

Model Variant Backend / Precision Disk Size Peak RAM (RSS) Query Latency Recall@1 (All / Para) MRR@10 Semantic Margin ($d^+ - d^-$) Cosine Fidelity vs FP32
Akal-Embed-Indo Q8_0 (Ours) GGUF Q8_0 126.3 MB 519.0 MB 12.74 ms 100.0% / 100% 100.0% +0.2688 0.999495 (min: 0.999159)
Akal-Embed-Indo Q4_K_M (Ours) GGUF Q4_K_M (imatrix) 119.0 MB 515.8 MB 14.60 ms 100.0% / 100% 100.0% +0.2676 0.993366 (min: 0.990741)
all-indo-e5-small-v4 (Base) PyTorch FP32 470.0 MB 899.4 MB 13.34 ms 100.0% / 100% 100.0% +0.2694 1.000000
all-indo-e5-small-v4 (Un-calibrated) GGUF Q4_K_M (Std) 119.0 MB 515.8 MB 14.61 ms 100.0% / 100% 100.0% +0.2632 0.992652 (min: 0.987276)
all-indo-e5-small-v4 (Q5_K_M) GGUF Q5_K_M (Std) 126.3 MB 518.2 MB 13.85 ms 100.0% / 100% 100.0% +0.2681 0.998120 (min: 0.996840)
Akal-Embed-E5 Q4_K_M (Ours) GGUF Q4_K_M (imatrix) 119.0 MB 515.7 MB 14.31 ms 100.0% / 100% 100.0% +0.0573 0.998241
multilingual-e5-small (Base) PyTorch FP32 470.0 MB 867.6 MB 13.72 ms 100.0% / 100% 100.0% +0.0582 1.000000
all-MiniLM-L6-v2 (22.7M) PyTorch FP32 87.3 MB 495.8 MB 7.72 ms 60.0% / 0.0% 69.08% +0.1330 1.000000

๐Ÿš€ How to Run Akal-Embed (llama.cpp CLI)

Prefix queries with query: and documents/chunks with passage: :

./llama-embedding -m akal-embed-indo-q4_k_m.gguf \
  -p "query: Berapa batas waktu pelaporan kebocoran data menurut UU PDP?<#sep#>passage: Berdasarkan UU No. 27 Tahun 2022, pengendali data wajib melapor paling lambat 3x24 jam (72 jam)." \
  --embd-separator "<#sep#>" \
  --pooling mean \
  --embd-normalize 2 \
  --embd-output-format json+ \
  -t 4

๐ŸŽฎ Try It Out on Your Own Documents:
Download akal-embed-indo-q4_k_m.gguf (119 MB) and test semantic similarity on your own Indonesian text or internal company SOPs! We warmly welcome feedback, custom benchmark tests, and community discussion.


๐Ÿ“ฆ Files in this Repository

  • akal-embed-indo-q4_k_m.gguf (119 MB): Primary 4-bit Indonesian + Cross-Lingual RAG embedding model calibrated with imatrix_indo_e5_id.dat.
  • akal-embed-indo-q8_0.gguf (126 MB): 8-bit high-precision GGUF edition (0.999495 cosine fidelity vs FP32).
  • imatrix_indo_e5_id.dat (348 KB): Indonesian RAG activation importance matrix for encoder quantization.
  • Akal_Embed_RAG_Research_Paper.pdf (1.2 MB): Full bilingual research paper & benchmark evaluation (Vol. 2).

๐Ÿ“œ Citation

@article{baehaqi2026akalembed,
  title={Optimizing RAG Embedding Models on Edge CPUs: Indonesian Importance Matrix Calibration and Empirical Evaluation of Akal-Embed-Indo},
  author={Baehaqi, Muhammad Luqni},
  journal={Akal LM Research Preprint Series},
  volume={2},
  year={2026},
  publisher={Akal LM Initiative (akal-lm)},
  url={https://huggingface.co/akal-lm/Akal-Embed-GGUF}
}
Downloads last month
176
GGUF
Model size
0.1B params
Architecture
bert
Hardware compatibility
Log In to add your hardware

4-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for akal-lm/Akal-Embed-GGUF

Quantized
(2)
this model