abdallah3id
/

ABD3ID AI โ€” Jafari Cite 8B, citation-focused retrieval assistant

ABD3ID AI

Jafari Cite 8B ยท Retrieval-Grounded Source Quotation

ู…ุณุงุนุฏ ุงุณุชุดู‡ุงุฏ ุจุงู„ู…ุตุงุฏุฑ ููŠ ุงู„ูู‚ู‡ ุงู„ุฌุนูุฑูŠุŒ ูŠุนุชู…ุฏ ุนู„ู‰ ุงู„ู…ู‚ุงุทุน ุงู„ู…ุณุชุฑุฌุนุฉ

Project page and mirror documentation maintained by Abdalla Eid

ุงู„ุนุฑุจูŠุฉ ยท English


ู†ุจุฐุฉ ุจุงู„ุนุฑุจูŠุฉ

ABD3ID AI โ€” Jafari Cite 8B ู‡ูˆ ุงุณู… ุนุฑุถ ู„ู…ุฑุขุฉ ุงู„ู†ู…ูˆุฐุฌ Sadiq-Cite 8B. ุตูู…ู… ุงู„ู†ู…ูˆุฐุฌ ูƒู…ุฑุญู„ุฉ ุงุณุชุดู‡ุงุฏ ุถู…ู† ู†ุธุงู… ุงุณุชุฑุฌุงุน: ูŠุณุชู‚ุจู„ ุณุคุงู„ู‹ุง ูˆู…ู‚ุงุทุน ู…ุตุฏุฑูŠุฉ ุฌุฑู‰ ุงุณุชุฑุฌุงุนู‡ุง ู…ุณุจู‚ู‹ุงุŒ ุซู… ูŠุญุงูˆู„ ุงุฎุชูŠุงุฑ ุงู„ู…ู‚ุงุทุน ุฐุงุช ุงู„ุตู„ุฉ ูˆู†ู‚ู„ ุงู‚ุชุจุงุณุงุชู‡ุง ูˆุจูŠุงู†ุงุช ูƒุชุจู‡ุง ูˆุตูุญุงุชู‡ุง. ูˆู‡ูˆ ู…ุฎุตุต ู„ู…ูˆุงุฏ ุงู„ูู‚ู‡ ุงู„ุฌุนูุฑูŠ/ุงู„ุฅู…ุงู…ูŠ ูƒู…ุง ูŠุตูู‡ ุฅุตุฏุงุฑ ุงู„ู…ุตุฏุฑ.

ู‡ุฐุง ู„ูŠุณ ุฑูˆุจูˆุช ู…ุญุงุฏุซุฉ ุนุงู…ู‹ุง ูˆู„ุง ุฌู‡ุฉ ุฅูุชุงุก. ู„ุง ูŠู†ุจุบูŠ ุงุณุชุฎุฏุงู…ู‡ ู„ุงุณุชู†ุจุงุท ุญูƒู…ุŒ ุฃูˆ ุชุทุจูŠู‚ ุญูƒู… ุนู„ู‰ ุญุงู„ุฉ ุงู„ุณุงุฆู„ุŒ ุฃูˆ ุงุนุชุจุงุฑ ุงู„ุงู‚ุชุจุงุณ ูˆุญุฏู‡ ุฌูˆุงุจู‹ุง ุดุฑุนูŠู‹ุง. ุฅุฐุง ู„ู… ุชู‚ุฏู… ุงู„ู…ู†ุธูˆู…ุฉ ู…ู‚ุงุทุน ุฐุงุช ุตู„ุฉุŒ ูุงู„ุณู„ูˆูƒ ุงู„ู…ู‚ุตูˆุฏ ู‡ูˆ ุงู„ุชุตุฑูŠุญ ุจุนุฏู… ุงู„ุนุซูˆุฑ ุนู„ู‰ ู…ุงุฏุฉ ู…ู†ุงุณุจุฉ ุจุฏู„ ุงุฎุชู„ุงู‚ ุฅุฌุงุจุฉ.

ุญุงู„ุฉ ุงู„ู†ุณุฎุฉ: ุจุญุณุจ ู…ุนู„ูˆู…ุงุช ุงู„ุฅุตุฏุงุฑุŒ ู‡ุฐู‡ ู…ุฑุขุฉ ู„ู„ุฃูˆุฒุงู† ุฏูˆู† ุชุฏุฑูŠุจ ุฅุถุงููŠ ุฃูˆ ุชู‚ูŠูŠู… ู…ุณุชู‚ู„ ุฃุฌุฑุงู‡ ู…ุดุฑูˆุน ABD3ID AI. Abdalla Eid ูŠุฏูŠุฑ ุตูุญุฉ ุงู„ู…ุดุฑูˆุน ูˆูˆุซุงุฆู‚ ุงู„ู…ุฑุขุฉุ› ูˆู„ุง ุชู†ุณุจ ู‡ุฐู‡ ุงู„ุจุทุงู‚ุฉ ุฅู„ูŠู‡ ุชุฃู„ูŠู ุงู„ู†ู…ูˆุฐุฌ ุงู„ุฃุตู„ูŠ ุฃูˆ ุชุฏุฑูŠุจู‡.

