ragcheck-cli 0.2.0__py3-none-any.whl

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.
@@ -0,0 +1,193 @@
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.
@@ -0,0 +1,5 @@
1
+ ragcheck_cli-0.2.0.dist-info/METADATA,sha256=JPpmFymaWImVpuUKi0rLZREHIXT2nr3N-Ox9eiz4SlM,5234
2
+ ragcheck_cli-0.2.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
3
+ ragcheck_cli-0.2.0.dist-info/entry_points.txt,sha256=QqpErtZhq0YrjKK5Zb5F1mo5RXGujeMxooiT0W6DXMc,46
4
+ ragcheck_cli-0.2.0.dist-info/licenses/LICENSE,sha256=nvPUPz4ZTWla9Kj_H9V9STjmz39v9DiIAuGuXxjAKSw,1068
5
+ ragcheck_cli-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.30.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ ragcheck = ragcheck.cli:app
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Pranay Mane
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.