ragcheck-cli 0.2.6__tar.gz → 0.2.7__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.7}/PKG-INFO +1 -1
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/pyproject.toml +1 -1
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/__init__.py +1 -1
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/reports/html_report.py +46 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7/ragcheck_cli.egg-info}/PKG-INFO +1 -1
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/CHANGELOG.md +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/LICENSE +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/MANIFEST.in +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/README.md +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/docs/ARCHITECTURE.md +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/examples/chunk_demo.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/examples/classifier_demo.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/examples/demo.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/examples/embed_demo.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/examples/full_pipeline_demo.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/examples/qa_demo.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/examples/report_demo.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/__main__.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/analyzers/__init__.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/analyzers/chunkers.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/analyzers/failure_classifier.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/analyzers/recommender.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/cli.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/core/__init__.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/core/config.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/core/config_loader.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/core/document_loader.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/core/embeddings.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/core/progress.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/core/vector_store.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/reports/__init__.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/reports/chunk_visualizer.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/reports/export.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/reports/generator.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/testers/__init__.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/testers/auto_qa.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck/testers/retrieval_tester.py +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck_cli.egg-info/SOURCES.txt +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck_cli.egg-info/dependency_links.txt +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck_cli.egg-info/entry_points.txt +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck_cli.egg-info/requires.txt +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/ragcheck_cli.egg-info/top_level.txt +0 -0
- {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.7}/setup.cfg +0 -0
|
@@ -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
|
|
File without changes
|