ูƒูŠู ูŠุนู…ู„ุŸ

  1. ูŠุจุญุซ ู†ุธุงู… ุงู„ุงุณุชุฑุฌุงุน ููŠ ู…ุฌู…ูˆุนุฉ ู…ุตุงุฏุฑ ูŠุญุฏุฏู‡ุง ุงู„ู…ุดุบู‘ู„ุŒ ูˆูŠุณุชุฎุฑุฌ ู…ู‚ุงุทุน ู…ุฑู‚ู…ุฉ.
  2. ูŠู…ุฑุฑ ุงู„ุชุทุจูŠู‚ ุฅู„ู‰ ุงู„ู†ู…ูˆุฐุฌ ุงู„ุณุคุงู„ ูˆุงู„ู†ุตูˆุต ุงู„ู…ุณุชุฑุฌุนุฉ ู…ุน ุงุณู… ุงู„ูƒุชุงุจ ูˆุฑู‚ู… ุงู„ุตูุญุฉ ู„ูƒู„ ู…ู‚ุทุน.
  3. ูŠุญุงูˆู„ ุงู„ู†ู…ูˆุฐุฌ ู†ู‚ู„ ุงู„ู†ุตูˆุต ุงู„ุชูŠ ูŠุฑุงู‡ุง ุฐุงุช ุตู„ุฉุŒ ูˆุฅุธู‡ุงุฑ ู…ุฑุฌุนู‡ุงุŒ ุฃูˆ ุงู„ุชุตุฑูŠุญ ุจุฃู† ุงู„ุณูŠุงู‚ ุงู„ู…ู‚ุฏู… ู„ุง ูŠุชุถู…ู† ู…ุงุฏุฉ ู…ู†ุงุณุจุฉ.
  4. ูŠู…ูƒู† ู„ู…ูƒูˆู‘ู† ุงู„ุชุญู‚ู‚ sadiq_fiqh.verify() ู…ุทุงุจู‚ุฉ ุงู„ุงู‚ุชุจุงุณุงุช ุงู„ู†ุงุชุฌุฉ ู…ุน ุงู„ู…ู‚ุงุทุน ุงู„ู…ู…ุฑุฑุฉ ูˆุฅุฑุฌุงุน ุญุงู„ุฉ ู„ูƒู„ ุงู‚ุชุจุงุณ.
  5. ูŠุฑุงุฌุน ุงู„ู…ุณุชุฎุฏู… ุงู„ู†ุต ูˆุงู„ู…ุตุฏุฑ ูˆุงู„ุตูุญุฉ ูˆุงู„ุณูŠุงู‚ ู‚ุจู„ ุนุฑุถู‡ ุฃูˆ ุงู„ุงุนุชู…ุงุฏ ุนู„ูŠู‡.

ุงู„ุชุญู‚ู‚ ุงู„ุจุฑู…ุฌูŠ ู…ู† ูˆุฌูˆุฏ ุงู‚ุชุจุงุณ ููŠ ุงู„ู…ู‚ุงุทุน ู„ุง ูŠุซุจุช ุตุญุฉ ุงู„ู…ุตุฏุฑ ุงู„ุฃุตู„ูŠุŒ ูˆู„ุง ุตุญุฉ ู†ุณุจุฉ ุงู„ู‚ูˆู„ุŒ ูˆู„ุง ุตุญุฉ ุงู„ุญูƒู… ุงู„ูู‚ู‡ูŠ ุฃูˆ ุงู†ุทุจุงู‚ู‡ ุนู„ู‰ ูˆุงู‚ุนุฉ.

ุจู†ูŠุฉ ุงู„ุฅุฏุฎุงู„ ุงู„ู…ุชูˆู‚ุนุฉ

ุฃุฑุณู„ ุงู„ุณุคุงู„ ู…ุน ุงู„ู…ู‚ุงุทุน ุงู„ู…ุณุชุฑุฌุนุฉุŒ ูˆุฃุฑูู‚ ุจูŠุงู†ุงุช ุงู„ู…ุตุฏุฑ ุจูƒู„ ู…ู‚ุทุน. ู„ุง ุชุนุชู…ุฏ ุนู„ู‰ ุงู„ู†ู…ูˆุฐุฌ ู„ุงุฎุชุฑุงุน ุจูŠุงู†ุงุช ุงู„ูƒุชุงุจ ุฃูˆ ุงู„ุตูุญุฉ:

