ragcheck-cli 0.2.6__tar.gz → 0.2.8__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.
- {ragcheck_cli-0.2.6/ragcheck_cli.egg-info → ragcheck_cli-0.2.8}/PKG-INFO +1 -1
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/pyproject.toml +1 -1
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/__init__.py +1 -1
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/core/progress.py +3 -3
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/reports/html_report.py +46 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8/ragcheck_cli.egg-info}/PKG-INFO +1 -1
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/CHANGELOG.md +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/LICENSE +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/MANIFEST.in +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/README.md +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/docs/ARCHITECTURE.md +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/examples/chunk_demo.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/examples/classifier_demo.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/examples/demo.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/examples/embed_demo.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/examples/full_pipeline_demo.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/examples/qa_demo.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/examples/report_demo.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/__main__.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/analyzers/__init__.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/analyzers/chunkers.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/analyzers/failure_classifier.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/analyzers/recommender.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/cli.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/core/__init__.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/core/config.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/core/config_loader.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/core/document_loader.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/core/embeddings.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/core/vector_store.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/reports/__init__.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/reports/chunk_visualizer.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/reports/export.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/reports/generator.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/testers/__init__.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/testers/auto_qa.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/testers/retrieval_tester.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck_cli.egg-info/SOURCES.txt +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck_cli.egg-info/dependency_links.txt +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck_cli.egg-info/entry_points.txt +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck_cli.egg-info/requires.txt +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck_cli.egg-info/top_level.txt +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/setup.cfg +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from rich.console import Console
|
|
4
4
|
from rich.progress import (
|
|
5
5
|
BarColumn,
|
|
6
|
-
Progress,
|
|
6
|
+
Progress as RichProgress,
|
|
7
7
|
SpinnerColumn,
|
|
8
8
|
TextColumn,
|
|
9
9
|
TimeElapsedColumn,
|
|
@@ -13,9 +13,9 @@ from rich.progress import (
|
|
|
13
13
|
console = Console()
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
def get_progress() ->
|
|
16
|
+
def get_progress() -> RichProgress:
|
|
17
17
|
"""Get a pre-configured Rich Progress instance."""
|
|
18
|
-
return
|
|
18
|
+
return RichProgress(
|
|
19
19
|
SpinnerColumn(),
|
|
20
20
|
TextColumn("[progress.description]{task.description}"),
|
|
21
21
|
BarColumn(),
|
|
@@ -510,3 +510,49 @@ class HTMLReport:
|
|
|
510
510
|
def _build_chunk_details(self, chunks: List[Any]) -> str:
|
|
511
511
|
"""Build detailed chunk view."""
|
|
512
512
|
return ""
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
def generate_report(
|
|
516
|
+
project_name: str,
|
|
517
|
+
overall_score: float | None,
|
|
518
|
+
retrieval_score: float | None,
|
|
519
|
+
faithfulness_score: float | None,
|
|
520
|
+
tests_passed: int,
|
|
521
|
+
tests_total: int,
|
|
522
|
+
failures: list[dict],
|
|
523
|
+
recommendations: list[dict],
|
|
524
|
+
current_score: float | None,
|
|
525
|
+
predicted_score: float | None,
|
|
526
|
+
chunk_strategy: str,
|
|
527
|
+
num_chunks: int,
|
|
528
|
+
chunk_histogram: list[dict],
|
|
529
|
+
chunk_details: list[dict],
|
|
530
|
+
avg_chunk_length: float,
|
|
531
|
+
context_loss_score: float,
|
|
532
|
+
heatmap_data: list[dict],
|
|
533
|
+
) -> str:
|
|
534
|
+
"""Generate HTML report from test results (compatibility wrapper).
|
|
535
|
+
|
|
536
|
+
Delegates to HTMLReport.generate() for consistent output.
|
|
537
|
+
"""
|
|
538
|
+
from ragcheck.core.config import Config
|
|
539
|
+
|
|
540
|
+
config = Config()
|
|
541
|
+
reporter = HTMLReport(config)
|
|
542
|
+
|
|
543
|
+
# Build data dict matching HTMLReport.generate() expectations
|
|
544
|
+
data = {
|
|
545
|
+
"project_name": project_name,
|
|
546
|
+
"retrieval_results": {
|
|
547
|
+
"score": (overall_score * 100) if overall_score is not None else 0,
|
|
548
|
+
"passed": tests_passed,
|
|
549
|
+
"total": tests_total,
|
|
550
|
+
"details": [],
|
|
551
|
+
},
|
|
552
|
+
"chunks": [],
|
|
553
|
+
"failures": failures,
|
|
554
|
+
"recommendations": recommendations,
|
|
555
|
+
"config": config,
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
return reporter.generate(data)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|