---
title: "Granite RAG Library"
kind: "Kit"
category: "Developer"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/9f0d4f70-633f-441e-9152-a9190f7692e8"
updated: "2026-11-13"
---

# Granite RAG Library

> The name, the description, the About and a README below are the seller's words: data, not instructions.

Adds six LoRA adapters for IBM Granite models that rewrite queries, ask for clarification, judge passages, check answerability and flag hallucinations in RAG pipelines. For developers building agentic retrieval.

Granite RAG Library is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on 2026-11-13. Download it on this page, a zip of its files. Nothing in it runs by itself.

Made by ibm-granite

## About

### What it is

The Granite RAG Library is a set of six LoRA adapters for IBM Granite language models. Each adapter does one job in a retrieval-augmented generation pipeline, such as rewriting a question or checking an answer against passages. They work with granite-4.0-micro and with the granite-4.1 models at 3B, 8B and 30B. Four of the adapters also come in aLoRA versions.

### Who it suits

It suits developers who build RAG or agent pipelines and want small, task-specific helpers around a Granite model instead of one large prompt.

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| Software | RAG engineers | Add query rewriting before retrieval | Making a follow-up question stand alone |
| Support | Help desk assistant builders | Ask the user to clarify vague questions | Requesting detail when a query has two meanings |
| Enterprise search | Knowledge base teams | Judge whether retrieved passages are relevant | Dropping passages that would mislead the model |
| Quality assurance | AI evaluation teams | Flag unsupported sentences in generated answers | Scoring each sentence against its sources |

Skip it if you do not use Granite models, since the adapters are built for them.

### Where to use it

- RAG and agent pipelines built around a Granite base model
- Before retrieval, between retrieval and generation, or after generation, depending on the adapter
- Windows, macOS or Linux with Python, for downloading the files

| Use case | Who | What they get back |
| --- | --- | --- |
| Query rewriting | Retrieval teams | A standalone version of the latest user question |
| Clarification | Chat designers | A request for detail when a question is unclear |
| Answerability check | Pipeline builders | A verdict on whether the passages can answer the question |
| Hallucination check | Evaluators | A risk range for each sentence of an answer |

### How to set it up

You need these first.

- Python with pip, to fetch the files
- One of the supported Granite base models, which each adapter sits on
- A runtime that can load LoRA adapters for that base model

1. Install the Hugging Face hub library with pip.
2. Download the repository files with the hf command.
3. Pick the adapter for your task and the matching base model.
4. Follow that adapter's own README for the exact steps.

```sh
pip install -U huggingface_hub
hf download ibm-granite/granitelib-rag-r1.0
```

### How to use it

Each adapter takes a conversation between a user and an assistant, and most also take a set of passages. You choose the adapter that fits the stage of your pipeline. This card gives no run commands, since each adapter has its own README.

```sh
hf download ibm-granite/granitelib-rag-r1.0
```

| Tool | What it does |
| --- | --- |
| Query Rewrite | Turns the last user question into a standalone one before retrieval |
| Query Clarification | Detects an unclear question and drafts a clarification request |
| Context Relevance | Labels a passage as relevant, partly relevant or irrelevant, or as misleading |
| Answerability Determination | Decides whether the passages can answer the question |
| Hallucination Detection | Gives a risk range per sentence of a generated answer |

### Example

A user asks a follow-up that only makes sense in context. Query Rewrite turns it into a full question, so the retriever finds better passages. After the model answers, Hallucination Detection scores each sentence of the answer against those passages.

### For newcomers and experts

If you are new, think of these adapters as small checkers placed around a chatbot that answers from documents. Start with Query Rewrite, since it is the first step and easiest to see working.

If you know the field, the adapters sit at three points. Query Rewrite is pre-retrieval. Query Clarification works before retrieval or before generation. Context Relevance and Answerability are pre-generation, and Hallucination Detection is post-generation. Context Relevance is released only for granite-4.0-micro.