ุงู„ุณุคุงู„:
<ุณุคุงู„ ุงู„ุจุญุซ>

ุงู„ู…ู‚ุงุทุน ุงู„ู…ุณุชุฑุฌุนุฉ:
[1] (ุงุณู… ุงู„ูƒุชุงุจุŒ ุต 120)
<ู†ุต ุงู„ู…ู‚ุทุน>

[2] (ุงุณู… ุงู„ูƒุชุงุจุŒ ุต 245)
<ู†ุต ุงู„ู…ู‚ุทุน>

ุฃุธู‡ุฑุช ุงุฎุชุจุงุฑุงุช ุชู†ุณูŠู‚ ุงู„ุฅุฏุฎุงู„ ููŠ ุจุทุงู‚ุฉ ุงู„ู…ุตุฏุฑ ุฃู† ุงู„ุงู‚ุชุจุงุณ ู‚ุฏ ูŠุณุชู…ุฑ ุนุจุฑ ู‚ูˆุงู„ุจ ู…ุฎุชู„ูุฉุŒ ู„ูƒู† ุจูŠุงู†ุงุช ุงู„ุฅุณู†ุงุฏ ุชุชุฏู‡ูˆุฑ ุนู†ุฏ ุญุฐู ุจูŠุงู†ุงุช ุงู„ู…ุตุฏุฑ: ุนู†ุฏ ุชู…ุฑูŠุฑ ู…ู‚ุงุทุน ุจู„ุง ูƒุชุงุจ ุฃูˆ ุตูุญุฉุŒ ุฃุจู„ุบ ุงู„ู…ุตุฏุฑ ุนู† 0% ู„ู…ุทุงุจู‚ุฉ ุงู„ุงุณุชุดู‡ุงุฏุงุช ู„ู…ู‚ุทุน. ุฃุฑุณู„ ุฏุงุฆู…ู‹ุง ุจูŠุงู†ุงุช ุงู„ู…ุตุฏุฑ ู…ุน ูƒู„ ู…ู‚ุทุนุŒ ุฃูˆ ุงุญุฐู ุงู„ุงุณุชุดู‡ุงุฏุงุช ุบูŠุฑ ุงู„ู…ุชุญู‚ู‚ุฉ ู‚ุจู„ ุนุฑุถ ุงู„ู†ุงุชุฌ.

ุงู„ุชู‚ูŠูŠู… ุงู„ู…ู†ุดูˆุฑ ู…ู† ู…ุตุฏุฑ ุงู„ู†ู…ูˆุฐุฌ

ุงู„ุฃุฑู‚ุงู… ุงู„ุชุงู„ูŠุฉ ู…ู† ุจุทุงู‚ุฉ Sadiq-Cite ุงู„ู…ุตุฏุฑูŠุฉุŒ ูˆู„ูŠุณุช ุงุฎุชุจุงุฑุงุช ู…ุณุชู‚ู„ุฉ ู„ู…ุฑุขุฉ ABD3ID AI. ุชุฐูƒุฑ ุงู„ุจุทุงู‚ุฉ ุงู„ู…ุตุฏุฑูŠุฉ 282 ุณุคุงู„ู‹ุง ู…ุญุฌูˆุจู‹ุง ู…ุน ุงู„ู…ู‚ุงุทุน ุงู„ู…ุณุชุฑุฌุนุฉ ูˆ100 ุงุฎุชุจุงุฑ ุฑูุถ ุจู…ู‚ุงุทุน ุบูŠุฑ ุฐุงุช ุตู„ุฉ:

