ragcheck-cli 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/PKG-INFO +194 -193
  2. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/README.md +8 -8
  3. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/pyproject.toml +6 -5
  4. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/__init__.py +1 -1
  5. ragcheck_cli-0.2.1/ragcheck_cli.egg-info/PKG-INFO +194 -0
  6. ragcheck_cli-0.2.1/ragcheck_cli.egg-info/SOURCES.txt +41 -0
  7. ragcheck_cli-0.2.1/ragcheck_cli.egg-info/dependency_links.txt +1 -0
  8. ragcheck_cli-0.2.1/ragcheck_cli.egg-info/entry_points.txt +2 -0
  9. ragcheck_cli-0.2.1/ragcheck_cli.egg-info/requires.txt +19 -0
  10. ragcheck_cli-0.2.1/ragcheck_cli.egg-info/top_level.txt +1 -0
  11. ragcheck_cli-0.2.1/setup.cfg +4 -0
  12. ragcheck_cli-0.2.0/.github/workflows/ragcheck.yml +0 -25
  13. ragcheck_cli-0.2.0/.github/workflows/tests.yml +0 -22
  14. ragcheck_cli-0.2.0/.gitignore +0 -12
  15. ragcheck_cli-0.2.0/CONTRIBUTING.md +0 -31
  16. ragcheck_cli-0.2.0/legal_data/BNSS 2023.pdf +0 -0
  17. ragcheck_cli-0.2.0/legal_data/BNS_2023.pdf +0 -0
  18. ragcheck_cli-0.2.0/legal_data/BSA_2023.pdf +0 -0
  19. ragcheck_cli-0.2.0/ragcheck.yaml +0 -27
  20. ragcheck_cli-0.2.0/sample_data/components.txt +0 -1
  21. ragcheck_cli-0.2.0/sample_data/intro.txt +0 -1
  22. ragcheck_cli-0.2.0/tests/__init__.py +0 -1
  23. ragcheck_cli-0.2.0/tests/integration/test_end_to_end.py +0 -74
  24. ragcheck_cli-0.2.0/tests/integration/test_pip_install.py +0 -26
  25. ragcheck_cli-0.2.0/tests/unit/__init__.py +0 -1
  26. ragcheck_cli-0.2.0/tests/unit/test_auto_qa.py +0 -36
  27. ragcheck_cli-0.2.0/tests/unit/test_chunkers.py +0 -150
  28. ragcheck_cli-0.2.0/tests/unit/test_cli.py +0 -44
  29. ragcheck_cli-0.2.0/tests/unit/test_config.py +0 -33
  30. ragcheck_cli-0.2.0/tests/unit/test_embeddings.py +0 -30
  31. ragcheck_cli-0.2.0/tests/unit/test_failure_classifier.py +0 -58
  32. ragcheck_cli-0.2.0/tests/unit/test_html_report.py +0 -73
  33. ragcheck_cli-0.2.0/tests/unit/test_recommender.py +0 -70
  34. ragcheck_cli-0.2.0/tests/unit/test_retrieval_tester.py +0 -97
  35. ragcheck_cli-0.2.0/tests/unit/test_vector_store.py +0 -61
  36. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/CHANGELOG.md +0 -0
  37. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/LICENSE +0 -0
  38. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/MANIFEST.in +0 -0
  39. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/docs/ARCHITECTURE.md +0 -0
  40. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/examples/chunk_demo.py +0 -0
  41. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/examples/classifier_demo.py +0 -0
  42. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/examples/demo.py +0 -0
  43. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/examples/embed_demo.py +0 -0
  44. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/examples/full_pipeline_demo.py +0 -0
  45. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/examples/qa_demo.py +0 -0
  46. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/examples/report_demo.py +0 -0
  47. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/__main__.py +0 -0
  48. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/analyzers/__init__.py +0 -0
  49. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/analyzers/chunkers.py +0 -0
  50. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/analyzers/failure_classifier.py +0 -0
  51. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/analyzers/recommender.py +0 -0
  52. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/cli.py +0 -0
  53. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/core/__init__.py +0 -0
  54. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/core/config.py +0 -0
  55. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/core/config_loader.py +0 -0
  56. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/core/document_loader.py +0 -0
  57. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/core/embeddings.py +0 -0
  58. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/core/progress.py +0 -0
  59. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/core/vector_store.py +0 -0
  60. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/reports/__init__.py +0 -0
  61. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/reports/chunk_visualizer.py +0 -0
  62. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/reports/export.py +0 -0
  63. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/reports/generator.py +0 -0
  64. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/reports/html_report.py +0 -0
  65. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/testers/__init__.py +0 -0
  66. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/testers/auto_qa.py +0 -0
  67. {ragcheck_cli-0.2.0 → ragcheck_cli-0.2.1}/ragcheck/testers/retrieval_tester.py +0 -0