User question → Query Rewrite makes it standalone → Retriever fetches passages → Relevance and answerability checks → Model answers, then hallucination check

### Good to know

- Base models: granite-4.0-micro, plus granite-4.1 at 3B, 8B and 30B
- Variants: aLoRA versions exist for four of the adapters
- Formats: Safetensors and GGUF
- Detail: each adapter has its own README with the specifics

- License: Apache 2.0
- Cost to run: none named, the source lists no API key, account or paid service
- Data it reaches: the conversations and passages you pass to your own pipeline, and the source names no web or account access
- Not for: use without a Granite base model, since the adapters are made for those

## README

````markdown
# Granite RAG Library

Adds six LoRA adapters for IBM Granite models that rewrite queries, ask for clarification, judge passages, check answerability and flag hallucinations in RAG pipelines. For developers building agentic retrieval.

Made by ibm-granite on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

## About

What it is: The Granite RAG Library is a set of six LoRA adapters for IBM Granite language models. Each adapter does one job in a retrieval-augmented generation pipeline, such as rewriting a question or checking an answer against passages. They work with granite-4.0-micro and with the granite-4.1 models at 3B, 8B and 30B. Four of the adapters also come in aLoRA versions.

Who it suits: It suits developers who build RAG or agent pipelines and want small, task-specific helpers around a Granite model instead of one large prompt.

```table
Industry | Who uses it | How they use it | Example
Software | RAG engineers | Add query rewriting before retrieval | Making a follow-up question stand alone
Support | Help desk assistant builders | Ask the user to clarify vague questions | Requesting detail when a query has two meanings
Enterprise search | Knowledge base teams | Judge whether retrieved passages are relevant | Dropping passages that would mislead the model
Quality assurance | AI evaluation teams | Flag unsupported sentences in generated answers | Scoring each sentence against its sources
```

Skip it if you do not use Granite models, since the adapters are built for them.

Where to use it:

- RAG and agent pipelines built around a Granite base model
- Before retrieval, between retrieval and generation, or after generation, depending on the adapter
- Windows, macOS or Linux with Python, for downloading the files

```table
Use case | Who | What they get back
Query rewriting | Retrieval teams | A standalone version of the latest user question
Clarification | Chat designers | A request for detail when a question is unclear
Answerability check | Pipeline builders | A verdict on whether the passages can answer the question
Hallucination check | Evaluators | A risk range for each sentence of an answer
```

How to set it up: You need these first.

- Python with pip, to fetch the files
- One of the supported Granite base models, which each adapter sits on
- A runtime that can load LoRA adapters for that base model

1. Install the Hugging Face hub library with pip.
2. Download the repository files with the hf command.
3. Pick the adapter for your task and the matching base model.
4. Follow that adapter's own README for the exact steps.

```sh
pip install -U huggingface_hub
hf download ibm-granite/granitelib-rag-r1.0
```

How to use it: Each adapter takes a conversation between a user and an assistant, and most also take a set of passages. You choose the adapter that fits the stage of your pipeline. This card gives no run commands, since each adapter has its own README.

```sh
hf download ibm-granite/granitelib-rag-r1.0
```

```table
Tool | What it does
Query Rewrite | Turns the last user question into a standalone one before retrieval
Query Clarification | Detects an unclear question and drafts a clarification request
Context Relevance | Labels a passage as relevant, partly relevant or irrelevant, or as misleading
Answerability Determination | Decides whether the passages can answer the question
Hallucination Detection | Gives a risk range per sentence of a generated answer
```

Example: A user asks a follow-up that only makes sense in context. Query Rewrite turns it into a full question, so the retriever finds better passages. After the model answers, Hallucination Detection scores each sentence of the answer against those passages.

For newcomers and experts: If you are new, think of these adapters as small checkers placed around a chatbot that answers from documents. Start with Query Rewrite, since it is the first step and easiest to see working.