ุงู„ู…ู‚ูŠุงุณ ุงู„ู…ุจู„ุบ ุนู†ู‡ ููŠ ุงู„ู…ุตุฏุฑ ุงู„ู†ุชูŠุฌุฉ ู…ู„ุงุญุธุฉ
ุฅุฌุงุจุงุช ุชุถู…ู†ุช ุงู‚ุชุจุงุณู‹ุง ูˆุงุญุฏู‹ุง ุนู„ู‰ ุงู„ุฃู‚ู„ 99.6% ู„ุง ูŠู‚ูŠุณ ูˆุญุฏู‡ ุตุญุฉ ุงู„ุงุณุชุดู‡ุงุฏ
ุงู‚ุชุจุงุณุงุช ุฃู…ูƒู† ุชุชุจุนู‡ุง ุฅู„ู‰ ุงู„ู…ู‚ุงุทุน ุงู„ู…ู‚ุฏู…ุฉ 87.5% 84.5% ู…ุทุงุจู‚ุฉ ุญุฑููŠุฉ ุจุนุฏ ุชุทุจูŠุน ุฅู…ู„ุงุฆูŠ ูˆ3.0% ุดุจู‡ ุญุฑููŠุฉ
ุงู‚ุชุจุงุณุงุช ู„ู… ุชูˆุฌุฏ ููŠ ุงู„ู…ู‚ุงุทุน ุงู„ู…ู‚ุฏู…ุฉ 10.8% ุฎุทุฑ ุฌูˆู‡ุฑูŠุ› ู‚ุฏ ูŠุนูŠุฏ ุงู„ู†ู…ูˆุฐุฌ ุจู†ุงุก ู†ุต ู…ู† ุฐุงูƒุฑุชู‡
ุฅุฌุงุจุงุช ูƒุงู†ุช ุฌู…ูŠุน ุงู‚ุชุจุงุณุงุชู‡ุง ู…ุชุญู‚ู‚ุฉ 79.4% ูŠุจูŠู† ุฃู† ุงู„ู†ุงุชุฌ ุงู„ูƒุงู…ู„ ู„ูŠุณ ู…ูˆุซูˆู‚ู‹ุง ุชู„ู‚ุงุฆูŠู‹ุง
ุฅุฌุงุจุงุช ุชุถู…ู†ุช ุฅุญุงู„ุฉ ูƒุชุงุจ ูˆุตูุญุฉ 97.2% ูˆุฌูˆุฏ ุฅุญุงู„ุฉ ู„ุง ูŠุนู†ูŠ ุฃู†ู‡ุง ุตุญูŠุญุฉ
ุฅุญุงู„ุงุช ุทุงุจู‚ุช ู…ู‚ุทุนู‹ุง ู…ู‚ุฏู…ู‹ุง 82.5% ุชุชุทู„ุจ ุชูˆููŠุฑ ุจูŠุงู†ุงุช ุงู„ู…ุตุฏุฑ ู…ุน ุงู„ู…ู‚ุงุทุน
ุฑูุถ ุตุญูŠุญ ููŠ 100 ุงุฎุชุจุงุฑ ุจู…ู‚ุงุทุน ุบูŠุฑ ู…ุฑุชุจุทุฉ 100% ู†ุชูŠุฌุฉ ู…ุฌู…ูˆุนุฉ ุงู„ุงุฎุชุจุงุฑ ุงู„ู…ู†ุดูˆุฑุฉ
ุฑูุถ ุฎุงุทุฆ ู„ุณุคุงู„ ู‚ุงุจู„ ู„ู„ุฅุฌุงุจุฉ 0.4% (1 ู…ู† 282) ุจุญุณุจ ุนูŠู†ุฉ ุงู„ู…ุตุฏุฑ

ุงู„ุฎู„ุงุตุฉ ุงู„ุนู…ู„ูŠุฉ: ูˆูู‚ ุงู„ุฃุฑู‚ุงู… ุงู„ู…ู†ุดูˆุฑุฉุŒ ู„ู… ุชูˆุฌุฏ ุงู„ุงู‚ุชุจุงุณุงุช ููŠ ุงู„ู…ู‚ุงุทุน ุงู„ู…ู‚ุฏู…ุฉ ููŠ 10.8% ู…ู† ุงู„ุญุงู„ุงุชุŒ ูˆู„ู… ุชูƒู† ูƒู„ ุงู„ุงู‚ุชุจุงุณุงุช ู…ุชุญู‚ู‚ุฉ ููŠ 20.6% ู…ู† ุงู„ุฅุฌุงุจุงุช. ู„ุฐู„ูƒ ุดุบู‘ู„ ุฃุฏุงุฉ ุงู„ุชุญู‚ู‚ ุนู„ู‰ ูƒู„ ุฅุฌุงุจุฉุŒ ูˆู„ุง ุชุนุฑุถ ุงู‚ุชุจุงุณู‹ุง ุบูŠุฑ ู…ุชุญู‚ู‚ ุนู„ู‰ ุฃู†ู‡ ู…ู†ู‚ูˆู„ ู…ู† ุงู„ู…ุตุฏุฑ. ู„ุง ุชูุณุฑ ู‡ุฐู‡ ุงู„ุฃุฑู‚ุงู… ุนู„ู‰ ุฃู†ู‡ุง ู†ุณุจุฉ ุตุญุฉ ูู‚ู‡ูŠุฉ.

ุญุณุงุณูŠุฉ ุจูŠุงู†ุงุช ุงู„ุฅุญุงู„ุฉ ู„ู‚ุงู„ุจ ุงู„ุฅุฏุฎุงู„