@@ -1,193 +1,194 @@
1
- Metadata-Version: 2.4
2
- Name: ragcheck-cli
3
- Version: 0.2.0
4
- Summary: Lighthouse for RAG systems — diagnose and fix your retrieval pipeline
5
- Project-URL: Homepage, https://github.com/pranay7863/ragcheck
6
- Project-URL: Documentation, https://github.com/pranay7863/ragcheck/blob/main/README.md
7
- Project-URL: Repository, https://github.com/pranay7863/ragcheck
8
- Project-URL: Issues, https://github.com/pranay7863/ragcheck/issues
9
- Author-email: Pranay Mane <pranaymane78@gmail.com>
10
- License: MIT
11
- License-File: LICENSE
12
- Keywords: ai,chunking,diagnostics,evaluation,llm,rag,retrieval
13
- Classifier: Development Status :: 3 - Alpha
14
- Classifier: Intended Audience :: Developers
15
- Classifier: License :: OSI Approved :: MIT License
16
- Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3.11
18
- Classifier: Programming Language :: Python :: 3.12
19
- Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
- Classifier: Topic :: Software Development :: Quality Assurance
21
- Requires-Python: >=3.10
22
- Requires-Dist: chromadb>=0.4.0
23
- Requires-Dist: jinja2>=3.1.0
24
- Requires-Dist: litellm>=1.0.0
25
- Requires-Dist: nltk>=3.9.0
26
- Requires-Dist: pydantic>=2.5.0
27
- Requires-Dist: pyyaml>=6.0
28
- Requires-Dist: rich>=13.0.0
29
- Requires-Dist: sentence-transformers>=2.2.0
30
- Requires-Dist: transformers>=4.30.0
31
- Requires-Dist: typer>=0.12.0
32
- Provides-Extra: export
33
- Requires-Dist: playwright>=1.40.0; extra == 'export'
34
- Provides-Extra: pdf
35
- Requires-Dist: pypdf2>=3.0.0; extra == 'pdf'
36
- Provides-Extra: ragas
37
- Requires-Dist: ragas<0.5.0,>=0.4.0; extra == 'ragas'
38
- Description-Content-Type: text/markdown
39
-
40
- # ragcheck - Lighthouse for RAG Systems
41
-
42
- [![PyPI version](https://badge.fury.io/py/ragcheck.svg)](https://badge.fury.io/py/ragcheck)
43
- [![Python](https://img.shields.io/badge/python-3.11%2B-blue)](https://www.python.org/)
44
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
45
-
46
- > One command to diagnose your RAG pipeline and get actionable fixes.
47
-
48
- ```bash
49
- pip install ragcheck
50
- ragcheck init
51
- ragcheck run --docs ./data --query "What is Article 370?"
52
- ```
53
-
54
- ## What is ragcheck?
55
-
56
- **ragcheck** is a lightweight, one-command diagnostic CLI that generates a beautiful, shareable HTML report analyzing why your RAG system fails and how to fix it.
57
-
58
- Think of it as **Lighthouse for RAG systems** — just like Lighthouse audits web pages, ragcheck audits your retrieval pipeline.
59
-
60
- ## Features
61
-
62
- - **Auto-Generated Test Suite** - 50 synthetic questions from your documents
63
- - **Chunk Visualizer** - See exactly where your chunking breaks
64
- - **Retrieval Heatmap** - Identify dead chunks and dominant chunks
65
- - **Failure Classification** - Know WHY your RAG fails, not just THAT it fails
66
- - **Actionable Recommendations** - Specific fixes with predicted impact
67
- - **CI/CD Integration** - Fail builds when RAG quality regresses
68
-
69
- ## Quick Start
70
-
71
- ### Installation
72
-
73
- ```bash
74
- pip install ragcheck
75
- ```
76
-
77
- Or with [uv](https://github.com/astral-sh/uv):
78
-
79
- ```bash
80
- uv tool install ragcheck
81
- ```
82
-
83
- ### Initialize
84
-
85
- ```bash
86
- ragcheck init
87
- ```
88
-
89
- Creates a `ragcheck.yaml` config file in your project.
90
-
91
- ### Run Analysis
92
-
93
- ```bash
94
- ragcheck run --docs ./data --query "Your test query"
95
- ```
96
-
97
- Generates `ragcheck_report.html` with:
98
- - Scorecards (retrieval accuracy, faithfulness)
99
- - Chunk boundary visualization
100
- - Retrieval heatmap
101
- - Failure mode classification
102
- - Before/after score predictions
103
-
104
- ### CI Mode
105
-
106
- ```bash
107
- ragcheck run --docs ./data --ci --min-score 0.80
108
- ```
109
-
110
- Returns exit code 0/1. Use in GitHub Actions to fail builds on quality regression.
111
-
112
- ## Example Report
113
-
114
- ![ragcheck report](https://raw.githubusercontent.com/yourusername/ragcheck/main/docs/report-screenshot.png)
115
-
116
- ## Architecture
117
-
118
- ```
119
- ragcheck CLI
120
- ├── Chunk Analyzer (6 strategies + benchmark)
121
- ├── Retriever Tester (auto-QA + dense retrieval)
122
- ├── Failure Classifier (4 failure modes)
123
- ├── Recommendation Engine (decision tree)
124
- └── Report Engine (Jinja2 + CSS/HTML HTML)
125
- ```
126
-
127
- ## Tech Stack
128
-
129
- | Component | Tool |
130
- |-----------|------|
131
- | CLI | Typer + Rich |
132
- | Config | Pydantic |
133
- | Embeddings | sentence-transformers |
134
- | Vector DB | ChromaDB |
135
- | LLM Interface | LiteLLM |
136
- | Reports | Jinja2 + CSS/HTML |
137
-
138
- ## Configuration
139
-
140
- `ragcheck.yaml`:
141
-
142
- ```yaml
143
- project_name: ragcheck
144
- docs_path: ./data
145
- chunking:
146
- strategy: recursive
147
- chunk_size: 512
148
- chunk_overlap: 128
149
- llm:
150
- provider: openai
151
- model: gpt-3.5-turbo
152
- retrieval:
153
- top_k: 5
154
- similarity_threshold: 0.7
155
- report:
156
- format: html
157
- include_heatmap: true
158
- ```
159
-
160
- ## Development
161
-
162
- ```bash
163
- git clone https://github.com/pranay7863/ragcheck.git
164
- cd ragcheck
165
- uv sync
166
- uv run pytest
167
- uv run ruff check .
168
- uv run mypy ragcheck/
169
- ```
170
-
171
- ## Contributing
172
-
173
- See [CONTRIBUTING.md](CONTRIBUTING.md)
174
-
175
- ## License
176
-
177
- MIT — see [LICENSE](LICENSE)
178
-
179
- ## Roadmap
180
-
181
- - [x] v0.2.0 — Offline reports, NLI faithfulness, scaled auto-QA, chunk viz
182
- - [ ] v0.3.0 — More vector DBs (Pinecone, Weaviate)
183
- - [ ] v0.3.0 — SaaS API for teams
184
- - [ ] v0.4.0 — Enterprise features (SSO, audit logs)
185
-
186
- ## Support
187
-
188
- - [GitHub Issues](https://github.com/pranay7863/ragcheck/issues)
189
- - Twitter: [@ypranay53](https://twitter.com/pranay53)
190
-
191
- ---
192
-
193
- **Built with discipline.** Read the [blueprint](docs/ARCHITECTURE.md) that started it all.
1
+ Metadata-Version: 2.4
2
+ Name: ragcheck-cli
3
+ Version: 0.2.1
4
+ Summary: Lighthouse for RAG systems — diagnose and fix your retrieval pipeline
5
+ Author-email: Pranay Mane <pranaymane78@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/pranay7863/ragcheck
8
+ Project-URL: Documentation, https://github.com/pranay7863/ragcheck/blob/main/README.md
9
+ Project-URL: Repository, https://github.com/pranay7863/ragcheck
10
+ Project-URL: Issues, https://github.com/pranay7863/ragcheck/issues
11
+ Keywords: rag,llm,evaluation,retrieval,ai,chunking,diagnostics
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
+ Classifier: Topic :: Software Development :: Quality Assurance
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: typer>=0.12.0
24
+ Requires-Dist: rich>=13.0.0
25
+ Requires-Dist: jinja2>=3.1.0
26
+ Requires-Dist: nltk>=3.9.0
27
+ Requires-Dist: pydantic>=2.5.0
28
+ Requires-Dist: litellm>=1.0.0
29
+ Requires-Dist: sentence-transformers>=2.2.0
30
+ Requires-Dist: chromadb>=0.4.0
31
+ Requires-Dist: PyYAML>=6.0
32
+ Requires-Dist: transformers>=4.30.0
33
+ Provides-Extra: pdf
34
+ Requires-Dist: PyPDF2>=3.0.0; extra == "pdf"
35
+ Provides-Extra: export
36
+ Requires-Dist: playwright>=1.40.0; extra == "export"
37
+ Provides-Extra: ragas
38
+ Requires-Dist: ragas<0.5.0,>=0.4.0; extra == "ragas"
39
+ Dynamic: license-file
40
+
41
+ # ragcheck - Lighthouse for RAG Systems
42
+
43
+ [![PyPI version](https://badge.fury.io/py/ragcheck-cli.svg)](https://badge.fury.io/py/ragcheck-cli)
44
+ [![Python](https://img.shields.io/badge/python-3.11%2B-blue)](https://www.python.org/)
45
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
46
+
47
+ > One command to diagnose your RAG pipeline and get actionable fixes.
48
+
49
+ ```bash
50
+ pip install ragcheck-cli
51
+ ragcheck init
52
+ ragcheck run --docs ./data --query "What is Article 370?"
53
+ ```
54
+
55
+ ## What is ragcheck?
56
+
57
+ **ragcheck** is a lightweight, one-command diagnostic CLI that generates a beautiful, shareable HTML report analyzing why your RAG system fails and how to fix it.
58
+
59
+ Think of it as **Lighthouse for RAG systems** — just like Lighthouse audits web pages, ragcheck audits your retrieval pipeline.
60
+
61
+ ## Features
62
+
63
+ - **Auto-Generated Test Suite** - 50 synthetic questions from your documents
64
+ - **Chunk Visualizer** - See exactly where your chunking breaks
65
+ - **Retrieval Heatmap** - Identify dead chunks and dominant chunks
66
+ - **Failure Classification** - Know WHY your RAG fails, not just THAT it fails
67
+ - **Actionable Recommendations** - Specific fixes with predicted impact
68
+ - **CI/CD Integration** - Fail builds when RAG quality regresses
69
+
70
+ ## Quick Start
71
+
72
+ ### Installation
73
+
74
+ ```bash
75
+ pip install ragcheck-cli
76
+ ```
77
+
78
+ Or with [uv](https://github.com/astral-sh/uv):
79
+
80
+ ```bash
81
+ uv tool install ragcheck-cli
82
+ ```
83
+
84
+ ### Initialize
85
+
86
+ ```bash
87
+ ragcheck init
88
+ ```
89
+
90
+ Creates a `ragcheck.yaml` config file in your project.
91
+
92
+ ### Run Analysis
93
+
94
+ ```bash
95
+ ragcheck run --docs ./data --query "Your test query"
96
+ ```
97
+
98
+ Generates `ragcheck_report.html` with:
99
+ - Scorecards (retrieval accuracy, faithfulness)
100
+ - Chunk boundary visualization
101
+ - Retrieval heatmap
102
+ - Failure mode classification
103
+ - Before/after score predictions
104
+
105
+ ### CI Mode
106
+
107
+ ```bash
108
+ ragcheck run --docs ./data --ci --min-score 0.80
109
+ ```
110
+
111
+ Returns exit code 0/1. Use in GitHub Actions to fail builds on quality regression.
112
+
113
+ ## Example Report
114
+
115
+ ![ragcheck report](https://raw.githubusercontent.com/pranay7863/ragcheck/main/docs/report-screenshot.png)
116
+
117
+ ## Architecture
118
+
119
+ ```
120
+ ragcheck CLI
121
+ ├── Chunk Analyzer (6 strategies + benchmark)
122
+ ├── Retriever Tester (auto-QA + dense retrieval)
123
+ ├── Failure Classifier (4 failure modes)
124
+ ├── Recommendation Engine (decision tree)
125
+ └── Report Engine (Jinja2 + CSS/HTML)
126
+ ```
127
+
128
+ ## Tech Stack
129
+
130
+ | Component | Tool |
131
+ |-----------|------|
132
+ | CLI | Typer + Rich |
133
+ | Config | Pydantic |
134
+ | Embeddings | sentence-transformers |
135
+ | Vector DB | ChromaDB |
136
+ | LLM Interface | LiteLLM |
137
+ | Reports | Jinja2 + CSS/HTML |
138
+
139
+ ## Configuration
140
+
141
+ `ragcheck.yaml`:
142
+
143
+ ```yaml
144
+ project_name: ragcheck
145
+ docs_path: ./data
146
+ chunking:
147
+ strategy: recursive
148
+ chunk_size: 512
149
+ chunk_overlap: 128
150
+ llm:
151
+ provider: openai
152
+ model: gpt-3.5-turbo
153
+ retrieval:
154
+ top_k: 5
155
+ similarity_threshold: 0.7
156
+ report:
157
+ format: html
158
+ include_heatmap: true
159
+ ```
160
+
161
+ ## Development
162
+
163
+ ```bash
164
+ git clone https://github.com/pranay7863/ragcheck.git
165
+ cd ragcheck
166
+ uv sync
167
+ uv run pytest
168
+ uv run ruff check .
169
+ uv run mypy ragcheck/
170
+ ```
171
+
172
+ ## Contributing
173
+
174
+ See [CONTRIBUTING.md](CONTRIBUTING.md)
175
+
176
+ ## License
177
+
178
+ MIT — see [LICENSE](LICENSE)
179
+
180
+ ## Roadmap
181
+
182
+ - [x] v0.2.0 — Offline reports, NLI faithfulness, scaled auto-QA, chunk viz
183
+ - [ ] v0.3.0 — More vector DBs (Pinecone, Weaviate)
184
+ - [ ] v0.3.0 — SaaS API for teams
185
+ - [ ] v0.4.0 — Enterprise features (SSO, audit logs)
186
+
187
+ ## Support
188
+
189
+ - [GitHub](https://github.com/pranay7863/ragcheck)
190
+ - Twitter: [@mane_pranay](https://twitter.com/mane_pranay)
191
+
192
+ ---
193
+
194
+ **Built with discipline.** Read the [blueprint](docs/ARCHITECTURE.md) that started it all.
@@ -1,13 +1,13 @@
1
1
  # ragcheck - Lighthouse for RAG Systems
2
2
 
3
- [![PyPI version](https://badge.fury.io/py/ragcheck.svg)](https://badge.fury.io/py/ragcheck)
3
+ [![PyPI version](https://badge.fury.io/py/ragcheck-cli.svg)](https://badge.fury.io/py/ragcheck-cli)
4
4
  [![Python](https://img.shields.io/badge/python-3.11%2B-blue)](https://www.python.org/)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
6
 
7
7
  > One command to diagnose your RAG pipeline and get actionable fixes.
8
8
 
9
9
  ```bash
10
- pip install ragcheck
10
+ pip install ragcheck-cli
11
11
  ragcheck init
12
12
  ragcheck run --docs ./data --query "What is Article 370?"
13
13
  ```
@@ -32,13 +32,13 @@ Think of it as **Lighthouse for RAG systems** — just like Lighthouse audits we
32
32
  ### Installation
33
33
 
34
34
  ```bash
35
- pip install ragcheck
35
+ pip install ragcheck-cli
36
36
  ```
37
37
 
38
38
  Or with [uv](https://github.com/astral-sh/uv):
39
39
 
40
40
  ```bash
41
- uv tool install ragcheck
41
+ uv tool install ragcheck-cli
42
42
  ```
43
43
 
44
44
  ### Initialize
@@ -72,7 +72,7 @@ Returns exit code 0/1. Use in GitHub Actions to fail builds on quality regressio
72
72
 
73
73
  ## Example Report
74
74
 
75
- ![ragcheck report](https://raw.githubusercontent.com/yourusername/ragcheck/main/docs/report-screenshot.png)
75
+ ![ragcheck report](https://raw.githubusercontent.com/pranay7863/ragcheck/main/docs/report-screenshot.png)
76
76
 
77
77
  ## Architecture
78
78
 
@@ -82,7 +82,7 @@ ragcheck CLI
82
82
  ├── Retriever Tester (auto-QA + dense retrieval)
83
83
  ├── Failure Classifier (4 failure modes)
84
84
  ├── Recommendation Engine (decision tree)
85
- └── Report Engine (Jinja2 + CSS/HTML HTML)
85
+ └── Report Engine (Jinja2 + CSS/HTML)
86
86
  ```
87
87
 
88
88
  ## Tech Stack
@@ -146,8 +146,8 @@ MIT — see [LICENSE](LICENSE)
146
146
 
147
147
  ## Support
148
148
 
149
- - [GitHub Issues](https://github.com/pranay7863/ragcheck/issues)
150
- - Twitter: [@ypranay53](https://twitter.com/pranay53)
149
+ - [GitHub](https://github.com/pranay7863/ragcheck)
150
+ - Twitter: [@mane_pranay](https://twitter.com/mane_pranay)
151
151
 
152
152
  ---
153
153
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ragcheck-cli"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Lighthouse for RAG systems — diagnose and fix your retrieval pipeline"
5
5
  readme = "README.md"
6
6
  license = {text = "MIT"}
@@ -48,11 +48,12 @@ Repository = "https://github.com/pranay7863/ragcheck"
48
48
  Issues = "https://github.com/pranay7863/ragcheck/issues"
49
49
 
50
50
  [build-system]
51
- requires = ["hatchling"]
52
- build-backend = "hatchling.build"
51
+ requires = ["setuptools>=61.0", "wheel"]
52
+ build-backend = "setuptools.build_meta"
53
53
 
54
- [tool.hatch.build.targets.wheel]
55
- packages = ["src/ragcheck"]
54
+ [tool.setuptools.packages.find]
55
+ where = ["."]
56
+ include = ["ragcheck*"]
56
57
 
57
58
  [tool.ruff]
58
59
  line-length = 100
@@ -1,3 +1,3 @@
1
1
  """ragcheck — Lighthouse for RAG systems."""
2
2
 
3
- __version__ = "0.2.0"
3
+ __version__ = "0.2.1"
@@ -0,0 +1,194 @@
1
+ Metadata-Version: 2.4
2
+ Name: ragcheck-cli
3
+ Version: 0.2.1
4
+ Summary: Lighthouse for RAG systems — diagnose and fix your retrieval pipeline
5
+ Author-email: Pranay Mane <pranaymane78@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/pranay7863/ragcheck
8
+ Project-URL: Documentation, https://github.com/pranay7863/ragcheck/blob/main/README.md
9
+ Project-URL: Repository, https://github.com/pranay7863/ragcheck
10
+ Project-URL: Issues, https://github.com/pranay7863/ragcheck/issues
11
+ Keywords: rag,llm,evaluation,retrieval,ai,chunking,diagnostics
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
+ Classifier: Topic :: Software Development :: Quality Assurance
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: typer>=0.12.0
24
+ Requires-Dist: rich>=13.0.0
25
+ Requires-Dist: jinja2>=3.1.0
26
+ Requires-Dist: nltk>=3.9.0
27
+ Requires-Dist: pydantic>=2.5.0
28
+ Requires-Dist: litellm>=1.0.0
29
+ Requires-Dist: sentence-transformers>=2.2.0
30
+ Requires-Dist: chromadb>=0.4.0
31
+ Requires-Dist: PyYAML>=6.0
32
+ Requires-Dist: transformers>=4.30.0
33
+ Provides-Extra: pdf
34
+ Requires-Dist: PyPDF2>=3.0.0; extra == "pdf"
35
+ Provides-Extra: export
36
+ Requires-Dist: playwright>=1.40.0; extra == "export"
37
+ Provides-Extra: ragas
38
+ Requires-Dist: ragas<0.5.0,>=0.4.0; extra == "ragas"
39
+ Dynamic: license-file
40
+
41
+ # ragcheck - Lighthouse for RAG Systems
42
+
43
+ [![PyPI version](https://badge.fury.io/py/ragcheck-cli.svg)](https://badge.fury.io/py/ragcheck-cli)
44
+ [![Python](https://img.shields.io/badge/python-3.11%2B-blue)](https://www.python.org/)
45
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
46
+
47
+ > One command to diagnose your RAG pipeline and get actionable fixes.
48
+
49
+ ```bash
50
+ pip install ragcheck-cli
51
+ ragcheck init
52
+ ragcheck run --docs ./data --query "What is Article 370?"
53
+ ```
54
+
55
+ ## What is ragcheck?
56
+
57
+ **ragcheck** is a lightweight, one-command diagnostic CLI that generates a beautiful, shareable HTML report analyzing why your RAG system fails and how to fix it.
58
+
59
+ Think of it as **Lighthouse for RAG systems** — just like Lighthouse audits web pages, ragcheck audits your retrieval pipeline.
60
+
61
+ ## Features
62
+
63
+ - **Auto-Generated Test Suite** - 50 synthetic questions from your documents
64
+ - **Chunk Visualizer** - See exactly where your chunking breaks
65
+ - **Retrieval Heatmap** - Identify dead chunks and dominant chunks
66
+ - **Failure Classification** - Know WHY your RAG fails, not just THAT it fails
67
+ - **Actionable Recommendations** - Specific fixes with predicted impact
68
+ - **CI/CD Integration** - Fail builds when RAG quality regresses
69
+
70
+ ## Quick Start
71
+
72
+ ### Installation
73
+
74
+ ```bash
75
+ pip install ragcheck-cli
76
+ ```
77
+
78
+ Or with [uv](https://github.com/astral-sh/uv):
79
+
80
+ ```bash
81
+ uv tool install ragcheck-cli
82
+ ```
83
+
84
+ ### Initialize
85
+
86
+ ```bash
87
+ ragcheck init
88
+ ```
89
+
90
+ Creates a `ragcheck.yaml` config file in your project.
91
+
92
+ ### Run Analysis
93
+
94
+ ```bash
95
+ ragcheck run --docs ./data --query "Your test query"
96
+ ```
97
+
98
+ Generates `ragcheck_report.html` with:
99
+ - Scorecards (retrieval accuracy, faithfulness)
100
+ - Chunk boundary visualization
101
+ - Retrieval heatmap
102
+ - Failure mode classification
103
+ - Before/after score predictions
104
+
105
+ ### CI Mode
106
+
107
+ ```bash
108
+ ragcheck run --docs ./data --ci --min-score 0.80
109
+ ```
110
+
111
+ Returns exit code 0/1. Use in GitHub Actions to fail builds on quality regression.
112
+
113
+ ## Example Report
114
+
115
+ ![ragcheck report](https://raw.githubusercontent.com/pranay7863/ragcheck/main/docs/report-screenshot.png)
116
+
117
+ ## Architecture
118
+
119
+ ```
120
+ ragcheck CLI
121
+ ├── Chunk Analyzer (6 strategies + benchmark)
122
+ ├── Retriever Tester (auto-QA + dense retrieval)
123
+ ├── Failure Classifier (4 failure modes)
124
+ ├── Recommendation Engine (decision tree)
125
+ └── Report Engine (Jinja2 + CSS/HTML)
126
+ ```
127
+
128
+ ## Tech Stack
129
+
130
+ | Component | Tool |
131
+ |-----------|------|
132
+ | CLI | Typer + Rich |
133
+ | Config | Pydantic |
134
+ | Embeddings | sentence-transformers |
135
+ | Vector DB | ChromaDB |
136
+ | LLM Interface | LiteLLM |
137
+ | Reports | Jinja2 + CSS/HTML |
138
+
139
+ ## Configuration
140
+
141
+ `ragcheck.yaml`:
142
+
143
+ ```yaml
144
+ project_name: ragcheck
145
+ docs_path: ./data
146
+ chunking:
147
+ strategy: recursive
148
+ chunk_size: 512
149
+ chunk_overlap: 128
150
+ llm:
151
+ provider: openai
152
+ model: gpt-3.5-turbo
153
+ retrieval:
154
+ top_k: 5
155
+ similarity_threshold: 0.7
156
+ report:
157
+ format: html
158
+ include_heatmap: true
159
+ ```
160
+
161
+ ## Development
162
+
163
+ ```bash
164
+ git clone https://github.com/pranay7863/ragcheck.git
165
+ cd ragcheck
166
+ uv sync
167
+ uv run pytest
168
+ uv run ruff check .
169
+ uv run mypy ragcheck/
170
+ ```
171
+
172
+ ## Contributing
173
+
174
+ See [CONTRIBUTING.md](CONTRIBUTING.md)
175
+
176
+ ## License
177
+
178
+ MIT — see [LICENSE](LICENSE)
179
+
180
+ ## Roadmap
181
+
182
+ - [x] v0.2.0 — Offline reports, NLI faithfulness, scaled auto-QA, chunk viz
183
+ - [ ] v0.3.0 — More vector DBs (Pinecone, Weaviate)
184
+ - [ ] v0.3.0 — SaaS API for teams
185
+ - [ ] v0.4.0 — Enterprise features (SSO, audit logs)
186
+
187
+ ## Support
188
+
189
+ - [GitHub](https://github.com/pranay7863/ragcheck)
190
+ - Twitter: [@mane_pranay](https://twitter.com/mane_pranay)
191
+
192
+ ---
193
+
194
+ **Built with discipline.** Read the [blueprint](docs/ARCHITECTURE.md) that started it all.