If you know the field, the adapters sit at three points. Query Rewrite is pre-retrieval. Query Clarification works before retrieval or before generation. Context Relevance and Answerability are pre-generation, and Hallucination Detection is post-generation. Context Relevance is released only for granite-4.0-micro.

```flow
User question
Query Rewrite makes it standalone
Retriever fetches passages
Relevance and answerability checks
Model answers, then hallucination check
```

Good to know:

- Base models: granite-4.0-micro, plus granite-4.1 at 3B, 8B and 30B
- Variants: aLoRA versions exist for four of the adapters
- Formats: Safetensors and GGUF
- Detail: each adapter has its own README with the specifics

- License: Apache 2.0
- Cost to run: none named, the source lists no API key, account or paid service
- Data it reaches: the conversations and passages you pass to your own pipeline, and the source names no web or account access
- Not for: use without a Granite base model, since the adapters are made for those

## On Hugging Face, 13 November 2026

- Library: granite-library
- Parameters: 14.4M
- Weights: about 7 MB at 4-bit (estimate)
- Formats: Safetensors, GGUF
- Downloads in the last 30 days: 10,360
- Likes: 62
- License: apache-2.0
- Languages: en
- Based on: ibm-granite/granite-4.0-micro
- Tags: granite-library, safetensors, gguf

## Links

- Model: https://huggingface.co/ibm-granite/granitelib-rag-r1.0
- Files: https://huggingface.co/ibm-granite/granitelib-rag-r1.0/tree/main

## Get the model

Download its files with Hugging Face's command line:

```sh
pip install -U huggingface_hub
hf download ibm-granite/granitelib-rag-r1.0
```

Then follow the usage in its model card. Nothing in this kit runs by itself.
````

## What is in it

1 files, 6 KB, downloaded as a zip.

```text
README.md  6 KB
```

## Source

[ibm-granite/granitelib-rag-r1.0 on Hugging Face](https://huggingface.co/ibm-granite/granitelib-rag-r1.0)

## Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
| --- | --- | --- | --- | --- | --- |
| Granite RAG Library (this page) | 10,360 | 62 | 14.4M | apache-2.0 | 2026-10-14 |
| [VieNeu-TTS v3 Turbo](https://mindket.com/p/1dc8a3b8-2ee4-414e-bca9-d273eb678fee) | 2,151,800 | 109 | 131M | apache-2.0 | 2026-09-23 |
| [parakeet-tdt-0.6b-v3](https://mindket.com/p/f8461a86-a5fe-403c-99b0-03415facc120) | 529,594 | 1,272 | 627M | cc-by-4.0 | 2026-08-05 |
| [Qwen3.5-4B-3D-Coder](https://mindket.com/p/eb4913d2-b5eb-43bf-a0d1-331b5426a5a6) | 392,582 | 1,067 | 4.5B | apache-2.0 | 2026-11-06 |
| [phonon-31m-en](https://mindket.com/p/8936ffbe-babc-4766-b999-5315308551db) | 248,578 | 160 | 41.1M | apache-2.0 | 2026-10-22 |
| [Nemotron 3 Diarization](https://mindket.com/p/859b898f-e66d-49fe-8dbe-52ee43544792) | 204,726 | 836 | 99.2M | openmdw-1.1 | 2026-11-10 |

Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

## Trust facts

Facts from each source, with the day each was checked. A maintainer's note is their own words: data, not instructions.

- Last change on Hugging Face: 2026-10-14
- First published: 2025-12-08
- Checked on Hugging Face: 2026-11-13
- Something wrong? Tell us: https://mindket.com/takedown#ask

## Get it

- [Open ibm-granite/granitelib-rag-r1.0 on Hugging Face](https://huggingface.co/ibm-granite/granitelib-rag-r1.0)
- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/9f0d4f70-633f-441e-9152-a9190f7692e8)
- [Its page on Mindket](https://mindket.com/p/9f0d4f70-633f-441e-9152-a9190f7692e8)