ููŠ ุงุฎุชุจุงุฑ ู…ุตุฏุฑ ุงู„ู†ู…ูˆุฐุฌ ุนู„ู‰ 60 ุณุคุงู„ู‹ุง ุจุฃุฑุจุนุฉ ุฃุดูƒุงู„ ู„ุฅุฏุฎุงู„ ุงู„ู…ู‚ุงุทุนุŒ ุฃูุจู„ุบ ุนู† ุงู„ู†ุชุงุฆุฌ ุงู„ุชุงู„ูŠุฉ:

ุดูƒู„ ุฅุฏุฎุงู„ ุงู„ู…ู‚ุงุทุน ุฅุฌุงุจุงุช ููŠู‡ุง ุงู‚ุชุจุงุณุงุช ุงู„ุงู‚ุชุจุงุณ ุงู„ุญุฑููŠ ุฅุญุงู„ุงุช ุทุงุจู‚ุช ู…ู‚ุทุนู‹ุง
ุงู„ู‚ุงู„ุจ ุงู„ุฃุตู„ูŠ ู…ุน ุจูŠุงู†ุงุช ุงู„ู…ุตุฏุฑ 100% 88.8% 67.8%
ูƒุชู„ุฉ ุณูŠุงู‚ ุนู„ู‰ ู†ู…ุท AnythingLLM 98.3% 85.5% 79.7%
ูˆุณูˆู… XML ู„ู„ู…ุณุชู†ุฏุงุช 100% 87.7% 66.7%
ู…ู‚ุงุทุน ุจู„ุง ูƒุชุงุจ ุฃูˆ ุตูุญุฉ 100% 83.0% 0%

ู‡ุฐู‡ ู†ุชุงุฆุฌ ุจุทุงู‚ุฉ ุงู„ู…ุตุฏุฑ ูˆู„ูŠุณุช ุถู…ุงู†ู‹ุง ู„ุชูƒุฑุงุฑ ุงู„ู†ุณุจ ุนู„ู‰ ูƒู„ corpus ุฃูˆ ุฅุนุฏุงุฏ ุงุณุชุฏู„ุงู„. ุฏู‚ุฉ ู†ุธุงู… ุงู„ุงุณุชุฑุฌุงุน ู†ูุณู‡ ู„ู… ุชุซุจุชู‡ุง ู‡ุฐู‡ ุงู„ุฃุฑู‚ุงู….

ุจุฏุก ุงู„ุงุณุชุฎุฏุงู…

ูŠู…ูƒู† ุชุดุบูŠู„ ุงู„ู†ู…ูˆุฐุฌ ุนุจุฑ ุฎุงุฏู… ู…ุญู„ูŠ ู…ุชูˆุงูู‚ ู…ุน OpenAIุŒ ู…ุซู„ LM StudioุŒ ุซู… ุงุณุชุฎุฏุงู… ูˆุงุฌู‡ุฉ sadiq_fiqh ู„ู„ุชู‡ูŠุฆุฉ ูˆุงู„ุชุญู‚ู‚ ูˆูู‚ ุญุฒู…ุฉ ุงู„ู…ุดุฑูˆุน ุงู„ู…ุตุฏุฑ:

pip install sadiq-fiqh
from sadiq_fiqh import Passage, Sadiq, verify

assistant = Sadiq(
    base_url="http://localhost:1234/v1",
    model="sadiq-cite-8b",
)

passages = [
    Passage(
        text="ุถุน ู‡ู†ุง ู†ุตู‹ุง ู…ุณุชุฑุฌุนู‹ุง ู…ู† ู…ุตุฏุฑูƒ.",
        book="ุงุณู… ุงู„ูƒุชุงุจ",
        page=120,
    )
]

answer = assistant.cite("ุงูƒุชุจ ุณุคุงู„ ุงู„ุจุญุซ ู‡ู†ุง", passages)
verification = verify(answer, passages)

print(answer)
print(verification)

ู…ุซุงู„ ุชู‡ูŠุฆุฉ ุชูˆุถูŠุญูŠุ› ูŠู„ุฒู… ุชุดุบูŠู„ ุงู„ุฎุงุฏู… ูˆุชุญู…ูŠู„ ุงู„ุฃูˆุฒุงู† ูˆุถุจุท ุนู†ูˆุงู†ู‡ ูˆุฅุตุฏุงุฑ ุงู„ุญุฒู…ุฉ ุจู…ุง ูŠู†ุงุณุจ ุจูŠุฆุชูƒ. ู„ุง ุชุฑุณู„ ู…ู‚ุงุทุน ุฃูˆ ุจูŠุงู†ุงุช ุฎุงุตุฉ ุฅู„ู‰ ุฎุฏู…ุฉ ุฎุงุฑุฌูŠุฉ ุฏูˆู† ุชุตุฑูŠุญ ู…ู†ุงุณุจ.

