Metadata-Version: 2.5
Name: tayf
Version: 1.0.0
Summary: Tayf (طيف): Standalone Zero-LLM Grassmannian & Spectral Arabic RAG Arena (Maqayis)
Project-URL: Homepage, https://maqayis.org
Project-URL: Repository, https://github.com/maqayis/tayf
Project-URL: Mirror, https://codeberg.org/maqayis/tayf
Author-email: Salah Abdo <Salah.Abdo.Tech@gmail.com>
License: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Keywords: arabic,grassmannian,information-retrieval,maqayis,rag,tayf,zero-llm
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: Arabic
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.10
Requires-Dist: numpy>=1.24
Requires-Dist: scikit-learn>=1.3
Requires-Dist: scipy>=1.10
Requires-Dist: tarkib>=2.0.0
Provides-Extra: neural
Requires-Dist: sentence-transformers>=2.6; extra == 'neural'
Requires-Dist: torch>=2.1; extra == 'neural'
Requires-Dist: transformers>=4.40; extra == 'neural'
Description-Content-Type: text/markdown

# Tayf (`طيف`) v1.0.0 — منشور الاسترجاع العربي الجبري الصفري

<div align="center">

**Zero-LLM Grassmannian, Ontological, & Metaphor-Aware Arabic RAG & Retrieval Arena**  
Part of the **Maqāyīs (`مَقاييس`)** Open-Source Ecosystem · [maqayis.org](https://maqayis.org) · [github.com/maqayis/tayf](https://github.com/maqayis/tayf)

[![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](LICENSE)
[![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-3776AB.svg)](pyproject.toml)
[![Zero-LLM](https://img.shields.io/badge/Neural%20Weights-0-success.svg)](pyproject.toml)

</div>

---

## نظرة عامّة | Overview

**`tayf` (`طيف` v1.0.0)** هو محرّك الاسترجاع المعرفي وساحة المقارنة المعيارية الصفرية (`0` أوزان عصبية) في منظومة **مَقاييس (`Maqāyīs`)** من تطوير **صلاح عبده (`Salah Abdo`)**. يُفكّك `tayf` التباس المشترك اللفظي والأضداد عبر ألياف غراسمان $\operatorname{Gr}(k_R, 256)$، ويعزل الجامد الذاتي عن المشتق الحدثي، ويجسر الاستعارة عبر مؤثّر $\mathcal{T}_{\text{majāz}}$، ويرمّم أخطاء التصحيف و`OCR` عبر حواجز شانون بسرعة `~4.4 ms` على المعالج المركزي، مع توليد استخلاصي برهاني عديم الهلوسة (`0.0%` مخاطر اختلاق) للنصوص القانونية والمالية والتنظيمية والعلمية والتقنية.

**`tayf` (`v1.0.0`)** is the standalone Zero-LLM Geometric Arabic Retrieval-Augmented Generation (RAG) engine and 3-way evaluation arena built on `tarkib>=2.0.0`. Operating with **zero neural weights** on CPU, `tayf` combines five algebraic retrieval laws (`Gr(k_R, 256)` polysemy prism, `rigid_jamid_nominal` vs. `eventive` ontological gating, Riemannian metaphor bridge `T_majaz`, `[C1C2_]` onset sister expansion, and Shannon `OCR` guardband repair) with deterministic zero-hallucination extractive evidence synthesis across legal, financial, regulatory, engineering, and scientific corpora.

---

## التثبيت والتشغيل | Installation & Quickstart

```bash
pip install tayf
# Launch interactive RTL/LTR Arena Server:
tayf --port 8780
# Run reproducible benchmark suite:
tayf-bench
```

```python
from tayf.arena import TayfArena

arena = TayfArena()
result = arena.compare_query("قرن التزامين تعاقديين وربط الضمانين معاً في صفقة")
print(result["columns"]["tayf"]["hits"][0]["doc_id"])
```

---

## الترخيص | License

- **License:** [Apache-2.0](LICENSE) · [`NOTICE`](NOTICE) · [`CITATION.cff`](CITATION.cff)
- **Copyright:** `Copyright 2026 Salah Abdo and successor entity`
