/ Модель

Характеристики

Контекст
40 960 токенов
Параметры
7,6 млрд
Лицензия
MIT
Архитектура
qwen3 · dense
Базовая модель
Qwen3-8B
Опубликована
2 сен 2026

sadiq-cite-8b

Генерация текстаТекст → текст3 профессии

Диалоговая модель на базе Qwen3-8B для ответов на вопросы по фикху с цитированием предоставленных источников в RAG-системах.

126скачиваний за 30 дней0лайковвеса обновлены2 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

sadiqoon/sadiq-cite-8b — диалоговая модель на базе Qwen3-8B, дообученная для ответов по исламскому праву (фикху) с цитированием предоставленных фрагментов. Она предназначена для RAG-сценариев: получает вопрос и найденные материалы, формирует ответ с цитатами и отказывается отвечать, если контекст не относится к вопросу. Модель имеет 7,6 млрд параметров, архитектуру Qwen3 с плотной причинной языковой моделью, принимает текст и поддерживает арабский и персидский языки. Нативная длина контекста — 40 960 токенов.

В обучении использованы 3 949 примеров «вопрос — фрагмент — ответ» и 500 примеров отказа; LoRA-дообучение применялось к проекциям внимания и MLP, после чего адаптер был объединён с базовыми весами. В описанной оценке модель цитировала предоставленные фрагменты в 99,6% ответов, однако 10,8% цитат не находились в источниках; для проверки цитат автор рекомендует использовать отдельный верификатор. Если во входных фрагментах нет сведений о книге и странице, модель может выдумать библиографическую ссылку. Модель распространяется по лицензии MIT.

Сценарии применения

  • ответы на вопросы по исламскому праву на основе найденных фрагментов
  • цитирование выдержек из источников по фикху
  • отказ от ответа при нерелевантном контексте
  • интеграция языковой модели в локальную RAG-систему по исламскому праву

Ограничения

Цитаты не всегда дословно совпадают с предоставленными материалами, поэтому их следует проверять отдельным верификатором. Без метаданных книги и страницы модель может сформировать вымышленную ссылку.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Sadiq-Cite 8B

Sadiq-Cite is a retrieval-grounded citation model for Islamic jurisprudence in the Ja'fari (Imami) tradition. Given a question and a set of retrieved passages, it finds the rulings that bear on the question, quotes them verbatim between «…», and lists their book and page. It does not issue verdicts, does not reason its way to a ruling, and does not apply the law to the asker's situation — and when the passages contain nothing relevant, it says so instead of improvising.

It is the answer stage of a pipeline, not a chatbot: run it behind LM Studio's server, inside AnythingLLM, in an n8n flow, or from any OpenAI-compatible client, with your own corpus supplying the passages. Built by Sadiqoon Technologies on Qwen/Qwen3-8B.

نموذج استشهاد مؤسَّس على الاسترجاع في الفقه الإماميّ. يُعطى السؤال والمقاطع المسترجعة، فيلتقط النصوص التي تخصّ المسألة وينقلها حرفيًّا بين «» ويعزوها بالكتاب والصفحة. لا يُفتي ولا يستنبط ولا ينزّل الحكم على حال السائل، وإذا لم يكن في المقاطع ما يخصّ السؤال صرّح بذلك ولم يخترع. يُشغَّل خلف خادم محلّي داخل منظومة استرجاع، لا كواجهة محادثة.

Why a citation model rather than an answering one

A jurisprudential answer has two halves: what the sources say, and what follows for you. The first is verifiable — the quote is either in the passage or it is not. The second is where a language model, however large, quietly invents. Sadiq-Cite is trained to do only the first half, so that everything it produces can be checked by a machine.

That check ships with it: sadiq_fiqh.verify() matches every «quote» in the output against the passages you supplied and returns a per-quote verdict, so your pipeline can drop an unverified quote before a reader ever sees it.

Evaluation

282 held-out questions with their retrieved passages, plus 100 refusal probes — real questions paired with passages deliberately drawn from unrelated chapters. All metrics are computed programmatically; no LLM judge was used.

