anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
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 . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download ibm-granite/granitelib-rag-r1.0
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.
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.
| 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 |
You need these first.
pip install -U huggingface_hub hf download ibm-granite/granitelib-rag-r1.0
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.
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 |
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.
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.
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.
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:
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.
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.
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:
Download its files with Hugging Face's command line:
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.
README.md 6 KB
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 | |
| VieNeu-TTS v3 TurboShares gguf · safetensors | 2,151,800 | 109 | 131M | apache-2.0 | |
| parakeet-tdt-0.6b-v3Shares gguf · safetensors | 529,594 | 1,272 | 627M | cc-by-4.0 | |
| Qwen3.5-4B-3D-CoderShares gguf · safetensors | 392,582 | 1,067 | 4.5B | apache-2.0 | |
| phonon-31m-enShares gguf · safetensors | 248,578 | 160 | 41.1M | apache-2.0 | |
| Nemotron 3 DiarizationShares gguf · safetensors | 204,726 | 836 | 99.2M | openmdw-1.1 |
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.