ragcheck-cli 0.2.8__tar.gz → 0.2.10__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.8/ragcheck_cli.egg-info → ragcheck_cli-0.2.10}/PKG-INFO +1 -1
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/pyproject.toml +1 -1
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/__init__.py +1 -1
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/analyzers/chunkers.py +2 -2
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/cli.py +2 -2
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10/ragcheck_cli.egg-info}/PKG-INFO +1 -1
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/CHANGELOG.md +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/LICENSE +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/MANIFEST.in +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/README.md +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/docs/ARCHITECTURE.md +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/examples/chunk_demo.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/examples/classifier_demo.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/examples/demo.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/examples/embed_demo.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/examples/full_pipeline_demo.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/examples/qa_demo.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/examples/report_demo.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/__main__.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/analyzers/__init__.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/analyzers/failure_classifier.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/analyzers/recommender.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/core/__init__.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/core/config.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/core/config_loader.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/core/document_loader.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/core/embeddings.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/core/progress.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/core/vector_store.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/reports/__init__.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/reports/chunk_visualizer.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/reports/export.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/reports/generator.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/reports/html_report.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/testers/__init__.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/testers/auto_qa.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck/testers/retrieval_tester.py +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck_cli.egg-info/SOURCES.txt +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck_cli.egg-info/dependency_links.txt +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck_cli.egg-info/entry_points.txt +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck_cli.egg-info/requires.txt +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/ragcheck_cli.egg-info/top_level.txt +0 -0
- {ragcheck_cli-0.2.8 → ragcheck_cli-0.2.10}/setup.cfg +0 -0
|
@@ -12,8 +12,8 @@ class Chunk:
|
|
|
12
12
|
def __init__(self, text: str, metadata: Dict[str, Any] = None):
|
|
13
13
|
self.text = text
|
|
14
14
|
self.metadata = metadata or {}
|
|
15
|
-
self.start = metadata.get("start", 0)
|
|
16
|
-
self.end = metadata.get("end", len(text))
|
|
15
|
+
self.start = self.metadata.get("start", 0)
|
|
16
|
+
self.end = self.metadata.get("end", len(text))
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class Chunker:
|
|
@@ -21,7 +21,7 @@ from ragcheck.analyzers.chunkers import Chunker
|
|
|
21
21
|
from ragcheck.analyzers.failure_classifier import FailureClassifier
|
|
22
22
|
from ragcheck.analyzers.recommender import Recommender
|
|
23
23
|
from ragcheck.testers.auto_qa import AutoQA, generate_dummy_questions
|
|
24
|
-
from ragcheck.testers.retrieval_tester import RetrievalTester
|
|
24
|
+
from ragcheck.testers.retrieval_tester import RetrievalTester, TestQuestion
|
|
25
25
|
from ragcheck.reports.generator import ReportGenerator
|
|
26
26
|
from ragcheck.reports.html_report import HTMLReport
|
|
27
27
|
|
|
@@ -131,7 +131,7 @@ def run(
|
|
|
131
131
|
questions = []
|
|
132
132
|
if query:
|
|
133
133
|
# Single query mode — create question from user query
|
|
134
|
-
questions.append(
|
|
134
|
+
questions.append(TestQuestion(
|
|
135
135
|
question=query,
|
|
136
136
|
expected_answer="", # Will be filled by retrieval
|
|
137
137
|
source_chunks=[query], # Use query as proxy for source
|
|
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
|