ูŠู…ูƒู† ูƒุฐู„ูƒ ุงุณุชุฎุฏุงู…ู‡ ููŠ ุฎุทูˆุท ุนู…ู„ ู…ุซู„ AnythingLLM ุฃูˆ n8n ุฃูˆ ุนู…ูŠู„ ู…ุชูˆุงูู‚ ู…ุน OpenAIุŒ ุดุฑุท ุชู…ุฑูŠุฑ ุงู„ู…ู‚ุงุทุน ุงู„ู…ุณุชุฑุฌุนุฉ ูˆุจูŠุงู†ุงุช ู…ุตุงุฏุฑู‡ุง. ุชูˆุตูŠ ุจุทุงู‚ุฉ ุงู„ู…ุตุฏุฑ ุจุงุณุชุฎุฏุงู… ููƒ ุชุฑู…ูŠุฒ ุญุชู…ูŠ (temperature=0) ู„ุซุจุงุช ุงู„ุงู‚ุชุจุงุณุ› ูˆู‡ุฐุง ู„ุง ูŠุถู…ู† ุตุญุฉ ุงู„ู†ุงุชุฌ.

ุงู„ุงุณุชุฎุฏุงู… ุงู„ู…ุณุคูˆู„ ูˆุงู„ู‚ูŠูˆุฏ

  • ุงู„ู…ุฌุงู„ ุงู„ู…ุนู„ู† ู‡ูˆ ุงู„ุงุณุชุดู‡ุงุฏ ุจุงู„ู†ุตูˆุต ุงู„ู…ุณุชุฑุฌุนุฉ ููŠ ู…ูˆุงุฏ ุงู„ูู‚ู‡ ุงู„ุฌุนูุฑูŠ/ุงู„ุฅู…ุงู…ูŠุŒ ู„ุง ุฅุตุฏุงุฑ ุงู„ุฃุญูƒุงู… ุฃูˆ ุชุฑุฌูŠุญู‡ุง.
  • ุงู„ุงู‚ุชุจุงุณ ุบูŠุฑ ุงู„ู…ุชุญู‚ู‚ ู‚ุฏ ูŠูƒูˆู† ุฅุนุงุฏุฉ ุจู†ุงุก ู„ุง ู†ู‚ู„ู‹ุง ุญุฑููŠู‹ุงุ› ุงูุญุต ู†ุชูŠุฌุฉ verify() ูˆุงู„ู…ุตุฏุฑ ุงู„ุฃุตู„ูŠ.
  • ุงู„ุงุณุชุดู‡ุงุฏ ูŠุญุชุงุฌ ุงุณู… ุงู„ูƒุชุงุจ ูˆุฑู‚ู… ุงู„ุตูุญุฉ ููŠ ุจูŠุงู†ุงุช ุงู„ู…ู‚ุทุนุ› ุฅุฐุง ุบุงุจุช ุงู„ุจูŠุงู†ุงุช ูู‚ุฏ ุชุธู‡ุฑ ุฅุญุงู„ุงุช ู…ุฎุชู„ู‚ุฉ.
  • ุตุญุฉ ุงู„ุงู‚ุชุจุงุณ ุฏุงุฎู„ ุงู„ู…ู‚ุทุน ู„ุง ุชุซุจุช ุตุญุฉ ุงู„ูƒุชุงุจ ุฃูˆ ุงู„ุทุจุนุฉ ุฃูˆ ุงู„ู†ุณุจุฉ ุฃูˆ ุณู„ุงู…ุฉ ุงู„ุณูŠุงู‚.
  • ุฌูˆุฏุฉ ุงู„ู†ุชูŠุฌุฉ ุชุนุชู…ุฏ ุฃูŠุถู‹ุง ุนู„ู‰ corpusุŒ ูˆู†ุธุงู… ุงู„ุงุณุชุฑุฌุงุนุŒ ูˆุงู„ุชู‚ุณูŠู…ุŒ ูˆุชุฑุชูŠุจ ุงู„ู…ู‚ุงุทุน ูˆุจูŠุงู†ุงุชู‡ุง.
  • ู„ุง ุชุณุชุฎุฏู… ุงู„ู†ุงุชุฌ ูˆุญุฏู‡ ู„ู„ูุชูˆู‰ ุฃูˆ ู„ุชุทุจูŠู‚ ุญูƒู… ุนู„ู‰ ุดุฎุตุ› ุงุฑุฌุน ุฅู„ู‰ ู…ุตุฏุฑ ู…ูˆุซูˆู‚ ูˆู…ุฎุชุต ู…ุคู‡ู„.
  • ู„ุง ุชุนู…ู… ุงู„ู…ุฎุฑุฌุงุช ุนู„ู‰ ู…ุฐุงู‡ุจ ุฃูˆ ุชู‚ุงู„ูŠุฏ ูู‚ู‡ูŠุฉ ุฃุฎุฑู‰.
  • ู†ุชุงุฆุฌ ุงู„ู…ุตุฏุฑ ู…ุญุฏูˆุฏุฉ ุจู…ุฌู…ูˆุนุฉ ุงุฎุชุจุงุฑ ู…ุญุฏุฏุฉุ› ู„ู… ูŠูู†ุดุฑ ููŠ ู‡ุฐู‡ ุงู„ุจุทุงู‚ุฉ ุชู‚ูŠูŠู… ู…ุณุชู‚ู„ ู„ู„ู…ุฑุขุฉ.

