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.
Files changed (43) hide show
  1. {ragcheck_cli-0.2.6/ragcheck_cli.egg-info → ragcheck_cli-0.2.8}/PKG-INFO +1 -1
  2. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/pyproject.toml +1 -1
  3. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/__init__.py +1 -1
  4. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/core/progress.py +3 -3
  5. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/reports/html_report.py +46 -0
  6. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8/ragcheck_cli.egg-info}/PKG-INFO +1 -1
  7. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/CHANGELOG.md +0 -0
  8. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/LICENSE +0 -0
  9. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/MANIFEST.in +0 -0
  10. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/README.md +0 -0
  11. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/docs/ARCHITECTURE.md +0 -0
  12. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/examples/chunk_demo.py +0 -0
  13. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/examples/classifier_demo.py +0 -0
  14. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/examples/demo.py +0 -0
  15. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/examples/embed_demo.py +0 -0
  16. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/examples/full_pipeline_demo.py +0 -0
  17. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/examples/qa_demo.py +0 -0
  18. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/examples/report_demo.py +0 -0
  19. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/__main__.py +0 -0
  20. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/analyzers/__init__.py +0 -0
  21. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/analyzers/chunkers.py +0 -0
  22. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/analyzers/failure_classifier.py +0 -0
  23. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/analyzers/recommender.py +0 -0
  24. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/cli.py +0 -0
  25. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/core/__init__.py +0 -0
  26. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/core/config.py +0 -0
  27. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/core/config_loader.py +0 -0
  28. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/core/document_loader.py +0 -0
  29. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/core/embeddings.py +0 -0
  30. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/core/vector_store.py +0 -0
  31. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/reports/__init__.py +0 -0
  32. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/reports/chunk_visualizer.py +0 -0
  33. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/reports/export.py +0 -0
  34. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/reports/generator.py +0 -0
  35. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/testers/__init__.py +0 -0
  36. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/testers/auto_qa.py +0 -0
  37. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck/testers/retrieval_tester.py +0 -0
  38. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck_cli.egg-info/SOURCES.txt +0 -0
  39. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck_cli.egg-info/dependency_links.txt +0 -0
  40. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck_cli.egg-info/entry_points.txt +0 -0
  41. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck_cli.egg-info/requires.txt +0 -0
  42. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/ragcheck_cli.egg-info/top_level.txt +0 -0
  43. {ragcheck_cli-0.2.6 → ragcheck_cli-0.2.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ragcheck-cli
3
- Version: 0.2.6
3
+ Version: 0.2.8
4
4
  Summary: Lighthouse for RAG systems - diagnose and fix your retrieval pipeline
5
5
  Author-email: Pranay Mane <pranaymane78@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ragcheck-cli"
3
- version = "0.2.6"
3
+ version = "0.2.8"
4
4
  description = "Lighthouse for RAG systems - diagnose and fix your retrieval pipeline"
5
5
  readme = "README.md"
6
6
  license = {text = "MIT"}
@@ -1,3 +1,3 @@
1
1
  """ragcheck — Lighthouse for RAG systems."""
2
2
 
3
- __version__ = "0.2.6"
3
+ __version__ = "0.2.8"
@@ -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() -> Progress:
16
+ def get_progress() -> RichProgress:
17
17
  """Get a pre-configured Rich Progress instance."""
18
- return Progress(
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ragcheck-cli
3
- Version: 0.2.6
3
+ Version: 0.2.8
4
4
  Summary: Lighthouse for RAG systems - diagnose and fix your retrieval pipeline
5
5
  Author-email: Pranay Mane <pranaymane78@gmail.com>
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes