AI Slop Code Risk Monitor

vibrantlabsai/ragas

SlopCodeMonitor badge for vibrantlabsai/ragas Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Supercharge Your LLM Application Evaluations 🚀

29.0 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for vibrantlabsai/ragas, a Python project with 16,316 GitHub stars. SynthScan examined 110,684 lines of code across 593 source files, recording 2111 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 29.0 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

29.0
Adjusted Signal
29.0
Raw Pattern Score
100%
Time Factor
2026-11-14
Last Push
16.3K
Stars
Python
Language
110.7K
Lines of Code
593
Files
2.1K
Pattern Hits
2026-11-14
Scan Date
0.25
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-14.

Cognitive Ownership Risk 57.4/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 1301 finding(s).

Hallucinated Dependency & Supply Chain Risk 18.4/100 · LOW

Are imports declared and package/API names verified? 379 finding(s).

Agent Over-Engineering Ratio 54.9/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 1298 finding(s).

PR Review Velocity Impact 77.3/100 · CRITICAL

Which changes need focused human review? 2111 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 2HIGH 147MEDIUM 211LOW 1751

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 2111 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers843 hits · 864 pts
SeverityFileLineSnippetContext
LOWtests/test_quoted_spans.py36def test_mixed_case_and_whitespace():CODE
LOWtests/test_quoted_spans.py44def test_no_quotes_returns_zero_with_zero_denominator():CODE
LOW⚡tests/unit/test_tool_call_accuracy.py27 def test_is_sequence_aligned_perfect_match(self, tool_call_accuracy):CODE
LOW⚡tests/unit/test_tool_call_accuracy.py33 def test_is_sequence_aligned_different_order(self, tool_call_accuracy):CODE
LOW⚡tests/unit/test_tool_call_accuracy.py39 def test_is_sequence_aligned_different_length(self, tool_call_accuracy):CODE
LOW⚡tests/unit/test_tool_call_accuracy.py45 def test_is_sequence_aligned_empty_sequences(self, tool_call_accuracy):CODE
LOW⚡tests/unit/test_tool_call_accuracy.py50 async def test_perfect_match_scenario(self, tool_call_accuracy, mock_callbacks):CODE
LOWtests/unit/test_tool_call_accuracy.py81 async def test_no_predicted_tool_calls(self, tool_call_accuracy, mock_callbacks):CODE
LOWtests/unit/test_tool_call_accuracy.py95 async def test_sequence_misalignment(self, tool_call_accuracy, mock_callbacks):CODE
LOWtests/unit/test_tool_call_accuracy.py121 async def test_length_mismatch_more_predicted(CODE
LOWtests/unit/test_tool_call_accuracy.py148 async def test_length_mismatch_fewer_predicted(CODE
LOWtests/unit/test_tool_call_accuracy.py175 async def test_partial_argument_match(self, tool_call_accuracy, mock_callbacks):CODE
LOWtests/unit/test_tool_call_accuracy.py221 async def test_multiple_ai_messages(self, tool_call_accuracy, mock_callbacks):CODE
LOWtests/unit/test_tool_call_accuracy.py251 async def test_empty_reference_tool_calls(self, tool_call_accuracy, mock_callbacks):CODE
LOWtests/unit/test_tool_call_accuracy.py262 async def test_empty_reference_with_predictions(CODE
LOW⚡tests/unit/test_tool_call_accuracy.py292 def test_strict_order_parameter_default(self):CODE
LOW⚡tests/unit/test_tool_call_accuracy.py297 def test_strict_order_parameter_explicit(self):CODE
LOW⚡tests/unit/test_tool_call_accuracy.py305 def test_is_sequence_aligned_flexible_mode(self):CODE
LOWtests/unit/test_tool_call_accuracy.py319 def test_flexible_order_sorting_behavior(self):CODE
LOWtests/unit/test_tool_call_accuracy.py353 def test_sorted_key_for_tool_call(self):CODE
LOWtests/unit/test_async_evaluation.py11 def test_run_with_nest_asyncio_default(self):CODE
LOWtests/unit/test_async_evaluation.py24 def test_run_without_nest_asyncio(self):CODE
LOWtests/unit/test_async_evaluation.py41 def test_evaluate_with_nest_asyncio_default(self):CODE
LOWtests/unit/test_async_evaluation.py64 def test_evaluate_allow_nest_asyncio_true(self):CODE
LOWtests/unit/test_async_evaluation.py88 def test_evaluate_allow_nest_asyncio_false(self):CODE
LOWtests/unit/test_async_evaluation.py119 def test_aevaluate_importable(self):CODE
LOWtests/unit/test_async_evaluation.py126 def test_evaluate_has_allow_nest_asyncio_param(self):CODE
LOWtests/unit/test_async_evaluation.py141 async def test_aevaluate_no_nest_asyncio_applied(self):CODE
LOWtests/unit/test_async_evaluation.py191 async def test_aevaluate_in_running_loop(self):CODE
LOWtests/unit/test_metric.py99def test_metrics_with_definition(metric):CODE
LOWtests/unit/test_metric.py190def test_ignored_columns_validation():CODE
LOWtests/unit/test_metric.py281def test_metric_get_variables():CODE
LOWtests/unit/test_metric.py328def test_metric_response_model():CODE
LOWtests/unit/test_metric.py335def test_metric_prompt_conversion():CODE
LOWtests/unit/test_tool_call_f1_collections.py42 async def test_partial_match_missing_prediction(self, tool_call_f1):CODE
LOWtests/unit/test_tool_call_f1_collections.py67 async def test_partial_match_extra_prediction(self, tool_call_f1):CODE
LOWtests/unit/test_tool_call_f1_collections.py157 async def test_only_predicted_no_reference(self, tool_call_f1):CODE
LOWtests/unit/test_tool_call_f1_collections.py177 async def test_only_reference_no_predicted(self, tool_call_f1):CODE
LOWtests/unit/test_tool_call_f1_collections.py220 async def test_duplicate_tool_calls_in_prediction(self, tool_call_f1):CODE
LOWtests/unit/test_run_config.py41def test_random_num_generator(CODE
LOWtests/unit/test_engine.py50def test_parallel_stores_transformations():CODE
LOWtests/unit/test_engine.py57def test_parallel_generate_execution_plan_aggregates(kg):CODE
LOW⚡tests/unit/test_engine.py88def test_get_desc_parallel_and_single():CODE
LOW⚡tests/unit/test_engine.py97def test_apply_transforms_single(kg):CODE
LOW⚡tests/unit/test_engine.py106def test_apply_transforms_list(kg):CODE
LOW⚡tests/unit/test_engine.py116def test_apply_transforms_parallel(kg):CODE
LOWtests/unit/test_engine.py127def test_apply_transforms_invalid():CODE
LOWtests/unit/test_datacompy_score_collections.py112 async def test_columns_mode_partial_match(self):CODE
LOWtests/unit/test_datacompy_score_collections.py125 async def test_invalid_reference_type(self):CODE
LOWtests/unit/test_datacompy_score_collections.py133 async def test_invalid_response_type(self):CODE
LOWtests/unit/test_datacompy_score_collections.py153 async def test_result_reason_contains_info(self):CODE
LOWtests/unit/test_datacompy_score_collections.py178 async def test_csv_parse_error_returns_nan(self):CODE
LOWtests/unit/test_utils.py27def test_check_if_sum_is_close(values, close_to, num_places):CODE
LOW⚡tests/unit/test_utils.py106 def test_create_nano_id_default_size(self):CODE
LOW⚡tests/unit/test_utils.py112 def test_create_nano_id_custom_size(self):CODE
LOW⚡tests/unit/test_utils.py119 def test_create_nano_id_uniqueness(self):CODE
LOW⚡tests/unit/test_utils.py127 def test_create_nano_id_alphanumeric(self):CODE
LOWtests/unit/test_utils.py148 def test_async_to_sync_with_kwargs(self):CODE
LOWtests/unit/test_utils.py159 def test_async_to_sync_exception_handling(self):CODE
LOWtests/unit/test_utils.py170 def test_async_to_sync_return_types(self):CODE
783 more matches not shown…
Unused Imports358 hits · 344 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py1CODE
LOWtests/unit/test_datacompy_score_collections.py10CODE
LOWtests/unit/test_datacompy_score_collections.py13CODE
LOWtests/unit/test_tokenizers.py3CODE
LOWtests/unit/test_chrf_score_collections.py6CODE
LOWtests/unit/test_embeddings.py1CODE
LOWtests/unit/test_simple.py1CODE
LOWtests/unit/test_analytics.py1CODE
LOWtests/unit/test_dspy_adapter.py15CODE
LOWtests/unit/test_import.py1CODE
LOWtests/unit/test_dspy_optimizer.py9CODE
LOWtests/unit/integrations/test_ag_ui.py3CODE
LOWtests/unit/integrations/test_ag_ui.py598CODE
LOWtests/unit/llms/test_llm.py1CODE
LOWtests/utils/__init__.py7CODE
LOWtests/utils/__init__.py7CODE
LOWtests/utils/__init__.py7CODE
LOWtests/utils/__init__.py7CODE
LOWtests/utils/__init__.py7CODE
LOWtests/utils/__init__.py14CODE
LOWtests/utils/__init__.py14CODE
LOWtests/utils/__init__.py14CODE
LOWtests/utils/__init__.py14CODE
LOWtests/utils/__init__.py14CODE
LOWtests/benchmarks/utils.py1CODE
LOWtests/e2e/test_amnesty_in_ci.py16CODE
LOWtests/e2e/test_fullflow.py12CODE
LOWdocs/alfred.py1CODE
LOWexamples/ragas_examples/__init__.py17CODE
LOWexamples/ragas_examples/text2sql/__init__.py39CODE
LOWexamples/ragas_examples/text2sql/__init__.py39CODE
LOWexamples/ragas_examples/text2sql/__init__.py40CODE
LOWexamples/ragas_examples/text2sql/__init__.py40CODE
LOWexamples/ragas_examples/text2sql/__init__.py41CODE
LOWexamples/ragas_examples/text2sql/__init__.py42CODE
LOWexamples/ragas_examples/text2sql/__init__.py42CODE
LOWexamples/ragas_examples/text2sql/__init__.py42CODE
LOWexamples/ragas_examples/text2sql/data_utils.py14CODE
LOWexamples/ragas_examples/judge_alignment/__init__.py13CODE
LOWexamples/ragas_examples/judge_alignment/__init__.py13CODE
LOWexamples/ragas_examples/judge_alignment/__init__.py13CODE
LOWexamples/ragas_examples/judge_alignment/__init__.py13CODE
LOWexamples/ragas_examples/judge_alignment/__init__.py13CODE
LOWsrc/ragas/config.py1CODE
LOWsrc/ragas/evaluation.py1CODE
LOWsrc/ragas/__init__.py1CODE
LOWsrc/ragas/__init__.py2CODE
LOWsrc/ragas/__init__.py2CODE
LOWsrc/ragas/__init__.py2CODE
LOWsrc/ragas/__init__.py3CODE
LOWsrc/ragas/__init__.py3CODE
LOWsrc/ragas/__init__.py4CODE
LOWsrc/ragas/__init__.py4CODE
LOWsrc/ragas/__init__.py4CODE
LOWsrc/ragas/__init__.py5CODE
LOWsrc/ragas/__init__.py5CODE
LOWsrc/ragas/__init__.py6CODE
LOWsrc/ragas/__init__.py6CODE
LOWsrc/ragas/__init__.py6CODE
LOWsrc/ragas/__init__.py7CODE
298 more matches not shown…
Cross-File Repetition68 hits · 340 pts
SeverityFileLineSnippetContext
HIGHtests/unit/test_tool_call_accuracy.py0test perfect match scenario with identical tool calls.STRING
HIGHtests/unit/test_tool_call_f1_collections.py0test perfect match scenario with identical tool calls.STRING
HIGHtests/unit/test_tool_call_accuracy_collections.py0test perfect match scenario with identical tool calls.STRING
HIGH…sts/unit/test_instance_specific_rubrics_collections.py0mock implementation of instructorbaseragasllm for testing.STRING
HIGHtests/unit/test_sql_semantic_equivalence_collections.py0mock implementation of instructorbaseragasllm for testing.STRING
HIGHtests/unit/test_domain_specific_rubrics_collections.py0mock implementation of instructorbaseragasllm for testing.STRING
HIGH…2e/metrics_migration/test_answer_accuracy_migration.py0create a modern instructor llm for v2 implementation.STRING
HIGH…/metrics_migration/test_noise_sensitivity_migration.py0create a modern instructor llm for v2 implementation.STRING
HIGH…/e2e/metrics_migration/test_summary_score_migration.py0create a modern instructor llm for v2 implementation.STRING
HIGH…/metrics_migration/test_context_precision_migration.py0create a modern instructor llm for v2 implementation.STRING
HIGH…e/metrics_migration/test_answer_relevancy_migration.py0create a modern instructor llm for v2 implementation.STRING
HIGH…rics_migration/test_response_groundedness_migration.py0create a modern instructor llm for v2 implementation.STRING
HIGH…metrics_migration/test_answer_correctness_migration.py0create a modern instructor llm for v2 implementation.STRING
HIGH…etrics_migration/test_factual_correctness_migration.py0create a modern instructor llm for v2 implementation.STRING
HIGH…/metrics_migration/test_context_relevance_migration.py0create a modern instructor llm for v2 implementation.STRING
HIGH…s/e2e/metrics_migration/test_faithfulness_migration.py0create a modern instructor llm for v2 implementation.STRING
HIGH…2e/metrics_migration/test_answer_accuracy_migration.py0e2e test that legacy and v2 produce similar scores.STRING
HIGH…/metrics_migration/test_noise_sensitivity_migration.py0e2e test that legacy and v2 produce similar scores.STRING
HIGH…/e2e/metrics_migration/test_summary_score_migration.py0e2e test that legacy and v2 produce similar scores.STRING
HIGH…rics_migration/test_response_groundedness_migration.py0e2e test that legacy and v2 produce similar scores.STRING
HIGH…etrics_migration/test_factual_correctness_migration.py0e2e test that legacy and v2 produce similar scores.STRING
HIGH…/metrics_migration/test_context_relevance_migration.py0e2e test that legacy and v2 produce similar scores.STRING
HIGH…s/e2e/metrics_migration/test_faithfulness_migration.py0e2e test that legacy and v2 produce similar scores.STRING
HIGH…/metrics_migration/test_context_precision_migration.py0e2e test that legacy and v2 produce similar scores.STRING
HIGH…ts/e2e/metrics_migration/plan-for-metrics-migration.md0e2e test that legacy and v2 produce similar scores.STRING
HIGH…2e/metrics_migration/test_answer_accuracy_migration.py0test that migration requirements are properly documented.STRING
HIGH…/metrics_migration/test_noise_sensitivity_migration.py0test that migration requirements are properly documented.STRING
HIGH…/e2e/metrics_migration/test_summary_score_migration.py0test that migration requirements are properly documented.STRING
HIGH…/metrics_migration/test_context_precision_migration.py0test that migration requirements are properly documented.STRING
HIGH…rics_migration/test_response_groundedness_migration.py0test that migration requirements are properly documented.STRING
HIGH…etrics_migration/test_factual_correctness_migration.py0test that migration requirements are properly documented.STRING
HIGH…/metrics_migration/test_context_relevance_migration.py0test that migration requirements are properly documented.STRING
HIGH…s/e2e/metrics_migration/test_faithfulness_migration.py0test that migration requirements are properly documented.STRING
HIGH…e2e/metrics_migration/test_context_recall_migration.py0e2e test that legacy and v2 implementations produce similar scores with real llm.STRING
HIGH…rics_migration/test_context_entity_recall_migration.py0e2e test that legacy and v2 implementations produce similar scores with real llm.STRING
HIGH…e/metrics_migration/test_answer_relevancy_migration.py0e2e test that legacy and v2 implementations produce similar scores with real llm.STRING
HIGH…metrics_migration/test_answer_correctness_migration.py0e2e test that legacy and v2 implementations produce similar scores with real llm.STRING
HIGHtests/e2e/metrics_migration/test_rouge_migration.py0real-world sample reference and response texts for testing.STRING
HIGHtests/e2e/metrics_migration/test_bleu_migration.py0real-world sample reference and response texts for testing.STRING
HIGHtests/e2e/metrics_migration/test_string_migration.py0real-world sample reference and response texts for testing.STRING
HIGHtests/e2e/metrics_migration/test_rouge_migration.py0e2e test that legacy and v2 class implementations produce identical scores.STRING
HIGHtests/e2e/metrics_migration/test_bleu_migration.py0e2e test that legacy and v2 class implementations produce identical scores.STRING
HIGHtests/e2e/metrics_migration/test_string_migration.py0e2e test that legacy and v2 class implementations produce identical scores.STRING
HIGHtests/e2e/metrics_migration/test_rouge_migration.py0compare performance characteristics between legacy and v2 class.STRING
HIGHtests/e2e/metrics_migration/test_bleu_migration.py0compare performance characteristics between legacy and v2 class.STRING
HIGHtests/e2e/metrics_migration/test_string_migration.py0compare performance characteristics between legacy and v2 class.STRING
HIGH…e/metrics_migration/test_answer_relevancy_migration.py0create legacy embeddings for legacy implementation.STRING
HIGH…metrics_migration/test_answer_correctness_migration.py0create legacy embeddings for legacy implementation.STRING
HIGH…etrics_migration/test_semantic_similarity_migration.py0create legacy embeddings for legacy implementation.STRING
HIGHsrc/ragas/cache.py0define how pydantic generates a schema for baseragasembeddings.STRING
HIGHsrc/ragas/losses.py0define how pydantic generates a schema for baseragasembeddings.STRING
HIGHsrc/ragas/embeddings/base.py0define how pydantic generates a schema for baseragasembeddings.STRING
HIGHsrc/ragas/metrics/discrete.py0calculate the correlation between gold labels and predictions. this is a placeholder method and should be implemented baSTRING
HIGHsrc/ragas/metrics/numeric.py0calculate the correlation between gold labels and predictions. this is a placeholder method and should be implemented baSTRING
HIGHsrc/ragas/metrics/ranking.py0calculate the correlation between gold labels and predictions. this is a placeholder method and should be implemented baSTRING
HIGHsrc/ragas/metrics/discrete.py0load a rankingmetric from a json file. parameters: ----------- path : str file path to load from. supports .gz compresseSTRING
HIGHsrc/ragas/metrics/numeric.py0load a rankingmetric from a json file. parameters: ----------- path : str file path to load from. supports .gz compresseSTRING
HIGHsrc/ragas/metrics/ranking.py0load a rankingmetric from a json file. parameters: ----------- path : str file path to load from. supports .gz compresseSTRING
HIGHsrc/ragas/metrics/collections/_rouge_score.py0calculate chrf score asynchronously. args: reference: the reference/ground truth text response: the response text to evaSTRING
HIGHsrc/ragas/metrics/collections/_string.py0calculate chrf score asynchronously. args: reference: the reference/ground truth text response: the response text to evaSTRING
8 more matches not shown…
Modern AI Meta-Vocabulary102 hits · 290 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md81# Create a RAG evaluation projectCOMMENT
MEDIUM⚡tests/unit/test_simple_llm_metric_persistence.py171 # Create a mock embedding model for testingCOMMENT
MEDIUMtests/unit/test_simple_llm_metric_persistence.py208 # Save (should warn about embedding model)COMMENT
MEDIUMtests/unit/test_simple_llm_metric_persistence.py212 # Load (provide embedding model)COMMENT
MEDIUMtests/unit/prompt/test_dynamic_few_shot_prompt.py178 # Test save with warning about embedding modelCOMMENT
MEDIUMtests/unit/prompt/test_dynamic_few_shot_prompt.py192 # Test load with embedding model providedCOMMENT
MEDIUMtests/unit/prompt/test_dynamic_few_shot_prompt.py225 # Load with new embedding modelCOMMENT
MEDIUMtests/unit/prompt/test_dynamic_few_shot_prompt.py237 # Verify embedding model was called during initializationCOMMENT
MEDIUMtests/unit/prompt/test_dynamic_few_shot_prompt.py340 # Test load without embedding model shows warning (when embedding_model_info exists but no model provided)COMMENT
MEDIUMtests/unit/prompt/test_dynamic_few_shot_prompt.py341 # First save a prompt with only embedding model info (no response model to avoid error)COMMENT
MEDIUMtests/unit/prompt/test_dynamic_few_shot_prompt.py352 # Now test load without providing embedding model - should show warningCOMMENT
MEDIUMdocs/getstarted/quickstart.md127├── rag.py # Your RAG applicationCODE
MEDIUMdocs/getstarted/rag_testset_generation.md1# Testset Generation for RAGCOMMENT
MEDIUMdocs/getstarted/rag_eval.md1# Evaluate a simple RAG systemCOMMENT
MEDIUMdocs/getstarted/rag_eval.md23### Build a Simple RAG SystemCOMMENT
MEDIUMdocs/getstarted/rag_eval.md94# Initialize RAG instanceCOMMENT
MEDIUMdocs/getstarted/evals.md34├── rag.py # Your RAG/LLM applicationCODE
MEDIUMdocs/getstarted/evals.md69 response="", # Will be filled by querying RAGCODE
MEDIUMdocs/extra/components/choose_evaluator_llm.md179 model="models/embedding-001", # Google's text embedding modelCODE
MEDIUMdocs/extra/components/choose_generator_llm.md180 model="models/embedding-001", # Google's text embedding modelCODE
MEDIUMdocs/concepts/index.md28 Metrics for evaluating [RAG](metrics/available_metrics/index.md#retrieval-augmented-generation), [Agentic workflows]CODE
MEDIUMdocs/concepts/test_data_generation/rag.md1# Testset Generation for RAGCOMMENT
MEDIUMdocs/concepts/test_data_generation/rag.md5## Query types in RAGCOMMENT
MEDIUMdocs/concepts/test_data_generation/rag.md53### Specific vs. Abstract Queries in a RAGCOMMENT
MEDIUMdocs/tutorials/rag.md1# Evaluate a simple RAG systemCOMMENT
MEDIUMdocs/howtos/observability.md106### 5. Build Your RAG Application With LlamaIndexCOMMENT
MEDIUMdocs/howtos/customizations/customize_models.md75 # system_prompt="You are a helpful assistant that evaluates RAG systems."COMMENT
MEDIUMdocs/howtos/customizations/customize_models.md120 # system_prompt="You are a helpful assistant that evaluates RAG systems."COMMENT
MEDIUMdocs/howtos/customizations/customize_models.md147 "embeddings": "amazon.titan-embed-text-v2:0", # Your embedding model IDCODE
MEDIUMdocs/howtos/customizations/customize_models.md166 # system_prompt="You are a helpful assistant that evaluates RAG systems."COMMENT
MEDIUMdocs/howtos/customizations/optimizers/index.md115 max_bootstrapped_demos=10, # Auto-generated few-shot examplesCODE
MEDIUMdocs/howtos/cli/improve_rag.md1# Improve RAG QuickstartCOMMENT
MEDIUMdocs/howtos/cli/improve_rag.md37### Naive RAG Mode (Default)COMMENT
MEDIUMdocs/howtos/cli/improve_rag.md43### Agentic RAG ModeCOMMENT
MEDIUM⚡docs/howtos/cli/improve_rag.md71├── rag.py # RAG implementation (naive & agentic)CODE
MEDIUM⚡docs/howtos/cli/improve_rag.md71├── rag.py # RAG implementation (naive & agentic)CODE
MEDIUM⚡docs/howtos/cli/improve_rag.md80## Understanding the RAG ModesCOMMENT
MEDIUM⚡docs/howtos/cli/improve_rag.md82### Naive RAGCOMMENT
MEDIUMdocs/howtos/cli/improve_rag.md107### Agentic RAGCOMMENT
MEDIUMdocs/howtos/cli/improve_rag.md150### The RAG Implementation (`rag.py`)COMMENT
MEDIUMdocs/howtos/cli/improve_rag.md167#### RAG ClassCOMMENT
MEDIUMdocs/howtos/cli/improve_rag.md284# Run agentic modeCOMMENT
MEDIUMdocs/howtos/cli/rag_eval.md1# RAG Evaluation QuickstartCOMMENT
MEDIUMdocs/howtos/cli/rag_eval.md94├── rag.py # RAG application implementationCODE
MEDIUMdocs/howtos/cli/rag_eval.md105### The RAG Application (`rag.py`)COMMENT
MEDIUMdocs/howtos/cli/rag_eval.md120# Query the RAG systemCOMMENT
MEDIUMdocs/howtos/cli/rag_eval.md227### Use Your Own RAG SystemCOMMENT
MEDIUMdocs/howtos/cli/rag_eval.md240 # Call your RAG systemCOMMENT
MEDIUMdocs/howtos/cli/index.md43# Create a RAG evaluation projectCOMMENT
MEDIUMdocs/howtos/cli/index.md89### RAG & RetrievalCOMMENT
MEDIUMdocs/howtos/integrations/griptape.md57### Setting up the RAG EngineCOMMENT
MEDIUMdocs/howtos/integrations/griptape.md71# Create a basic RAG pipelineCOMMENT
MEDIUMdocs/howtos/integrations/griptape.md92### Testing Our RAG PipelineCOMMENT
MEDIUMdocs/howtos/integrations/griptape.md305- [ResponseGroundedness](../../concepts/metrics/available_metrics/nvidia_metrics.md#response-groundedness): Measures wheCODE
MEDIUMdocs/howtos/integrations/_arize.md101## 5. Build Your RAG Application With LlamaIndexCOMMENT
MEDIUMdocs/howtos/integrations/oci_genai.md76 embeddings=None, # You can use any embedding modelCODE
MEDIUMdocs/howtos/integrations/_openlayer.md2## Evaluating RAG pipelines with Openlayer and RagasCOMMENT
MEDIUMdocs/howtos/integrations/_openlayer.md50## Building RAGCOMMENT
MEDIUMdocs/howtos/integrations/llamaindex_agents.md669### Evaluating using Ragas RAG MetricsCOMMENT
MEDIUMdocs/howtos/integrations/_haystack.md36## Initialize components for RAG pipelineCOMMENT
42 more matches not shown…
Excessive Try-Catch Wrapping198 hits · 218 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_async_evaluation.py180 except Exception:CODE
LOWtests/unit/test_async_evaluation.py214 except Exception as e:CODE
LOW⚡tests/unit/test_datatable_inheritance.py269 except Exception as e:CODE
LOW⚡tests/unit/test_datatable_inheritance.py284 except Exception as e:CODE
LOWtests/unit/test_cancellation.py242 except Exception as e:CODE
LOWtests/unit/backends/test_local_csv.py330 except Exception as e:CODE
LOWtests/unit/backends/test_local_csv.py467 except Exception as e:CODE
MEDIUMtests/unit/backends/test_inmemory.py702def save_dataset(dataset_name, data):CODE
MEDIUMtests/unit/backends/test_inmemory.py752def read_dataset():CODE
MEDIUMtests/unit/backends/test_inmemory.py799def read_operation():CODE
MEDIUMtests/unit/backends/test_inmemory.py806def write_operation(dataset_name, data):CODE
LOWtests/unit/backends/test_inmemory.py706 except Exception as e:CODE
LOWtests/unit/backends/test_inmemory.py756 except Exception as e:CODE
LOWtests/unit/backends/test_inmemory.py803 except Exception as e:CODE
LOWtests/unit/backends/test_inmemory.py810 except Exception as e:CODE
LOWtests/unit/backends/test_local_jsonl.py470 except Exception as e:CODE
LOWtests/unit/backends/test_local_jsonl.py512 except Exception as e:CODE
LOWtests/utils/llm_setup.py68 except Exception as e:CODE
LOWtests/utils/llm_setup.py107 except Exception as e:CODE
LOWtests/utils/llm_setup.py131 except Exception as e:CODE
LOWtests/utils/llm_setup.py181 except Exception as e:CODE
LOWtests/utils/metric_comparison.py130 except Exception as e:CODE
MEDIUMtests/utils/metric_comparison.py131 print(f"Error processing sample: {e}")CODE
LOW⚡tests/utils/metric_comparison.py287 except Exception as e:CODE
LOW⚡tests/utils/metric_comparison.py296 except Exception as e2:CODE
LOWtests/e2e/test_dataset_utils.py82 except Exception as e:CODE
LOWtests/e2e/test_dataset_utils.py107 except Exception as e:CODE
LOWtests/e2e/test_dspy_integration.py109 except Exception as e:CODE
LOW…2e/metrics_migration/test_answer_accuracy_migration.py23 except Exception as e:CODE
LOW…2e/metrics_migration/test_answer_accuracy_migration.py40 except Exception as e:CODE
LOW…2e/metrics_migration/test_answer_accuracy_migration.py86 except Exception as e:CODE
LOW…2e/metrics_migration/test_answer_accuracy_migration.py105 except Exception as e:CODE
LOW…/metrics_migration/test_noise_sensitivity_migration.py54 except Exception as e:CODE
LOW…/metrics_migration/test_noise_sensitivity_migration.py69 except Exception as e:CODE
LOW…/e2e/metrics_migration/test_summary_score_migration.py52 except Exception as e:CODE
LOW…/e2e/metrics_migration/test_summary_score_migration.py67 except Exception as e:CODE
LOWtests/e2e/metrics_migration/conftest.py26 except Exception as e:CODE
LOWtests/e2e/metrics_migration/conftest.py39 except Exception as e:CODE
LOWtests/e2e/metrics_migration/conftest.py52 except Exception as e:CODE
LOWtests/e2e/metrics_migration/conftest.py68 except Exception as e:CODE
LOW…rics_migration/test_context_entity_recall_migration.py70 except Exception as e:CODE
LOW…rics_migration/test_context_entity_recall_migration.py85 except Exception as e:CODE
LOW…/metrics_migration/test_context_precision_migration.py71 except Exception as e:CODE
LOW…/metrics_migration/test_context_precision_migration.py86 except Exception as e:CODE
LOW…e/metrics_migration/test_answer_relevancy_migration.py54 except Exception as e:CODE
LOW…e/metrics_migration/test_answer_relevancy_migration.py69 except Exception as e:CODE
LOW…e/metrics_migration/test_answer_relevancy_migration.py82 except Exception as e:CODE
LOW…e/metrics_migration/test_answer_relevancy_migration.py107 except Exception as e:CODE
LOW…rics_migration/test_response_groundedness_migration.py67 except Exception as e:CODE
LOW…rics_migration/test_response_groundedness_migration.py83 except Exception as e:CODE
LOW…metrics_migration/test_answer_correctness_migration.py62 except Exception as e:CODE
LOW…metrics_migration/test_answer_correctness_migration.py77 except Exception as e:CODE
LOW…metrics_migration/test_answer_correctness_migration.py89 except Exception as e:CODE
LOW…metrics_migration/test_answer_correctness_migration.py111 except Exception as e:CODE
LOW…etrics_migration/test_factual_correctness_migration.py59 except Exception as e:CODE
LOW…etrics_migration/test_factual_correctness_migration.py74 except Exception as e:CODE
LOW…/metrics_migration/test_context_relevance_migration.py23 except Exception as e:CODE
LOW…/metrics_migration/test_context_relevance_migration.py40 except Exception as e:CODE
LOW…/metrics_migration/test_context_relevance_migration.py93 except Exception as e:CODE
LOW…/metrics_migration/test_context_relevance_migration.py112 except Exception as e:CODE
138 more matches not shown…
Docstring Block Structure34 hits · 170 pts
SeverityFileLineSnippetContext
HIGHtests/utils/llm_setup.py13Check if required API key is set. Args: provider: The provider to check for (default: "openai") ReturnSTRING
HIGHtests/utils/llm_setup.py44Create an LLM instance using the unified llm_factory. Args: model: The model name to use **kwargs: STRING
HIGHtests/utils/llm_setup.py78Create an LLM instance using the unified llm_factory. Args: provider: The LLM provider (default: "openai") STRING
HIGHtests/utils/llm_setup.py112Create legacy embeddings for old-style metrics. Args: model: The embedding model name to use **kwarSTRING
HIGHtests/utils/llm_setup.py144Create modern embeddings for v2 metrics. Args: provider: The embeddings provider (e.g., "openai") mSTRING
HIGHdocs/howtos/integrations/_langgraph_agent_evaluation.md94Fetches the current per gram price of the specified metal. Args: metal_name : The name of the metal (e.g., STRING
HIGHexamples/ragas_examples/text2sql/data_utils.py150 Load JSON data and remove duplicates. Args: input_file: Path to the BookSQL train.json file STRING
HIGHsrc/ragas/dataset.py111Resolve backend from string or return existing BaseBackend instance. Args: backend: Either a BaseBaSTRING
HIGHsrc/ragas/dataset.py163Load dataset with optional validation. Args: name: Name of the dataset to load backend:STRING
HIGHsrc/ragas/dataset.py210Create a DataTable from a pandas DataFrame. Args: dataframe: The pandas DataFrame to convert STRING
HIGHsrc/ragas/metrics/discrete.py95 Load a DiscreteMetric from a JSON file. Parameters: ----------- path : str STRING
HIGHsrc/ragas/metrics/numeric.py99 Load a NumericMetric from a JSON file. Parameters: ----------- path : str STRING
HIGHsrc/ragas/metrics/ranking.py102 Load a RankingMetric from a JSON file. Parameters: ----------- path : str STRING
HIGHsrc/ragas/metrics/base.py1085 Read just the metric type from a saved metric file. Parameters: ----------- path : strSTRING
HIGHsrc/ragas/metrics/base.py1152 Load a metric from a JSON file. Parameters: ----------- path : str File paSTRING
HIGH…as/metrics/collections/multi_modal_relevance/metric.py91 Calculate multimodal relevance score. Args: user_input: The user's question or input STRING
HIGHsrc/ragas/metrics/collections/summary_score/metric.py112 Calculate summary score using multi-step pipeline. Args: reference_contexts: The original STRING
HIGH…etrics/collections/instance_specific_rubrics/metric.py86 Score a response using instance-specific rubric criteria. Args: rubrics: Dictionary mappinSTRING
HIGH…ragas/metrics/collections/answer_correctness/metric.py87 Initialize AnswerCorrectness metric with required components. Args: llm: Modern instructorSTRING
HIGH…metrics/collections/multi_modal_faithfulness/metric.py89 Calculate multimodal faithfulness score. Args: response: The response to evaluate for faitSTRING
HIGHsrc/ragas/embeddings/utils.py10Run an async coroutine in the current event loop if possible. This handles Jupyter environments correctly by using STRING
HIGHsrc/ragas/embeddings/utils.py134Validate and normalize text inputs. Args: texts: Single text or list of texts Returns: List ofSTRING
HIGHsrc/ragas/embeddings/utils.py164Safely import a module with helpful error message. Args: module_name: Name of the module to import STRING
HIGHsrc/ragas/embeddings/google_provider.py74Resolve the client to use for embeddings. For Vertex AI: Returns the client as-is (must be provided). FSTRING
HIGHsrc/ragas/backends/inmemory.py39Load dataset by name. Args: name: Dataset identifier Returns: List of dictionaSTRING
HIGHsrc/ragas/backends/inmemory.py57Load experiment by name. Args: name: Experiment identifier Returns: List of diSTRING
HIGHsrc/ragas/backends/base.py48Load dataset by name. Args: name: Dataset identifier (alphanumeric, hyphens, underscores recommendeSTRING
HIGHsrc/ragas/backends/base.py68Load experiment by name. Args: name: Experiment identifier (alphanumeric, hyphens, underscores recoSTRING
HIGHsrc/ragas/prompt/simple_prompt.py204 Load a prompt from a JSON file. Parameters: ----------- path : str File paSTRING
HIGHsrc/ragas/prompt/dynamic_few_shot.py344 Load a DynamicFewShotPrompt from a JSON file. Parameters: ----------- path : str STRING
HIGHsrc/ragas/llms/oci_genai_wrapper.py322 Factory function to create an OCI Gen AI LLM instance. Args: model_id: The OCI model ID to use for genSTRING
HIGHsrc/ragas/llms/base.py633 Create an LLM instance for structured output generation with automatic adapter selection. Supports multiple LLSTRING
HIGHsrc/ragas/llms/adapters/__init__.py13 Get adapter by name. Args: name: Adapter name ("instructor" or "litellm") Returns: StructSTRING
HIGHsrc/ragas/llms/adapters/instructor.py21 Create InstructorLLM instance by patching client with Instructor. Args: client: Pre-initiaSTRING
Self-Referential Comments61 hits · 169 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/test_multi_modal_relevance_collections.py45 # Create a temporary imageCOMMENT
MEDIUMtests/unit/test_metric_decorators.py661 # Create a mock custom class similar to InstructorLLMCOMMENT
MEDIUM⚡tests/unit/test_multi_modal_faithfulness_collections.py67 # Create a temporary image fileCOMMENT
MEDIUMtests/unit/test_multi_modal_faithfulness_collections.py96 # Create a small valid PNG in base64COMMENT
MEDIUMtests/unit/test_multi_modal_faithfulness_collections.py128 # Create a temporary imageCOMMENT
MEDIUMtests/unit/test_multi_modal_faithfulness_collections.py209 # Create a mock LLM that won't be calledCOMMENT
MEDIUM⚡tests/unit/test_experiment.py378 # Create a fresh instance to avoid state from other testsCOMMENT
MEDIUMtests/unit/test_experiment.py402 # Create a nested directory structure with .git at the topCOMMENT
MEDIUMtests/unit/test_knowledge_graph_save.py5 # Create a knowledge graph with special charactersCOMMENT
MEDIUM⚡tests/unit/test_simple_llm_metric_persistence.py171 # Create a mock embedding model for testingCOMMENT
MEDIUMtests/unit/test_single_hop_query_synthesizer.py91 # Create a node with tuple-formatted entities (the problematic case)COMMENT
MEDIUMtests/unit/test_single_hop_query_synthesizer.py164 # Create a node with string-formatted entities (the normal case)COMMENT
MEDIUMtests/unit/test_graph.py7 # Create a knowledge graph with special charactersCOMMENT
MEDIUMtests/unit/test_knowledge_graph_clusters.py19 # Create a random UUID internallyCOMMENT
MEDIUMtests/unit/backends/test_local_csv.py454 # Create a malformed CSV file manuallyCOMMENT
MEDIUMtests/unit/backends/test_inmemory.py378 # Create a large dataset (1000 items)COMMENT
MEDIUMtests/unit/backends/test_gdrive_backend.py15 # Create a mock HttpError for testing when Google API isn't availableCOMMENT
MEDIUMtests/unit/backends/test_local_jsonl.py456 # Create a malformed JSONL file manuallyCOMMENT
MEDIUMtests/unit/integrations/test_ag_ui.py558 # Create a mock event with dict delta (bypassing Pydantic validation)COMMENT
MEDIUMtests/unit/prompt/test_prompt_save_load.py27 # Create a prompt with examplesCOMMENT
MEDIUMtests/unit/prompt/test_prompt_save_load.py143 # Create a different model with different schemaCOMMENT
MEDIUMtests/unit/llms/test_llm.py204 # Create a mock LLM that would normally support multiple completionsCOMMENT
MEDIUMtests/unit/llms/test_instructor_factory.py350 # Create a mock client with OpenAI-style API (chat.completions.create)COMMENT
MEDIUM⚡tests/unit/llms/test_adapters.py133 # Create a mock client that appears to be from litellm moduleCOMMENT
MEDIUMtests/e2e/test_dataset_utils.py86 # Create a local dataset from sample dataCOMMENT
MEDIUMtests/e2e/test_dataset_utils.py111 # Create a local dataset from sample dataCOMMENT
MEDIUMdocs/alfred.py60 # Create an argument parserSTRING
MEDIUMexamples/ragas_examples/llamaIndex_agent_evals/evals.py143 # Create a datasetSTRING
MEDIUMexamples/ragas_examples/agent_evals/evals.py22 # Create a datasetCOMMENT
MEDIUMexamples/ragas_examples/prompt_evals/evals.py32 # Create a datasetCOMMENT
MEDIUMsrc/ragas/_analytics.py286# Create a global batcher instanceCOMMENT
MEDIUMsrc/ragas/cli.py26# Create a callback for the main app to make it a groupCOMMENT
MEDIUMsrc/ragas/cli.py540 # Create a table of templatesCOMMENT
MEDIUMsrc/ragas/cli.py699 # Create a README.md with setup instructionsCOMMENT
MEDIUMsrc/ragas/cli.py478 ragas quickstart rag_eval # Create a RAG evaluation projectSTRING
MEDIUMsrc/ragas/utils.py70 # Create a handler for the asyncio loggerCOMMENT
MEDIUMsrc/ragas/utils.py350 # Create a formatter with the custom formatterCOMMENT
MEDIUMsrc/ragas/utils.py353 # Create a console handler and set its levelCOMMENT
MEDIUMsrc/ragas/utils.py693 # Create a directory in the system temp directoryCOMMENT
MEDIUMsrc/ragas/metrics/decorator.py190 # Create the dynamic model with arbitrary types allowedCOMMENT
MEDIUMsrc/ragas/metrics/decorator.py339 # Create the metric instance with all parametersCOMMENT
MEDIUM⚡src/ragas/metrics/discrete.py42 >>> # Create an LLM instanceSTRING
MEDIUM⚡src/ragas/metrics/discrete.py46 >>> # Create a custom discrete metricSTRING
MEDIUMsrc/ragas/metrics/_factual_correctness.py39# Define an enum for decomposition typesCOMMENT
MEDIUMsrc/ragas/metrics/_factual_correctness.py52# Define the examples using the Pydantic structureCOMMENT
MEDIUM⚡src/ragas/metrics/numeric.py42 >>> # Create an LLM instanceSTRING
MEDIUM⚡src/ragas/metrics/numeric.py46 >>> # Create a custom numeric metric with 0-10 rangeSTRING
MEDIUM⚡src/ragas/metrics/ranking.py43 >>> # Create an LLM instanceSTRING
MEDIUM⚡src/ragas/metrics/ranking.py47 >>> # Create a ranking metric that returns top 3 itemsSTRING
MEDIUMsrc/ragas/metrics/base.py1205 # Create the metric instanceCOMMENT
MEDIUMsrc/ragas/metrics/base.py1348 # Create a wrapper that implements BaseRagasEmbedding interfaceCOMMENT
MEDIUM…as/metrics/collections/context_entity_recall/metric.py75 self.prompt = ExtractEntitiesPrompt() # Initialize prompt class onceCODE
MEDIUMsrc/ragas/metrics/collections/context_recall/metric.py77 self.prompt = ContextRecallPrompt() # Initialize prompt class onceCODE
MEDIUM…/ragas/metrics/collections/factual_correctness/util.py197 # Create a new instanceCOMMENT
MEDIUM…c/ragas/metrics/collections/answer_relevancy/metric.py88 self.prompt = AnswerRelevancePrompt() # Initialize prompt class onceCODE
MEDIUM…/ragas/metrics/collections/context_precision/metric.py76 self.prompt = ContextPrecisionPrompt() # Initialize prompt class onceCODE
MEDIUM…/ragas/metrics/collections/context_precision/metric.py196 self.prompt = ContextPrecisionPrompt() # Initialize prompt class onceCODE
MEDIUMsrc/ragas/embeddings/utils.py34 # Create a new event loop for this threadCOMMENT
MEDIUMsrc/ragas/testset/graph.py684 # Create a deep copy and modify itCOMMENT
MEDIUMsrc/ragas/llms/litellm_llm.py137 # Create a new event loop for this threadCOMMENT
1 more matches not shown…
Empty Error Handlers26 hits · 130 pts
SeverityFileLineSnippetContext
HIGHtests/unit/test_async_evaluation.py180except Exception:CODE
HIGHtests/unit/test_experiment.py421except ValueError:CODE
HIGHtests/unit/test_prechunked_generation.py80except ValueError:CODE
HIGHtests/unit/test_prechunked_generation.py105except ValueError:CODE
HIGHtests/unit/test_prechunked_generation.py138except ValueError:CODE
HIGHtests/unit/test_prechunked_generation.py162except ValueError:CODE
HIGHtests/unit/integrations/test_tracing_simple.py59except ImportError:CODE
HIGHexamples/ragas_examples/benchmark_llm/evals.py181except Exception:CODE
HIGHexamples/ragas_examples/text2sql/data_utils.py23except ImportError:CODE
HIGHexamples/ragas_examples/improve_rag/rag.py107except Exception:CODE
HIGHexamples/iterate_prompt/evals.py244except Exception:CODE
HIGHsrc/ragas/_safe_fetch.py86except ValueError:CODE
HIGHsrc/ragas/cli.py583except ImportError:CODE
HIGHsrc/ragas/cli.py885except Exception:CODE
HIGH…s/metrics/collections/multi_modal_faithfulness/util.py76except ValueError:CODE
HIGHsrc/ragas/embeddings/google_provider.py185except ImportError:CODE
HIGHsrc/ragas/embeddings/google_provider.py187except Exception:CODE
HIGHsrc/ragas/embeddings/google_provider.py197except ImportError:CODE
HIGHsrc/ragas/embeddings/google_provider.py140except ImportError:CODE
HIGHsrc/ragas/backends/gdrive_backend.py297except ValueError:CODE
HIGHsrc/ragas/backends/local_jsonl.py85except (ValueError, TypeError):CODE
HIGHsrc/ragas/prompt/multi_modal_prompt.py361except ValueError:CODE
HIGHsrc/ragas/llms/oci_genai_wrapper.py135except Exception:CODE
HIGHsrc/ragas/llms/litellm_llm.py110except (ValueError, AttributeError):CODE
HIGHsrc/ragas/llms/base.py938except ValueError:CODE
HIGHsrc/ragas/llms/base.py1062except (ValueError, AttributeError):CODE
Modern Structural Boilerplate120 hits · 120 pts
SeverityFileLineSnippetContext
LOWtests/utils/__init__.py22__all__ = [CODE
LOWtests/e2e/test_dataset_utils.py7logger = logging.getLogger(__name__)CODE
LOWexamples/ragas_examples/text2sql/text2sql_agent.py18logger = logging.getLogger(__name__)CODE
LOWexamples/ragas_examples/text2sql/__init__.py44__all__ = [CODE
LOWexamples/ragas_examples/text2sql/evals.py25logger = logging.getLogger(__name__)CODE
LOWexamples/ragas_examples/text2sql/data_utils.py32logger = logging.getLogger(__name__)CODE
LOW…/ragas_examples/ag_ui_agent_experiments/experiments.py55logger = logging.getLogger(__name__)CODE
LOWexamples/ragas_examples/judge_alignment/__init__.py21__all__ = [CODE
LOWexamples/ragas_examples/judge_alignment/evals.py28logger = logging.getLogger(__name__)CODE
LOWexamples/ragas_examples/improve_rag/evals.py35logger = logging.getLogger(__name__)CODE
LOWexamples/ragas_examples/improve_rag/rag.py27logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/async_utils.py7logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/cache.py13logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/__init__.py21__all__ = [CODE
LOWsrc/ragas/_safe_fetch.py41logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/dataset.py3__all__ = [CODE
LOWsrc/ragas/experiment.py3__all__ = ["Experiment", "experiment", "version_experiment"]CODE
LOWsrc/ragas/_analytics.py34logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/cost.py12logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/executor.py15logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/validation.py11logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/_simple_criteria.py25logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/_context_recall.py26logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/decorator.py3__all__ = [CODE
LOWsrc/ragas/metrics/_answer_similarity.py22logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/validators.py3__all__ = [CODE
LOWsrc/ragas/metrics/discrete.py3__all__ = ["discrete_metric", "DiscreteMetric"]CODE
LOWsrc/ragas/metrics/_datacompy_score.py13logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/__init__.py101__all__ = [CODE
LOWsrc/ragas/metrics/_factual_correctness.py28logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/_domain_specific_rubrics.py23logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/_summarization.py22logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/_answer_relevance.py20logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/result.py3__all__ = ["MetricResult"]CODE
LOWsrc/ragas/metrics/_aspect_critic.py24logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/_nv_metrics.py15logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/_faithfulness.py22logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/numeric.py3__all__ = ["numeric_metric", "NumericMetric"]CODE
LOWsrc/ragas/metrics/_sql_semantic_equivalence.py22logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/ranking.py3__all__ = ["ranking_metric", "RankingMetric"]CODE
LOWsrc/ragas/metrics/_topic_adherence.py22logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/_answer_correctness.py31logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/_noise_sensitivity.py28logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/_context_entities_recall.py22logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/base.py38logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/_context_precision.py25logger = logging.getLogger(__name__)CODE
LOWsrc/ragas/metrics/collections/__init__.py51__all__ = [CODE
LOW…agas/metrics/collections/multi_modal_relevance/util.py115__all__ = [CODE
LOW…/metrics/collections/multi_modal_relevance/__init__.py5__all__ = [CODE
LOW…/metrics/collections/context_entity_recall/__init__.py5__all__ = [CODE
LOW…/ragas/metrics/collections/answer_accuracy/__init__.py5__all__ = [CODE
LOW…trics/collections/sql_semantic_equivalence/__init__.py7__all__ = ["SQLSemanticEquivalence"]CODE
LOW…/ragas/metrics/collections/datacompy_score/__init__.py5__all__ = ["DataCompyScore"]CODE
LOWsrc/ragas/metrics/collections/datacompy_score/metric.py12logger = logging.getLogger(__name__)CODE
LOW…agas/metrics/collections/context_relevance/__init__.py5__all__ = [CODE
LOW…c/ragas/metrics/collections/context_recall/__init__.py5__all__ = [CODE
LOW…as/metrics/collections/factual_correctness/__init__.py5__all__ = [CODE
LOWsrc/ragas/metrics/collections/summary_score/__init__.py5__all__ = [CODE
LOW…rics/collections/instance_specific_rubrics/__init__.py7__all__ = ["InstanceSpecificRubrics"]CODE
LOW…gas/metrics/collections/tool_call_accuracy/__init__.py5__all__ = [CODE
60 more matches not shown…
Structural Annotation Overuse48 hits · 104 pts
SeverityFileLineSnippetContext
LOW⚡tests/unit/test_cosine_relationship_builders.py45 # Step 1: Create a base vectorCOMMENT
LOW⚡tests/unit/test_cosine_relationship_builders.py49 # Step 2: Generate similar vectorsCOMMENT
LOW⚡tests/unit/test_cosine_relationship_builders.py62 # Step 3: Generate additional random unit vectorsCOMMENT
LOW⚡tests/unit/test_cosine_relationship_builders.py69 # Step 4: Combine and shuffleCOMMENT
LOWdocs/getstarted/quickstart.md5## Step 1: Create Your ProjectCOMMENT
LOWdocs/getstarted/quickstart.md26## Step 2: Install DependenciesCOMMENT
LOWdocs/getstarted/quickstart.md40## Step 3: Set Your API KeyCOMMENT
LOWdocs/getstarted/quickstart.md136## Step 4: Run Your EvaluationCOMMENT
LOW⚡docs/howtos/applications/align-llm-as-judge.md162 # Step 1: Get response (in production, this is where you'd call your LLM app)COMMENT
LOW⚡docs/howtos/applications/align-llm-as-judge.md166 # Step 2: Judge evaluates the responseCOMMENT
LOW⚡docs/howtos/applications/align-llm-as-judge.md174 # Step 3: Compare judge decision with human targetCOMMENT
LOW⚡examples/ragas_examples/workflow_eval/workflow.py557 # Step 1: Classify emailCOMMENT
LOW⚡examples/ragas_examples/workflow_eval/workflow.py560 # Step 2: Extract relevant information based on categoryCOMMENT
LOW⚡examples/ragas_examples/workflow_eval/workflow.py563 # Step 3: Generate response templateCOMMENT
LOW⚡examples/ragas_examples/text2sql/data_utils.py357 # Step 1: Load and clean dataCOMMENT
LOW⚡examples/ragas_examples/text2sql/data_utils.py360 # Step 2: Sample data for each difficulty levelCOMMENT
LOW⚡examples/ragas_examples/text2sql/data_utils.py381 # Step 3: Combine all sampled dataCOMMENT
LOW⚡examples/ragas_examples/text2sql/data_utils.py384 # Step 4: Save resultsCOMMENT
LOW⚡examples/ragas_examples/judge_alignment/evals.py140 # Step 1: Get response (in production, this is where you'd call your LLM app)COMMENT
LOW⚡examples/ragas_examples/judge_alignment/evals.py144 # Step 2: Judge evaluates the responseCOMMENT
LOW⚡examples/ragas_examples/judge_alignment/evals.py152 # Step 3: Compare judge decision with human targetCOMMENT
LOW…agas/metrics/collections/factual_correctness/metric.py135 # Step 1: Get claim verifications to match legacy behavior exactlyCOMMENT
LOW⚡…agas/metrics/collections/factual_correctness/metric.py149 # Step 2: Compute TP, FP, FN exactly like legacyCOMMENT
LOW⚡…agas/metrics/collections/factual_correctness/metric.py157 # Step 3: Compute final score based on modeCOMMENT
LOW⚡src/ragas/metrics/collections/summary_score/metric.py134 # Step 1: Combine contexts and extract keyphrasesCOMMENT
LOW⚡src/ragas/metrics/collections/summary_score/metric.py143 # Step 2: Generate questions from keyphrasesCOMMENT
LOW⚡src/ragas/metrics/collections/summary_score/metric.py151 # Step 3: Check if summary can answer the questionsCOMMENT
LOW⚡src/ragas/metrics/collections/summary_score/metric.py154 # Step 4: Calculate QA scoreCOMMENT
LOW⚡src/ragas/metrics/collections/summary_score/metric.py157 # Step 5: Calculate final score (with optional conciseness penalty)COMMENT
LOW⚡src/ragas/metrics/collections/topic_adherence/metric.py113 # Step 1: Extract topics from the conversationCOMMENT
LOW⚡src/ragas/metrics/collections/topic_adherence/metric.py118 # Step 2: Check which topics the AI answered vs refusedCOMMENT
LOW⚡src/ragas/metrics/collections/topic_adherence/metric.py121 # Step 3: Classify topics against reference topicsCOMMENT
LOW⚡src/ragas/metrics/collections/topic_adherence/metric.py124 # Step 4: Compute score based on modeCOMMENT
LOW⚡src/ragas/metrics/collections/faithfulness/metric.py116 # Step 1: Break response into atomic statementsCOMMENT
LOW⚡src/ragas/metrics/collections/faithfulness/metric.py123 # Step 2: Join all contexts and evaluate statements against themCOMMENT
LOW⚡src/ragas/metrics/collections/faithfulness/metric.py127 # Step 3: Compute faithfulness scoreCOMMENT
LOW⚡…ragas/metrics/collections/answer_correctness/metric.py170 # Step 1: Generate statements from both response and referenceCOMMENT
LOW⚡…ragas/metrics/collections/answer_correctness/metric.py174 # Step 2: Calculate factuality score via TP/FP/FN classificationCOMMENT
LOW⚡…ragas/metrics/collections/answer_correctness/metric.py184 # Step 3: Calculate semantic similarity scoreCOMMENT
LOW⚡…ragas/metrics/collections/answer_correctness/metric.py190 # Step 4: Combine scores with weighted averageCOMMENT
LOW⚡…agas/metrics/collections/agent_goal_accuracy/metric.py99 # Step 1: Infer the end state from the workflowCOMMENT
LOW⚡…agas/metrics/collections/agent_goal_accuracy/metric.py102 # Step 2: Compare the end state with referenceCOMMENT
LOW⚡…agas/metrics/collections/agent_goal_accuracy/metric.py202 # Step 1: Infer the user goal and end state from the workflowCOMMENT
LOW⚡…agas/metrics/collections/agent_goal_accuracy/metric.py205 # Step 2: Compare the inferred goal with the end stateCOMMENT
LOW⚡…/ragas/metrics/collections/noise_sensitivity/metric.py141 # Step 1: Decompose reference and response into statementsCOMMENT
LOW⚡…/ragas/metrics/collections/noise_sensitivity/metric.py149 # Step 2: Evaluate statement faithfulness against each retrieved contextCOMMENT
LOW…/ragas/metrics/collections/noise_sensitivity/metric.py166 # Step 3: Build matrices for computation (exact legacy shape handling)COMMENT
LOW⚡…/ragas/metrics/collections/noise_sensitivity/metric.py182 # Step 4: Compute noise sensitivity scoreCOMMENT
Verbosity Indicators41 hits · 91 pts
SeverityFileLineSnippetContext
LOW⚡tests/unit/test_cosine_relationship_builders.py45 # Step 1: Create a base vectorCOMMENT
LOW⚡tests/unit/test_cosine_relationship_builders.py49 # Step 2: Generate similar vectorsCOMMENT
LOW⚡tests/unit/test_cosine_relationship_builders.py62 # Step 3: Generate additional random unit vectorsCOMMENT
LOW⚡tests/unit/test_cosine_relationship_builders.py69 # Step 4: Combine and shuffleCOMMENT
LOW⚡examples/ragas_examples/workflow_eval/workflow.py557 # Step 1: Classify emailCOMMENT
LOW⚡examples/ragas_examples/workflow_eval/workflow.py560 # Step 2: Extract relevant information based on categoryCOMMENT
LOW⚡examples/ragas_examples/workflow_eval/workflow.py563 # Step 3: Generate response templateCOMMENT
LOW⚡examples/ragas_examples/text2sql/data_utils.py357 # Step 1: Load and clean dataCOMMENT
LOW⚡examples/ragas_examples/text2sql/data_utils.py360 # Step 2: Sample data for each difficulty levelCOMMENT
LOW⚡examples/ragas_examples/text2sql/data_utils.py381 # Step 3: Combine all sampled dataCOMMENT
LOW⚡examples/ragas_examples/text2sql/data_utils.py384 # Step 4: Save resultsCOMMENT
LOW⚡examples/ragas_examples/judge_alignment/evals.py140 # Step 1: Get response (in production, this is where you'd call your LLM app)COMMENT
LOW⚡examples/ragas_examples/judge_alignment/evals.py144 # Step 2: Judge evaluates the responseCOMMENT
LOW⚡examples/ragas_examples/judge_alignment/evals.py152 # Step 3: Compare judge decision with human targetCOMMENT
LOW…agas/metrics/collections/factual_correctness/metric.py135 # Step 1: Get claim verifications to match legacy behavior exactlyCOMMENT
LOW⚡…agas/metrics/collections/factual_correctness/metric.py149 # Step 2: Compute TP, FP, FN exactly like legacyCOMMENT
LOW⚡…agas/metrics/collections/factual_correctness/metric.py157 # Step 3: Compute final score based on modeCOMMENT
LOW⚡src/ragas/metrics/collections/summary_score/metric.py134 # Step 1: Combine contexts and extract keyphrasesCOMMENT
LOW⚡src/ragas/metrics/collections/summary_score/metric.py143 # Step 2: Generate questions from keyphrasesCOMMENT
LOW⚡src/ragas/metrics/collections/summary_score/metric.py151 # Step 3: Check if summary can answer the questionsCOMMENT
LOW⚡src/ragas/metrics/collections/summary_score/metric.py154 # Step 4: Calculate QA scoreCOMMENT
LOW⚡src/ragas/metrics/collections/summary_score/metric.py157 # Step 5: Calculate final score (with optional conciseness penalty)COMMENT
LOW⚡src/ragas/metrics/collections/topic_adherence/metric.py113 # Step 1: Extract topics from the conversationCOMMENT
LOW⚡src/ragas/metrics/collections/topic_adherence/metric.py118 # Step 2: Check which topics the AI answered vs refusedCOMMENT
LOW⚡src/ragas/metrics/collections/topic_adherence/metric.py121 # Step 3: Classify topics against reference topicsCOMMENT
LOW⚡src/ragas/metrics/collections/topic_adherence/metric.py124 # Step 4: Compute score based on modeCOMMENT
LOW⚡src/ragas/metrics/collections/faithfulness/metric.py116 # Step 1: Break response into atomic statementsCOMMENT
LOW⚡src/ragas/metrics/collections/faithfulness/metric.py123 # Step 2: Join all contexts and evaluate statements against themCOMMENT
LOW⚡src/ragas/metrics/collections/faithfulness/metric.py127 # Step 3: Compute faithfulness scoreCOMMENT
LOW⚡…ragas/metrics/collections/answer_correctness/metric.py170 # Step 1: Generate statements from both response and referenceCOMMENT
LOW⚡…ragas/metrics/collections/answer_correctness/metric.py174 # Step 2: Calculate factuality score via TP/FP/FN classificationCOMMENT
LOW⚡…ragas/metrics/collections/answer_correctness/metric.py184 # Step 3: Calculate semantic similarity scoreCOMMENT
LOW⚡…ragas/metrics/collections/answer_correctness/metric.py190 # Step 4: Combine scores with weighted averageCOMMENT
LOW⚡…agas/metrics/collections/agent_goal_accuracy/metric.py99 # Step 1: Infer the end state from the workflowCOMMENT
LOW⚡…agas/metrics/collections/agent_goal_accuracy/metric.py102 # Step 2: Compare the end state with referenceCOMMENT
LOW⚡…agas/metrics/collections/agent_goal_accuracy/metric.py202 # Step 1: Infer the user goal and end state from the workflowCOMMENT
LOW⚡…agas/metrics/collections/agent_goal_accuracy/metric.py205 # Step 2: Compare the inferred goal with the end stateCOMMENT
LOW⚡…/ragas/metrics/collections/noise_sensitivity/metric.py141 # Step 1: Decompose reference and response into statementsCOMMENT
LOW⚡…/ragas/metrics/collections/noise_sensitivity/metric.py149 # Step 2: Evaluate statement faithfulness against each retrieved contextCOMMENT
LOW…/ragas/metrics/collections/noise_sensitivity/metric.py166 # Step 3: Build matrices for computation (exact legacy shape handling)COMMENT
LOW⚡…/ragas/metrics/collections/noise_sensitivity/metric.py182 # Step 4: Compute noise sensitivity scoreCOMMENT
Magic Placeholder Names17 hits · 76 pts
SeverityFileLineSnippetContext
HIGHtests/utils/llm_setup.py37 f" export {env_var}='your-api-key-here'"CODE
HIGHdocs/getstarted/quickstart.md113 client = OpenAI(api_key="your-api-key", base_url="https://your-api-endpoint")CODE
HIGHdocs/getstarted/evals.md161 client = OpenAI(api_key="your-api-key", base_url="https://your-api-endpoint")CODE
HIGHdocs/howtos/observability.md380export LANGCHAIN_API_KEY=<your-api-key>CODE
HIGHdocs/howtos/customizations/customize_models.md56 "api_key": "your-api-key",CODE
HIGHdocs/howtos/customizations/metrics/_cost.md17os.environ["OPENAI_API_KEY"] = "your-api-key"CODE
HIGHdocs/howtos/customizations/metrics/tracing.md10export LANGCHAIN_API_KEY=<your-api-key>CODE
HIGHdocs/howtos/integrations/_langsmith.md20export LANGCHAIN_API_KEY=<your-api-key>CODE
HIGHdocs/howtos/integrations/langsmith.md14export LANGCHAIN_API_KEY=<your-api-key>CODE
HIGHdocs/howtos/applications/align-llm-as-judge.md22export OPENAI_API_KEY="your-api-key-here"CODE
HIGHdocs/howtos/applications/text2sql.md31os.environ["OPENAI_API_KEY"] = "your-api-key-here"CODE
HIGHexamples/ragas_examples/text2sql/__init__.py20 client = AsyncOpenAI(api_key="your-api-key")STRING
HIGH…mples/ragas_examples/ag_ui_agent_experiments/README.md253export OPENAI_API_KEY='your-api-key-here'CODE
HIGHsrc/ragas/cli.py893 console.print(" export OPENAI_API_KEY='your-api-key'")STRING
HIGH⚡src/ragas/metrics/discrete.py43 >>> client = OpenAI(api_key="your-api-key")STRING
HIGH⚡src/ragas/metrics/numeric.py43 >>> client = OpenAI(api_key="your-api-key")STRING
HIGH⚡src/ragas/metrics/ranking.py44 >>> client = OpenAI(api_key="your-api-key")STRING
Redundant / Tautological Comments48 hits · 74 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_embeddings.py16 # Check if BaseRagasEmbedding is in the moduleCOMMENT
LOWtests/unit/test_knowledge_graph_clusters.py861 # Check if time complexity is reasonableCOMMENT
LOWtests/unit/test_knowledge_graph_clusters.py961 # Check if time complexity is reasonableCOMMENT
LOWtests/unit/integrations/test_ag_ui.py11# Check if ag_ui is availableCOMMENT
LOWtests/utils/metric_comparison.py264 # Check if metric supports batchingCOMMENT
LOWtests/e2e/metrics_migration/base_migration_test.py50 # Check if required components are availableCOMMENT
LOWtests/e2e/metrics_migration/base_migration_test.py131 # Check if required components are availableCOMMENT
LOWexamples/oci_genai_example.py125 # Check if OCI configuration is availableCOMMENT
LOW…amples/ragas_examples/text2sql/validate_sql_dataset.py114 # Check if all values in the first row are null/NoneCOMMENT
LOWexamples/ragas_examples/agent_evals/agent.py323 # Check if the model wants to call functionsCOMMENT
LOW.github/workflows/ci.yaml185 # Check if code is properly formatted (without making changes)COMMENT
LOWsrc/ragas/experiment.py66 # Check if there are any changes to the repoCOMMENT
LOWsrc/ragas/experiment.py77 # Check if there are uncommitted changesCOMMENT
LOWsrc/ragas/utils.py78 # Set propagate to False if you don't want it to log to the root logger's handlers as wellCOMMENT
LOWsrc/ragas/utils.py627 # Check if the current directory is a git repositoryCOMMENT
LOWsrc/ragas/utils.py670 # Check if we're already in an event loopCOMMENT
LOWsrc/ragas/metrics/decorator.py179 # Check if it's an optional typeCOMMENT
LOWsrc/ragas/metrics/decorator.py260 # Check if we're already in an event loopCOMMENT
LOWsrc/ragas/metrics/collections/base.py42 # Check if this instance has these attributes after initializationCOMMENT
LOWsrc/ragas/metrics/collections/base.py72 # Check if we're already in an async contextCOMMENT
LOWsrc/ragas/metrics/collections/base.py101 # Check if we're already in an async contextCOMMENT
LOW…c/ragas/metrics/collections/answer_relevancy/metric.py129 # Check if all responses are noncommittalCOMMENT
LOW…s/metrics/collections/multi_modal_faithfulness/util.py211 # Check if file existsCOMMENT
LOW⚡src/ragas/embeddings/google_provider.py100 # Check if it's the new google-genai SDK ClientCOMMENT
LOW⚡src/ragas/embeddings/google_provider.py110 # Check if client has embed_content method (it's the old genai module)COMMENT
LOW⚡src/ragas/embeddings/google_provider.py117 # Check if it's a GenerativeModel instance - extract genai module from itCOMMENT
LOWsrc/ragas/backends/registry.py212 # Check if it's an alias firstCOMMENT
LOWsrc/ragas/backends/gdrive_backend.py158 # Check if main folder existsCOMMENT
LOWsrc/ragas/integrations/ag_ui.py361 # Check if there are completed tool calls for this messageCOMMENT
LOWsrc/ragas/integrations/ag_ui.py449 # Check if there are unclaimed tool callsCOMMENT
LOWsrc/ragas/integrations/ag_ui.py544 # Check if there are completed tool calls for this messageCOMMENT
LOWsrc/ragas/prompt/simple_prompt.py244 # Check if response_model is required but not providedCOMMENT
LOWsrc/ragas/prompt/dynamic_few_shot.py387 # Check if models are required but not providedCOMMENT
LOWsrc/ragas/prompt/multi_modal_prompt.py296 # Check if the string ends with one of the common image extensions (case-insensitive)COMMENT
LOWsrc/ragas/prompt/multi_modal_prompt.py462 # Check if the path exists and is a fileCOMMENT
LOWsrc/ragas/testset/graph.py366 # Check if graph has enough nodes for meaningful pathsCOMMENT
LOWsrc/ragas/testset/graph.py403 # Check if graph is empty after node removalCOMMENT
LOWsrc/ragas/testset/graph.py620 # Check if the new cluster is a subset of any existing clusterCOMMENT
LOWsrc/ragas/testset/transforms/extractors/embeddings.py50 # Check if the client supports async operations by checking if is_async exists and is TrueCOMMENT
LOWsrc/ragas/llms/litellm_llm.py51 # Check if client is async-capable at initializationCOMMENT
LOWsrc/ragas/llms/litellm_llm.py67 # Check if this is an AsyncInstructor wrapper (instructor.AsyncInstructor)COMMENT
LOWsrc/ragas/llms/litellm_llm.py106 # Check if the closure object has acompletion (e.g., litellm Router)COMMENT
LOWsrc/ragas/llms/base.py840 # Check if client is async-capable at initializationCOMMENT
LOWsrc/ragas/llms/base.py1002 # Check if this is an AsyncInstructor wrapperCOMMENT
LOWsrc/ragas/llms/base.py1006 # Check if this is a sync Instructor wrapper that wraps an async clientCOMMENT
LOWsrc/ragas/llms/base.py1023 # Check if this is an async client by checking for a coroutine methodCOMMENT
LOWsrc/ragas/llms/base.py1047 # Check if the closure object is an async clientCOMMENT
LOWsrc/ragas/llms/adapters/__init__.py71 # Check if client is LiteLLMCOMMENT
Deep Nesting77 hits · 72 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_async_evaluation.py141CODE
LOWtests/unit/test_async_evaluation.py191CODE
LOWtests/utils/metric_comparison.py234CODE
LOWtests/e2e/metrics_migration/base_migration_test.py25CODE
LOWdocs/ipynb_to_md.py36CODE
LOWexamples/ragas_examples/text2sql/analyze_errors.py76CODE
LOW…amples/ragas_examples/text2sql/validate_sql_dataset.py58CODE
LOWexamples/ragas_examples/text2sql/evals.py32CODE
LOWexamples/ragas_examples/text2sql/db_utils.py226CODE
LOWexamples/ragas_examples/agent_evals/agent.py169CODE
LOWexamples/ragas_examples/agent_evals/agent.py242CODE
LOWsrc/ragas/async_utils.py58CODE
LOWsrc/ragas/async_utils.py159CODE
LOWsrc/ragas/async_utils.py86CODE
LOWsrc/ragas/async_utils.py181CODE
LOWsrc/ragas/evaluation.py59CODE
LOWsrc/ragas/cache.py135CODE
LOWsrc/ragas/_safe_fetch.py53CODE
LOWsrc/ragas/_safe_fetch.py197CODE
LOWsrc/ragas/dataset.py337CODE
LOWsrc/ragas/experiment.py141CODE
LOWsrc/ragas/cli.py101CODE
LOWsrc/ragas/cli.py371CODE
LOWsrc/ragas/cli.py461CODE
LOWsrc/ragas/cost.py78CODE
LOWsrc/ragas/cost.py112CODE
LOWsrc/ragas/dataset_schema.py126CODE
LOWsrc/ragas/dataset_schema.py377CODE
LOWsrc/ragas/dataset_schema.py761CODE
LOWsrc/ragas/metrics/_topic_adherence.py152CODE
LOWsrc/ragas/metrics/_topic_adherence.py189CODE
LOWsrc/ragas/metrics/base.py120CODE
LOWsrc/ragas/metrics/base.py249CODE
LOWsrc/ragas/metrics/base.py1215CODE
LOWsrc/ragas/metrics/collections/answer_accuracy/metric.py132CODE
LOW…/ragas/metrics/collections/context_relevance/metric.py142CODE
LOWsrc/ragas/metrics/collections/topic_adherence/metric.py180CODE
LOW…as/metrics/collections/response_groundedness/metric.py134CODE
LOW…s/metrics/collections/multi_modal_faithfulness/util.py126CODE
LOW…s/metrics/collections/multi_modal_faithfulness/util.py179CODE
LOWsrc/ragas/embeddings/utils.py108CODE
LOWsrc/ragas/backends/gdrive_backend.py112CODE
LOWsrc/ragas/backends/gdrive_backend.py246CODE
LOWsrc/ragas/backends/local_jsonl.py61CODE
LOWsrc/ragas/backends/local_jsonl.py74CODE
LOWsrc/ragas/integrations/swarm.py7CODE
LOWsrc/ragas/integrations/amazon_bedrock.py74CODE
LOWsrc/ragas/integrations/llama_index.py120CODE
LOWsrc/ragas/integrations/ag_ui.py850CODE
LOWsrc/ragas/integrations/ag_ui.py251CODE
LOWsrc/ragas/integrations/ag_ui.py599CODE
LOWsrc/ragas/integrations/tracing/__init__.py53CODE
LOWsrc/ragas/prompt/utils.py7CODE
LOWsrc/ragas/prompt/utils.py28CODE
LOWsrc/ragas/prompt/multi_modal_prompt.py366CODE
LOWsrc/ragas/prompt/multi_modal_prompt.py421CODE
LOWsrc/ragas/testset/graph.py471CODE
LOWsrc/ragas/testset/graph.py559CODE
LOWsrc/ragas/testset/synthesizers/__init__.py24CODE
LOWsrc/ragas/testset/synthesizers/single_hop/specific.py46CODE
17 more matches not shown…
Decorative Section Separators19 hits · 66 pts
SeverityFileLineSnippetContext
MEDIUMmkdocs-pdf.yml32 # -------------------------------------------COMMENT
MEDIUMtests/conftest.py79# ====================COMMENT
MEDIUMtests/conftest.py81# ====================COMMENT
MEDIUMtests/unit/test_metric.py243# ====================COMMENT
MEDIUMtests/unit/test_metric.py245# ====================COMMENT
MEDIUM⚡tests/unit/integrations/test_ag_ui.py753# ============================================================================COMMENT
MEDIUM⚡tests/unit/integrations/test_ag_ui.py755# ============================================================================COMMENT
MEDIUM⚡tests/unit/integrations/test_ag_ui.py895# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/integrations/test_ag_ui.py897# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/integrations/test_ag_ui.py968# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/integrations/test_ag_ui.py970# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/integrations/test_ag_ui.py793# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/integrations/test_ag_ui.py795# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/ragas/integrations/ag_ui.py1075# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/ragas/integrations/ag_ui.py1077# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/ragas/integrations/ag_ui.py1159# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/ragas/integrations/ag_ui.py1161# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/ragas/integrations/ag_ui.py1261# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/ragas/integrations/ag_ui.py1263# ---------------------------------------------------------------------------COMMENT
AI Structural Patterns24 hits · 24 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_experiment.py315CODE
LOWtests/unit/test_uvloop_compatibility.py21CODE
LOWtests/unit/test_uvloop_compatibility.py75CODE
LOWtests/unit/test_uvloop_compatibility.py89CODE
LOWexamples/ragas_examples/benchmark_llm/prompt.py57CODE
LOWexamples/ragas_examples/agent_evals/agent.py150CODE
LOWexamples/ragas_examples/agent_evals/agent.py155CODE
LOWexamples/ragas_examples/agent_evals/agent.py160CODE
LOWexamples/ragas_examples/agent_evals/agent.py167CODE
LOWexamples/ragas_examples/improve_rag/evals.py170CODE
LOWexamples/ragas_examples/prompt_evals/prompt.py27CODE
LOWexamples/iterate_prompt/run_prompt.py32CODE
LOWsrc/ragas/evaluation.py59CODE
LOWsrc/ragas/evaluation.py349CODE
LOWsrc/ragas/utils.py197CODE
LOWsrc/ragas/metrics/_domain_specific_rubrics.py86CODE
LOW…agas/metrics/collections/factual_correctness/metric.py183CODE
LOWsrc/ragas/metrics/collections/faithfulness/metric.py146CODE
LOWsrc/ragas/integrations/llama_index.py31CODE
LOWsrc/ragas/integrations/tracing/langfuse.py28CODE
LOWsrc/ragas/testset/synthesizers/generate.py114CODE
LOWsrc/ragas/testset/synthesizers/generate.py222CODE
LOWsrc/ragas/testset/synthesizers/generate.py302CODE
LOWsrc/ragas/testset/synthesizers/generate.py414CODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICAL…as/metrics/collections/multi_modal_relevance/metric.py162 result = await self.llm.client.chat.completions.create(CODE
CRITICAL…metrics/collections/multi_modal_faithfulness/metric.py154 result = await self.llm.client.chat.completions.create(CODE
AI Slop Vocabulary7 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/test_metric_decorators.py407 """Test comprehensive error handling and validation."""STRING
MEDIUMtests/unit/test_metric_decorators.py608 """Test comprehensive type validation with Pydantic for all complex types."""STRING
MEDIUM.github/workflows/claude-code-review.yml75 # - For React components: Performance, accessibility, and best practicesCOMMENT
MEDIUM.github/workflows/claude-code-review.yml82 # 'Please provide a thorough code review focusing on our coding standards and best practices.' }}COMMENT
LOWsrc/ragas/metrics/decorator.py318 # For sync functions, just call directlyCOMMENT
LOWsrc/ragas/metrics/collections/example_metric.py38 # Example logic - just return a simple score based on response lengthCOMMENT
MEDIUMsrc/ragas/metrics/collections/context_relevance/util.py29 instruction = """You are a world class expert designed to evaluate the relevance score of a Context in order to answCODE
Over-Commented Block11 hits · 11 pts
SeverityFileLineSnippetContext
LOWtests/unit/test_graph.py201 ]COMMENT
LOWtests/unit/test_graph.py221 # sorted(expected_clusters, key=lambda c: (len(c), get_cluster_names(c)))COMMENT
LOWtests/docs/__init__.py1# Tests for documentation code examplesCOMMENT
LOWexamples/gdrive_backend_example.py41COMMENT
LOW.github/workflows/claude-code-review.yml61 - Performance considerationsCOMMENT
LOW.github/workflows/claude-code-review.yml81 # 'Welcome! Please review this PR from a first-time contributor. Be encouraging and provide detailed explanaCOMMENT
LOW.github/workflows/claude.yml41 actions: readCOMMENT
LOW.github/workflows/claude.yml61 # Optional: Custom environment variables for ClaudeCOMMENT
LOWsrc/ragas/embeddings/base.py261 """COMMENT
LOWsrc/ragas/embeddings/base.py521 assert isinstance(predictions, Tensor)COMMENT
LOWsrc/ragas/integrations/__init__.py21# Tracing integrations are available as a submoduleCOMMENT
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHexamples/ragas_examples/workflow_eval/evals.py32 "pass_criteria": "category Bug Report; error_code ERR_MEMORY_OVERFLOW; product_version null; response handleCODE
HIGHexamples/ragas_examples/workflow_eval/evals.py44 "pass_criteria": "category Bug Report; error_code API-500; product_version latest/null; response acknowledgeCODE
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWexamples/ragas_examples/prompt_evals/evals.py60 # make sure to save itCOMMENT
LOWexamples/ragas_examples/rag_eval/evals.py46 # make sure to save itCOMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/unit/integrations/test_tracing_simple.py24 def test_function():CODE
LOW⚡tests/unit/integrations/test_tracing.py52 def test_function():CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWexamples/ragas_examples/agent_evals/agent.py401 # Example usageCOMMENT