ุงู„ู…ุตุฏุฑ ูˆุงู„ุชุฑุฎูŠุต ูˆุงู„ุฅุณู†ุงุฏ

ู‡ุฐู‡ ุงู„ู…ุฑุขุฉ ุชุนุชู…ุฏ ุนู„ู‰ Sadiq-Cite 8BุŒ ุงู„ู…ุจู†ูŠ ุนู„ู‰ Qwen3-8B. ุจุญุณุจ ุจุทุงู‚ุฉ ุงู„ู…ุตุฏุฑุŒ ุงู„ุฃูˆุฒุงู† ููŠ ู…ุฑุขุฉ RAWDA AI ุบูŠุฑ ู…ุนุฏู„ุฉุŒ ูˆู„ู… ูŠูุฌุฑูŽ ุนู„ูŠู‡ุง ุชุฏุฑูŠุจ ุฅุถุงููŠ ุฃูˆ ุชู‚ูŠูŠู… ู…ุณุชู‚ู„ ุถู…ู† ุงู„ู…ุฑุขุฉ.

ุงู„ู…ุณุชูˆุฏุน ุงู„ู…ุตุฏุฑ ูŠุนู„ู† ุชุฑุฎูŠุต MIT ู„ู„ู†ู…ูˆุฐุฌ ุงู„ู…ุดุชู‚ุŒ ูˆูŠุฐูƒุฑ ุงู„ุชุฒุงู…ุงุช ุชุฑุฎูŠุต Apache-2.0 ู„ู„ู†ู…ูˆุฐุฌ ุงู„ุฃุณุงุณูŠ. ุฑุงุฌุน ู…ู„ูุงุช ุงู„ุชุฑุฎูŠุต ูˆุงู„ุฅุดุนุงุฑุงุช ุงู„ุฃุตู„ูŠุฉ ูˆุงุญุชูุธ ุจุงู„ุฅุณู†ุงุฏุงุช ุงู„ู…ุทู„ูˆุจุฉ ู‚ุจู„ ุงู„ุงุณุชุฎุฏุงู… ุฃูˆ ุฅุนุงุฏุฉ ุงู„ุชูˆุฒูŠุน. ู„ุง ูŠู…ู†ุญ ุงุณู… ABD3ID AI ุฃูˆ ุฅุฏุงุฑุฉ Abdalla Eid ู„ู„ู…ุฑุขุฉ ู…ู„ูƒูŠุฉ ุงู„ุฃูˆุฒุงู† ุฃูˆ ุงู„ู…ูˆุงุฏ upstream.


English Overview

ABD3ID AI โ€” Jafari Cite 8B is a project display name for a mirror of Sadiq-Cite 8B. The model is designed as the citation stage of a retrieval pipeline: it receives a question and passages retrieved beforehand, then attempts to select relevant excerpts and provide their book and page metadata. The source release describes it for Ja'fari (Imami) jurisprudential material.

This is not a general chatbot or a fatwa system. It should not derive rulings, apply them to a person's circumstances, or present a quotation alone as a religious answer. When supplied passages do not contain relevant material, the intended behavior is to say so rather than improvise.

Release status: According to the source release description, this is an unchanged weight mirror with no additional training or independent evaluation by the ABD3ID AI project. Abdalla Eid maintains this project's page and mirror documentation; this card does not claim authorship or training of the upstream model.

How it works

  1. A retrieval system searches a corpus selected by the operator and returns passages.
  2. The application provides the question and retrieved text, including book and page metadata for each passage.
  3. The model attempts to quote relevant supplied text and identify its source, or state that the supplied context contains no relevant material.
  4. The sadiq_fiqh.verify() component can match output quotations against the supplied passages and return a per-quote status.
  5. A user reviews the wording, source, page, and context before displaying or relying on the result.

