Spaces:
Sleeping
Sleeping
Commit ·
cd36943
1
Parent(s): 2415a88
docs: thêm màu vào Mermaid pipeline diagrams
Browse files
README.md
CHANGED
|
@@ -33,6 +33,12 @@ Hệ thống RAG (Retrieval-Augmented Generation) cho tài liệu tài chính ti
|
|
| 33 |
|
| 34 |
```mermaid
|
| 35 |
flowchart TD
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
subgraph INGEST["📥 Ingest (Offline)"]
|
| 37 |
A["Tài liệu PDF / Ảnh"] --> B["Parser\npypdf / EasyOCR"]
|
| 38 |
B --> C["Chunker"]
|
|
@@ -56,12 +62,26 @@ flowchart TD
|
|
| 56 |
RE --> LLM["LLM · Groq\nllama-3.3-70b-versatile"]
|
| 57 |
LLM --> ANS["Câu trả lời + Trích dẫn"]
|
| 58 |
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
```
|
| 60 |
|
| 61 |
### Pipeline B — ColPali Visual Retrieval (thực nghiệm so sánh)
|
| 62 |
|
| 63 |
```mermaid
|
| 64 |
flowchart TD
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
subgraph INGEST["📥 Ingest (Offline)"]
|
| 66 |
A["Trang PDF"] --> B["Render ảnh\npypdfium2 · DPI=100"]
|
| 67 |
B --> C["ColPali v1.2\nPaliGemma + LoRA · 128-dim patches"]
|
|
@@ -74,6 +94,12 @@ flowchart TD
|
|
| 74 |
QE --> S
|
| 75 |
S --> R["Top-k trang PDF"]
|
| 76 |
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
```
|
| 78 |
|
| 79 |
## Công nghệ sử dụng
|
|
|
|
| 33 |
|
| 34 |
```mermaid
|
| 35 |
flowchart TD
|
| 36 |
+
classDef doc fill:#dbeafe,stroke:#3b82f6,color:#1e40af,font-weight:bold
|
| 37 |
+
classDef process fill:#dcfce7,stroke:#16a34a,color:#14532d
|
| 38 |
+
classDef store fill:#fef3c7,stroke:#d97706,color:#92400e,font-weight:bold
|
| 39 |
+
classDef ai fill:#f3e8ff,stroke:#9333ea,color:#581c87,font-weight:bold
|
| 40 |
+
classDef output fill:#ccfbf1,stroke:#0d9488,color:#134e4a,font-weight:bold
|
| 41 |
+
|
| 42 |
subgraph INGEST["📥 Ingest (Offline)"]
|
| 43 |
A["Tài liệu PDF / Ảnh"] --> B["Parser\npypdf / EasyOCR"]
|
| 44 |
B --> C["Chunker"]
|
|
|
|
| 62 |
RE --> LLM["LLM · Groq\nllama-3.3-70b-versatile"]
|
| 63 |
LLM --> ANS["Câu trả lời + Trích dẫn"]
|
| 64 |
end
|
| 65 |
+
|
| 66 |
+
class A doc
|
| 67 |
+
class B,C process
|
| 68 |
+
class CR,EMB,QR,QE,RE,LLM ai
|
| 69 |
+
class VDB,BM25 store
|
| 70 |
+
class VS,BS,RRF process
|
| 71 |
+
class Q doc
|
| 72 |
+
class ANS output
|
| 73 |
```
|
| 74 |
|
| 75 |
### Pipeline B — ColPali Visual Retrieval (thực nghiệm so sánh)
|
| 76 |
|
| 77 |
```mermaid
|
| 78 |
flowchart TD
|
| 79 |
+
classDef doc fill:#dbeafe,stroke:#3b82f6,color:#1e40af,font-weight:bold
|
| 80 |
+
classDef process fill:#dcfce7,stroke:#16a34a,color:#14532d
|
| 81 |
+
classDef store fill:#fef3c7,stroke:#d97706,color:#92400e,font-weight:bold
|
| 82 |
+
classDef ai fill:#f3e8ff,stroke:#9333ea,color:#581c87,font-weight:bold
|
| 83 |
+
classDef output fill:#ccfbf1,stroke:#0d9488,color:#134e4a,font-weight:bold
|
| 84 |
+
|
| 85 |
subgraph INGEST["📥 Ingest (Offline)"]
|
| 86 |
A["Trang PDF"] --> B["Render ảnh\npypdfium2 · DPI=100"]
|
| 87 |
B --> C["ColPali v1.2\nPaliGemma + LoRA · 128-dim patches"]
|
|
|
|
| 94 |
QE --> S
|
| 95 |
S --> R["Top-k trang PDF"]
|
| 96 |
end
|
| 97 |
+
|
| 98 |
+
class A,Q doc
|
| 99 |
+
class B,S process
|
| 100 |
+
class C,QE ai
|
| 101 |
+
class D store
|
| 102 |
+
class R output
|
| 103 |
```
|
| 104 |
|
| 105 |
## Công nghệ sử dụng
|