Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: colbert
|
| 4 |
+
tags:
|
| 5 |
+
- rag
|
| 6 |
+
- visual-rag
|
| 7 |
+
- colqwen
|
| 8 |
+
- sceletium-tortuosum
|
| 9 |
+
- thesis
|
| 10 |
+
model-index:
|
| 11 |
+
- name: LAYRA v2
|
| 12 |
+
results:
|
| 13 |
+
- task:
|
| 14 |
+
type: retrieval-augmented-generation
|
| 15 |
+
name: Retrieval Augmented Generation
|
| 16 |
+
dataset:
|
| 17 |
+
name: Kanna RAG Gold Standard
|
| 18 |
+
type: SAINTHALF/kanna-rag-gold-standard
|
| 19 |
+
metrics:
|
| 20 |
+
- name: MRR@20
|
| 21 |
+
type: mrr
|
| 22 |
+
value: 0.7403174603174603
|
| 23 |
+
- name: Recall@20
|
| 24 |
+
type: recall
|
| 25 |
+
value: 1.0
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
# LAYRA v2 (Large Academic Visual RAG Agent)
|
| 29 |
+
|
| 30 |
+
**LAYRA v2** is a specialized Visual RAG system designed for the ethnopharmacology of *Sceletium tortuosum*. It processes full PDF pages as images, preserving layout and visual information, and uses a hybrid retrieval stack.
|
| 31 |
+
|
| 32 |
+
## Architecture
|
| 33 |
+
|
| 34 |
+
- **Visual Encoder:** ColQwen 2.5 (ColBERT + Qwen-VL)
|
| 35 |
+
- **Retrieval:** Hybrid (Sparse BM25 + Dense ColBERT)
|
| 36 |
+
- **Reranking:** LLM-based Reranking (Generative Listwise)
|
| 37 |
+
- **Vector DB:** Milvus 2.5.5
|
| 38 |
+
- **Infrastructure:** Docker Compose (Lean Stack)
|
| 39 |
+
|
| 40 |
+
## Performance
|
| 41 |
+
|
| 42 |
+
Evaluated on [SAINTHALF/kanna-rag-gold-standard](https://huggingface.co/datasets/SAINTHALF/kanna-rag-gold-standard):
|
| 43 |
+
|
| 44 |
+
| Metric | Score |
|
| 45 |
+
| :--- | :--- |
|
| 46 |
+
| **MRR@20** | **0.7403** |
|
| 47 |
+
| **Recall@20** | **1.0000** |
|
| 48 |
+
| **Latency (P50)** | 1.2s |
|
| 49 |
+
|
| 50 |
+
## Usage
|
| 51 |
+
|
| 52 |
+
This model represents the deployed system configuration described in the thesis.
|
| 53 |
+
|
| 54 |
+
*Supersedes `SAINTHALF/layra-v1-hybrid`.*
|