NVIDIA-NeMo / NVIDIA-NeMo/Guardrails

bug: LLMRails has not attribute kb when trying to use Nemo Guardrails with Langgraph

Open
#1,665 2 comments 0 reactions 1 assignee View on GitHub

@Pouyanpi is already working on this.

Since Mar 30, 2026.

bug status: needs triage
Dominant language
Python
Stars
7.2k
Forks
842
Avg merge
3d 1h
Merged PRs (30d)
25

Description

Did you check docs and existing issues?
  • I have read all the NeMo-Guardrails docs
  • I have updated the package to the latest version before submitting this issue
  • (optional) I have used the develop branch
  • I have searched the existing issues of NeMo-Guardrails
Python version (python --version)

Python 3.12.3

Operating system/version

Linux

NeMo-Guardrails version (if you must use a specific version and not the latest

0.16.0 onwards

Describe the bug

AttributeError: 'LLMRails' object has no attribute 'kb'

config = RailsConfig.from_path(guardrail_config_path)
guardrails = RunnableRails(config=config, passthrough=True, verbose=False)
model_with_rails = guardrails | model
response = model_with_rails.invoke([HumanMessage(content=prompt)])

official langchain integration also returning same error

Steps To Reproduce

config = RailsConfig.from_path(guardrail_config_path)
guardrails = RunnableRails(config=config, passthrough=True, verbose=False)
model_with_rails = guardrails | model
response = model_with_rails.invoke([HumanMessage(content=prompt)])

Expected Behavior

It should return a response

Actual Behavior

AttributeError: 'LLMRails' object has no attribute 'kb'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.