NeMo Guardrails as a traversable knowledge graph — 50 nodes, MCP-native, free
Project description
ckg-nvidia-guardrails
NeMo Guardrails as a traversable knowledge graph.
50 nodes · MCP-native · free · Graphify.md
pip install ckg-nvidia-guardrails
uvx ckg-nvidia-guardrails
The problem this solves
NeMo Guardrails rails govern conversation flow — but the tool fleet executes entirely outside the railed channel. There is no mutual visibility between config.yml rails configuration and tool/action bindings.
This means:
- Auto-approved shell-capable tools bypass guardrails entirely
- Outgoing responses from tool calls leave un-railed
- Rails config and tool config exist as separate files with no declared relationship
This knowledge graph maps those relationships explicitly. Query the Tool Authorization Gap node to traverse what's railed vs what isn't:
query_ckg('Tool Authorization Gap', 'nvidia-guardrails', 3)
What's covered (50 nodes)
| Domain | Nodes |
|---|---|
| Rails Architecture | NeMo Guardrails · Dialog Flow Manager · Input/Output/Dialog/Retrieval Rails |
| Colang Language | Colang 1.0 · Colang 2.0 · Flow · Message · Context Variables · Event System |
| Configuration | config.yml · Models · Rails · Actions · Prompts · Generation Options |
| Actions & Tools | Custom Actions · Python Actions · Action Server · Tool Bindings · Tool Authorization Gap |
| Rail Implementations | Jailbreak Detection · Hallucination Detection · Sensitive Data · Moderation · Topical Rails |
| Integrations | LangChain · LlamaIndex · NIM · Custom LLM Provider · OpenAI-Compatible API |
| Observability | Logging · Colang Tracing · Rail Testing · NemoGuardrails CLI |
| Deployment | Guardrails Server · REST API · Streaming Support |
MCP tools
| Tool | Description |
|---|---|
list_domains() |
List available domains |
search_concepts(query) |
Find concepts by keyword |
query_ckg(concept, depth) |
Traverse from any concept outward |
get_prerequisites(concept) |
Full upstream dependency chain |
ask_guardrails(question) |
Natural-language Q&A (requires local Ollama) |
Add to Claude Desktop
{
"mcpServers": {
"nvidia-guardrails": {
"command": "uvx",
"args": ["ckg-nvidia-guardrails"]
}
}
}
Benchmark
11× fewer tokens than RAG · F1 0.471 vs RAG 0.123 · 269 tokens/query vs 2,982
Full paper: github.com/Yarmoluk/ckg-benchmark/blob/main/paper/main.pdf
EVAL
benchmark: ckg-benchmark v0.6.2
dataset: huggingface.co/datasets/danyarm/ckg-benchmark
benchmarked: false
rag_baseline_f1: 0.123
graphrag_baseline_f1: 0.120
mean_tokens: 269
paper: github.com/Yarmoluk/ckg-benchmark/blob/main/paper/main.pdf
Built by Graphify.md · MIT License · Patent pending
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ckg_nvidia_guardrails-0.1.0.tar.gz.
File metadata
- Download URL: ckg_nvidia_guardrails-0.1.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cb72af1119d23e7e8a1def570ff38a63ffad95dd17d281e9d2fe1e5f636ea55
|
|
| MD5 |
f1d266915668e63106b830a7acad1b84
|
|
| BLAKE2b-256 |
7d47e41fa6790bb3c13dc43cff2e5cbc5870bdfb00c70bff5deedc7b67d91471
|
File details
Details for the file ckg_nvidia_guardrails-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ckg_nvidia_guardrails-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
232ec140fab9855eea702ed76cb60641c307704ffaba55318f19fb5977894240
|
|
| MD5 |
29daf711674cfc7d7c4bf0afe4053cae
|
|
| BLAKE2b-256 |
a23a793a7d96fae3b93f409bd40f40ea04a52aee25f46145e6e48e1b9a9eccfd
|