Programmatic matching does not verify the original source, attribution, jurisprudential correctness, or applicability to a real case.

Expected input

Pass the question together with retrieved passages, including source metadata for each passage. Do not rely on the model to invent book or page details:

Question:
<research question>

Retrieved passages:
[1] (Book title, p. 120)
<passage text>

[2] (Book title, p. 245)
<passage text>

The source card reports that quotation behavior persisted across several prompt formats, but citation matching degraded when source metadata was omitted: with bare passages and no book or page, reported citation-to-passage matching was 0%. Always include source metadata or remove citations that have not been verified.

Evaluation reported by the upstream project

The following numbers are reported by the Sadiq-Cite source card, not by an independent evaluation of the ABD3ID AI mirror. The source card describes 282 held-out questions with retrieved passages and 100 refusal probes with deliberately unrelated passages:

Metric reported by source Result Note
Answers containing at least one quotation 99.6% Does not by itself measure citation correctness
Quotes traceable to supplied passages 87.5% 84.5% exact after orthographic normalization; 3.0% near-verbatim
Quotes not found in supplied passages 10.8% Material risk: text may be reconstructed from model memory
Answers where every quote verified 79.4% Full answers are not automatically reliable
Answers with a book-and-page citation 97.2% Presence of a citation does not make it correct
Citations matching a supplied passage 82.5% Requires source metadata in the passages
Correct refusals on 100 unrelated-context probes 100% Result from the reported test set
False refusals on answerable questions 0.4% (1 of 282) As reported by the source card

Practical takeaway: In the reported evaluation, 10.8% of quotes were absent from the supplied passages, and 20.6% of answers did not have every quote verified. Run the verifier on every answer and do not present unverified text as a source quotation. These figures are not a measure of jurisprudential correctness.

Sensitivity of citations to input format

The source project reports the following results on 60 questions across four passage-injection formats:

Passage format Answers with quotes Verbatim quote rate Citations matching a passage
Native format with source metadata 100% 88.8% 67.8%
AnythingLLM-style context block 98.3% 85.5% 79.7%
XML document tags 100% 87.7% 66.7%
Bare passages without book or page 100% 83.0% 0%

These are source-card results, not a guarantee that the figures will reproduce for every corpus or inference setup. They do not evaluate the retrieval system itself.

Quickstart

The model can be served through a local OpenAI-compatible endpoint, such as LM Studio, and used with the source project's sadiq_fiqh interface:

pip install sadiq-fiqh
from sadiq_fiqh import Passage, Sadiq, verify

assistant = Sadiq(
    base_url="http://localhost:1234/v1",
    model="sadiq-cite-8b",
)

passages = [
    Passage(
        text="Insert a passage retrieved from your corpus.",
        book="Book title",
        page=120,
    )
]

answer = assistant.cite("Enter the research question", passages)
verification = verify(answer, passages)

print(answer)
print(verification)

This is an illustrative setup. Start a compatible server, load the weights, and configure its endpoint and package version for your environment. Do not send private passages or data to an external service without appropriate authorization.

The model can also be used in workflows such as AnythingLLM, n8n, or other OpenAI-compatible clients, provided retrieved passages and source metadata are included. The source card recommends deterministic decoding (temperature=0) for consistency; this does not guarantee correctness.

Responsible use and limitations

  • The stated scope is citation of retrieved Ja'fari/Imami jurisprudential texts, not issuing or deriving rulings.
  • An unverified quote may be reconstructed rather than copied; inspect verify() results and the original source.
  • Citations require book and page metadata; missing metadata can lead to fabricated references.
  • A quote matching a supplied passage does not verify the book, edition, attribution, or context.
  • Results also depend on the corpus, retrieval system, chunking, passage ordering, and metadata.
  • Do not use the output alone for a fatwa or to apply a ruling to a person; consult reliable sources and qualified specialists.
  • Do not generalize the outputs to other jurisprudential traditions.
  • The source results cover a defined test set; this mirror has no independent evaluation reported here.

Source, license, and attribution

This mirror is based on Sadiq-Cite 8B, which is built on Qwen3-8B. According to the source card, the RAWDA AI mirror uses unchanged weights; no additional training or independent mirror evaluation is reported.

The source repository declares MIT for the derived model and notes the Apache-2.0 obligations of its base model. Review and retain upstream license files, notices, and required attributions before use or redistribution. The ABD3ID AI name and mirror documentation maintained by Abdalla Eid do not transfer ownership of upstream weights or materials.

Downloads last month
778
Safetensors
Model size
8B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for abdallah3id/rawda-cite-jafari-8b

Finetuned
Qwen/Qwen3-8B
Finetuned
(2284)
this model

Collection including abdallah3id/rawda-cite-jafari-8b