Answers that quote at least one passage99.6%
Quotes traceable to the supplied passages87.5% (84.5% exact after orthographic normalization, 3.0% near-verbatim)
Quotes not found in the passages10.8%
Answers where every quote verified79.4%
Answers giving a book-and-page citation97.2%
Citations matching a supplied passage82.5%
Correct refusals on the 100 probes100%
False refusals on genuine questions0.4% (1 of 282)

Two things are worth reading carefully. Refusal discrimination is exact: on a hundred questions given deliberately irrelevant context it refused every time, and on 282 answerable ones it refused once. Groundedness, on the other hand, is high but not perfect — roughly one quote in nine is reconstructed from what the model learned rather than copied from what it was given. That is the reason the verifier is part of the release rather than an afterthought: run it, and the residual becomes a rejected quote instead of a false citation.

Robustness to prompt format

Different RAG tools inject context differently, so the same 60 questions were re-run in four injection styles:

Injection styleAnswers with quotesQuote verbatim rateCitation matches a passage
Native (the shape below)100%88.8%67.8%
AnythingLLM-style context block98.3%85.5%79.7%
XML <doc source= page=> tags100%87.7%66.7%
Bare passages, no book or page given100%83.0%0%

Quoting holds up across all four — the model does not need our exact template to find and copy the right text. Citation is a different matter: if you do not pass the book and page with each passage, the model will produce a citation anyway, and it will be fabricated. Always include source metadata in the passage header, or strip the citations from the output.

Training

3,949 question–passage–answer examples in which the answer quotes and cites only, plus 500 refusal examples. LoRA (r=32) on all attention and MLP projections, two epochs, merged into the base weights.

Running it

LM Studio as a server

Load the model, start the local server, then point any OpenAI-compatible client at it:

from sadiq_fiqh import Sadiq, Passage, verify        # pip install sadiq-fiqh
s = Sadiq(base_url="http://localhost:1234/v1", model="sadiq-cite-8b")

passages = [Passage(text="لا يجب الخمس في ما لا يدخل في مسمّى التكسّب…", book="…", page=120)]
answer = s.cite("هل يجب الخمس في الذهب الملبوس؟", passages)
print(verify(answer, passages))   # {'quotes': [...], 'all_verbatim': True}

AnythingLLM

Point the workspace's LLM at your local server (LM Studio or Ollama) and select this model; use Fiqh-Embed as the embedder — AnythingLLM supports LM Studio and Ollama embedders natively, so the whole stack stays local. Paste the system prompt below into the workspace's prompt setting.

Ollama

ollama create sadiq-cite -f Modelfile        # Modelfile ships in this repo
ollama run sadiq-cite

n8n and custom pipelines

Retrieve with Fiqh-Embed, re-rank with Fiqh-Rerank, then call this model. sadiq_fiqh.format_prompt() builds the message in the shape the model expects; verify() gates the result.

System prompt

أنت «صادق»، مساعد بحث في فقه أهل البيت (عليهم السلام). مهمتك أن تعثر في المقاطع المرفقة على النصوص الشرعية التي تخصّ سؤال السائل وتنقلها حرفيًّا بين علامتي «» مرقّمةً، ثم تسرد مصادرها بالكتاب ورقم الصفحة. لا تفتِ ولا تستنبط ولا تطبّق الحكم على حالة السائل. إن لم تجد في المقاطع ما يخصّ السؤال فقل ذلك صراحةً، وإن كان السؤال ناقصًا فاطلب التوضيح.

Expected input shape

السؤال:
<the question>

المقاطع المسترجعة:
[1] (<book>، ص <page>)
<passage text>

[2] (<book>، ص <page>)
<passage text>

Greedy decoding (temperature=0) is recommended.

The rest of the stack

Fiqh-Embed · Fiqh-Rerank · Fiqh-Classifier · Fiqh-Glossary Linker

Citation

@misc{sadiqoon2026sadiqcite,
  title  = {Sadiq-Cite: Retrieval-Grounded Quotation and Citation for Imami Jurisprudence},
  author = {Sadiqoon Technologies},
  year   = {2026},
  url    = {https://huggingface.co/sadiqoon/sadiq-cite-8b}
}

License & Contact

MIT (the base model is Qwen3-8B, Apache 2.0). Built and maintained by Sadiqoon Technologies Ltd, London. Questions and collaboration: info@sadiqoon.uk

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
734c742

0 моделей