Ross ROSS = Recommend OSS · open-source software intelligence for agents

microsoft/KBLaM

Official Implementation of "KBLaM: Knowledge Base augmented Language Model" observed · 2026-08-28

github.com/microsoft/KBLaM · homepage · Jupyter Notebook · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

64/100

  • Activity 90
  • Release rhythm 35
  • Longevity 54

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 762
  • days_rel: n/a
  • days_push: 62
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1451 stars · 124 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Official implementation of KBLaM, a method for augmenting pre-trained LLMs with external knowledge by encoding a knowledge base into continuous key-value vectors integrated via a rectangular attention mechanism. It eliminates external retrieval modules and scales linearly with knowledge base size, supporting Llama and Phi-3 models.

Use cases

  • augment an LLM with a knowledge base without a retrieval module
  • integrate 10K+ knowledge triples into an 8B model on a single GPU
  • replicate the KBLaM paper experiments
  • generate synthetic QA datasets for knowledge-augmented training
  • dynamically update LLM knowledge without fine-tuning

When to choose

  • you want retrieval-free knowledge augmentation with linear scaling in KB size
  • you need to reproduce or extend the KBLaM research
  • you want to inject a large knowledge base into a small-context LLM

When to avoid

  • you need a production-ready RAG pipeline with mature tooling
  • your model architecture is not among the supported Llama/Phi-3 variants
  • you lack GPU resources for training

Facets

library · maturity active

machine-learning llm-training rag nlp large-language-models machine-learning artificial-intelligence python knowledge-base llm-augmentation research-code iclr-2025 microsoft retrieval-augmented-generation gpu

6 sources

Member repositories

RepositoryRoleHealth v2
microsoft/KBLaMmain64

For agents

markdown · JSON · MCP: product_card(name="microsoft/KBLaM")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem