AI Slop Code RIsk Monitor

deepset-ai/haystack

Open-source AI orchestration framework for building context-engineered, production-ready LLM applications. Design modular pipelines and agent workflows with explicit control over retrieval, routing, memory, and generation. Built for scalable agents, RAG, multimodal applications, semantic search, and conversational systems.

6.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for deepset-ai/haystack, a Python project with 26,714 GitHub stars. SynthScan examined 1,576,760 lines of code across 4933 source files, recording 6213 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 6.2 (Moderate 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.

6.2
Adjusted Signal
6.2
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
26.7K
Stars
Python
Language
1.6M
Lines of Code
4.9K
Files
6.2K
Pattern Hits
2026-10-12
Scan Date
0.16
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 14.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 7.8/100 · LOW

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

Agent Over-Engineering Ratio 18.6/100 · LOW

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

PR Review Velocity Impact 28.4/100 · MEDIUM

Which changes need focused human review? 6213 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

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

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 5HIGH 798MEDIUM 148LOW 5262

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 6213 distinct pattern matches across 26 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 Identifiers4236 hits · 4183 pts
SeverityFileLineSnippetContext
LOWtest/test_logging.py96 def test_skip_logging_configuration(CODE
LOWtest/test_logging.py113 def test_log_filtering_when_using_debug(self, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py124 def test_log_filtering_when_using_debug_and_log_level_is_debug(self, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py137 def test_console_rendered_structured_log_even_if_no_tty_but_python_config(CODE
LOWtest/test_logging.py153 def test_console_rendered_structured_log_if_in_ipython(CODE
LOWtest/test_logging.py169 def test_console_rendered_structured_log_even_in_jupyter(CODE
LOWtest/test_logging.py185 def test_console_rendered_structured_log_even_if_no_tty_but_forced_through_env(CODE
LOWtest/test_logging.py201 def test_console_rendered_structured_log(self, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py227 def function_that_raises_and_adds_to_stack_trace():CODE
LOWtest/test_logging.py240 def test_logging_of_contextvars(self, capfd: CaptureFixture, set_context_var_key: str) -> None:CODE
LOWtest/test_logging.py253 def test_logging_as_json_if_not_atty(self, capfd: CaptureFixture, monkeypatch: MonkeyPatch) -> None:CODE
LOWtest/test_logging.py294 def test_logging_as_json_enabling_via_env(self, capfd: CaptureFixture, monkeypatch: MonkeyPatch) -> None:CODE
LOWtest/test_logging.py315 def test_logging_of_contextvars(CODE
LOWtest/test_logging.py339 def test_logging_exceptions_json(self, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py344 def function_that_raises_and_adds_to_stack_trace():CODE
LOWtest/test_logging.py387 def test_exception_values_do_not_leak_their_payload(self, capfd: CaptureFixture, monkeypatch: MonkeyPatch) -> None:CODE
LOWtest/test_logging.py403 def test_long_values_are_truncated(self, capfd: CaptureFixture, monkeypatch: MonkeyPatch) -> None:CODE
LOWtest/test_logging.py412 def test_console_rendering_also_bounds_values(self, capfd: CaptureFixture, monkeypatch: MonkeyPatch) -> None:CODE
LOWtest/test_logging.py423 def test_trace_log_correlation_python_logs_with_console_rendering(CODE
LOWtest/test_logging.py435 def test_trace_log_correlation_python_logs(self, spying_tracer: SpyingTracer, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py458 def test_trace_log_correlation_no_span(self, spying_tracer: SpyingTracer, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py478 def test_trace_log_correlation_no_tracer(self, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py500 def test_correct_stack_level_with_stdlib_rendering(CODE
LOWtest/test_logging.py516 def test_correct_stack_level_with_consoler_rendering(self, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py604 def test_log_with_string_cast(self, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py638 def test_haystack_logger_with_positional_args(self, method: str, expected_level: str) -> None:CODE
LOWtest/test_logging.py659 def test_haystack_logger_with_old_interpolation(self, method: str, expected_level: str) -> None:CODE
LOWtest/test_logging.py668 def test_that_haystack_logger_is_used(self) -> None:CODE
LOWtest/test_logging.py704 def test_handler_is_attached_to_haystack_namespaces_and_not_root(self) -> None:CODE
LOWtest/test_logging.py715 def test_integrations_logs_are_formatted_by_haystack(self, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py723 def test_other_services_logs_are_not_reformatted_by_haystack(CODE
LOWtest/test_logging.py750 def test_legacy_root_behavior_still_available_via_empty_logger_name(self, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py761 def test_switching_to_root_logger_does_not_duplicate_haystack_logs(self, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py777 def test_propagate_is_true_by_default(self, caplog: LogCaptureFixture) -> None:CODE
LOWtest/test_logging.py787 def test_propagate_false_stops_records_from_reaching_root(self, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py813 def test_structlog_native_logger_respects_level_lowered_after_configure(self, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py825 def test_structlog_native_logger_still_filters_below_level(self, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py841 def test_without_configure_structlog_existing_config_is_preserved(self, restore_structlog_config: None) -> None:CODE
LOWtest/test_logging.py856 def test_configure_structlog_takes_over_existing_config(self, restore_structlog_config: None) -> None:CODE
LOWtest/test_logging.py867 def test_installs_handler_without_configuring_structlog(self, restore_structlog_config: None) -> None:CODE
LOWtest/test_logging.py892 def test_repeated_get_logger_interpolates_the_message_exactly_once(self, capfd: CaptureFixture) -> None:CODE
LOWtest/test_logging.py908 def test_repeated_get_logger_does_not_rewrap_methods(self) -> None:CODE
LOWtest/test_logging.py929 def test_find_caller_does_not_print_or_mask_errors(self, capsys: CaptureFixture, monkeypatch: MonkeyPatch) -> None:CODE
LOWtest/test_imports.py11def test_lazy_importer_avoids_importing_unused_modules():CODE
LOWtest/test_imports.py30def test_import_error_is_suppressed_and_deferred():CODE
LOWtest/test_release_note_backticks.py30 def test_converts_single_to_double(self, text, expected):CODE
LOW⚡test/test_release_note_backticks.py43 def test_leaves_valid_rst_untouched(self, text):CODE
LOW⚡test/test_release_note_backticks.py46 def test_only_single_backticks_in_mixed_text_are_converted(self):CODE
LOW⚡test/test_release_note_backticks.py55 def test_unbalanced_single_backtick_is_left_untouched(self):CODE
LOW⚡test/test_release_note_backticks.py62 def test_fix_rewrites_file_and_is_idempotent(self, tmp_path):CODE
LOWtest/test_release_note_backticks.py75 def test_check_mode_reports_without_modifying(self, tmp_path):CODE
LOWtest/test_telemetry.py87def test_pipeline_running_with_non_serializable_component(telemetry):CODE
LOWtest/test_telemetry.py117def test_pipeline_running_reports_agent_tools(telemetry):CODE
LOWtest/test_telemetry.py144def _pipeline_with_agent_using_toolset_loading_on_warm_up() -> Pipeline:CODE
LOW⚡test/test_telemetry.py157def test_pipeline_run_reports_tools_loaded_on_warm_up(block_telemetry_network_calls: Mock) -> None:CODE
LOW⚡test/test_telemetry.py167async def test_pipeline_run_async_reports_tools_loaded_on_warm_up(block_telemetry_network_calls: Mock) -> None:CODE
LOW⚡test/test_telemetry.py177def test_pipeline_running_with_non_dict_telemetry_data(caplog):CODE
LOWtest/test_telemetry.py198def test_send_telemetry_preserves_function_metadata():CODE
LOW⚡test/tracing/test_utils.py45 def test_list_serialized_recursively(self) -> None:CODE
LOW⚡test/tracing/test_utils.py49 def test_dict_serialized_recursively(self) -> None:CODE
4176 more matches not shown…
Cross-File Repetition389 hits · 1945 pts
SeverityFileLineSnippetContext
HIGHtest/tools/test_from_function.py0a simple function to get the current weather for a location.STRING
HIGH…_versioned_docs/version-2.22/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…_versioned_docs/version-2.25/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…e_versioned_docs/version-3.3/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…_versioned_docs/version-2.24/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…_versioned_docs/version-2.23/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…e_versioned_docs/version-3.2/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…_versioned_docs/version-2.30/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…_versioned_docs/version-2.31/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…e_versioned_docs/version-3.0/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…_versioned_docs/version-2.28/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…_versioned_docs/version-2.26/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…_versioned_docs/version-2.19/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…_versioned_docs/version-2.21/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…e_versioned_docs/version-3.1/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…_versioned_docs/version-2.20/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…_versioned_docs/version-2.27/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…_versioned_docs/version-2.18/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…_versioned_docs/version-2.29/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGHdocs-website/reference/haystack-api/tools_api.md0a simple function to get the current weather for a location.STRING
HIGH…e/breakpoints/test_pipeline_breakpoints_list_joiner.py0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…ersioned_docs/version-2.22/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…ersioned_docs/version-2.25/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…versioned_docs/version-3.3/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…ersioned_docs/version-2.24/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…ersioned_docs/version-2.23/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…versioned_docs/version-3.2/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…ersioned_docs/version-2.30/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…ersioned_docs/version-2.31/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…versioned_docs/version-3.0/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…ersioned_docs/version-2.28/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…ersioned_docs/version-2.26/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…ersioned_docs/version-2.19/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…ersioned_docs/version-2.21/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…versioned_docs/version-3.1/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…ersioned_docs/version-2.20/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…ersioned_docs/version-2.27/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…ersioned_docs/version-2.18/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGH…ersioned_docs/version-2.29/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGHdocs-website/reference/haystack-api/joiners_api.md0you are given a question and an answer. your task is to provide a score and a brief feedback on the answer. question: {{STRING
HIGHtest/utils/test_jinja2_extensions.py0mock the arrow.now function to return a fixed datetimeSTRING
HIGHtest/components/builders/test_chat_prompt_builder.py0mock the arrow.now function to return a fixed datetimeSTRING
HIGHtest/components/builders/test_prompt_builder.py0mock the arrow.now function to return a fixed datetimeSTRING
HIGHtest/token_counters/test_tiktoken_counter.py0search the web for a query and return the top results.STRING
HIGHtest/token_counters/test_openai_counter.py0search the web for a query and return the top results.STRING
HIGHtest/token_counters/test_approximate_counter.py0search the web for a query and return the top results.STRING
HIGH…components/retrievers/test_text_embedding_retriever.py0create a document store populated with embedded documents.STRING
HIGHtest/components/retrievers/test_multi_retriever.py0create a document store populated with embedded documents.STRING
HIGH…nts/retrievers/test_multi_query_embedding_retriever.py0create a document store populated with embedded documents.STRING
HIGHtest/components/converters/test_pdfminer_to_document.py0test if the component runs correctly with store_full_path=falseSTRING
HIGH…st/components/converters/test_docx_file_to_document.py0test if the component runs correctly with store_full_path=falseSTRING
HIGHtest/components/converters/test_pptx_to_document.py0test if the component runs correctly with store_full_path=falseSTRING
HIGHtest/components/converters/test_markdown_to_document.py0test if the component runs correctly with store_full_path=falseSTRING
HIGHtest/components/converters/test_csv_to_document.py0test if the component runs correctly with store_full_path=falseSTRING
HIGHtest/components/converters/test_json.py0test if the component runs correctly with store_full_path=falseSTRING
HIGHtest/components/converters/test_pypdf_to_document.py0test if the component runs correctly with store_full_path=falseSTRING
HIGHtest/components/agents/test_agent.py0mock the openai api completion response and reuse it for async testsSTRING
HIGHtest/components/generators/conftest.py0mock the openai api completion response and reuse it for async testsSTRING
HIGHtest/components/generators/chat/test_openai.py0mock the openai api completion response and reuse it for async testsSTRING
HIGHtest/components/generators/chat/test_openai_async.py0mock the openai api completion response and reuse it for async testsSTRING
329 more matches not shown…
Magic Placeholder Names341 hits · 1742 pts
SeverityFileLineSnippetContext
HIGHhaystack/components/generators/chat/azure.py54 api_key=Secret.from_token("<your-api-key>"),STRING
HIGH…ioned_docs/version-2.22/haystack-api/generators_api.md38 api_key=Secret.from_token("<your-api-key>"),CODE
HIGH…ioned_docs/version-2.22/haystack-api/generators_api.md219 api_key=Secret.from_token("<your-api-key>"),CODE
HIGH…ioned_docs/version-2.22/haystack-api/generators_api.md866 token=Secret.from_token("<your-api-key>"))CODE
HIGH…ioned_docs/version-2.22/haystack-api/generators_api.md892 token=Secret.from_token("<your-api-key>")CODE
HIGH…ioned_docs/version-2.22/haystack-api/generators_api.md911 token=Secret.from_token("<your-api-key>"))CODE
HIGH…ioned_docs/version-2.22/haystack-api/generators_api.md1885 token=Secret.from_token("<your-api-key>"))CODE
HIGH…ioned_docs/version-2.22/haystack-api/generators_api.md1905 token=Secret.from_token("<your-api-key>"))CODE
HIGH…sioned_docs/version-2.22/haystack-api/embedders_api.md367 token=Secret.from_token("<your-api-key>"))CODE
HIGH…sioned_docs/version-2.22/haystack-api/embedders_api.md386 token=Secret.from_token("<your-api-key>"))CODE
HIGH…sioned_docs/version-2.22/haystack-api/embedders_api.md554 token=Secret.from_token("<your-api-key>"))CODE
HIGH…sioned_docs/version-2.22/haystack-api/embedders_api.md568 token=Secret.from_token("<your-api-key>"))CODE
HIGH…ce_versioned_docs/version-2.22/integrations-api/mcp.md788# 2. export OPENAI_API_KEY="your-api-key" # Set up your OpenAI API keyCOMMENT
HIGH…versioned_docs/version-2.22/integrations-api/qdrant.md658 api_key="<your-api-key>",CODE
HIGH…_docs/version-2.22/integrations-api/huggingface_api.md34 token=Secret.from_token("<your-api-key>"))CODE
HIGH…_docs/version-2.22/integrations-api/huggingface_api.md53 token=Secret.from_token("<your-api-key>"))CODE
HIGH…_docs/version-2.22/integrations-api/huggingface_api.md529 token=Secret.from_token("<your-api-key>"))CODE
HIGH…_docs/version-2.22/integrations-api/huggingface_api.md543 token=Secret.from_token("<your-api-key>"))CODE
HIGH…_docs/version-2.22/integrations-api/huggingface_api.md746 token=Secret.from_token("<your-api-key>"))CODE
HIGH…_docs/version-2.22/integrations-api/huggingface_api.md772 token=Secret.from_token("<your-api-key>")CODE
HIGH…_docs/version-2.22/integrations-api/huggingface_api.md791 token=Secret.from_token("<your-api-key>"))CODE
HIGH…ioned_docs/version-2.25/haystack-api/generators_api.md35 api_key=Secret.from_token("<your-api-key>"),CODE
HIGH…ioned_docs/version-2.25/haystack-api/generators_api.md180 api_key=Secret.from_token("<your-api-key>"),CODE
HIGH…ioned_docs/version-2.25/haystack-api/generators_api.md628 token=Secret.from_token("<your-api-key>"))CODE
HIGH…ioned_docs/version-2.25/haystack-api/generators_api.md654 token=Secret.from_token("<your-api-key>")CODE
HIGH…ioned_docs/version-2.25/haystack-api/generators_api.md673 token=Secret.from_token("<your-api-key>"))CODE
HIGH…ioned_docs/version-2.25/haystack-api/generators_api.md1720 token=Secret.from_token("<your-api-key>"))CODE
HIGH…ioned_docs/version-2.25/haystack-api/generators_api.md1750 token=Secret.from_token("<your-api-key>"))CODE
HIGH…sioned_docs/version-2.25/haystack-api/embedders_api.md267 token=Secret.from_token("<your-api-key>"))CODE
HIGH…sioned_docs/version-2.25/haystack-api/embedders_api.md286 token=Secret.from_token("<your-api-key>"))CODE
HIGH…sioned_docs/version-2.25/haystack-api/embedders_api.md441 token=Secret.from_token("<your-api-key>"))CODE
HIGH…sioned_docs/version-2.25/haystack-api/embedders_api.md455 token=Secret.from_token("<your-api-key>"))CODE
HIGH…ce_versioned_docs/version-2.25/integrations-api/mcp.md788# 2. export OPENAI_API_KEY="your-api-key" # Set up your OpenAI API keyCOMMENT
HIGH…versioned_docs/version-2.25/integrations-api/qdrant.md658 api_key="<your-api-key>",CODE
HIGH…_docs/version-2.25/integrations-api/huggingface_api.md34 token=Secret.from_token("<your-api-key>"))CODE
HIGH…_docs/version-2.25/integrations-api/huggingface_api.md53 token=Secret.from_token("<your-api-key>"))CODE
HIGH…_docs/version-2.25/integrations-api/huggingface_api.md529 token=Secret.from_token("<your-api-key>"))CODE
HIGH…_docs/version-2.25/integrations-api/huggingface_api.md543 token=Secret.from_token("<your-api-key>"))CODE
HIGH…_docs/version-2.25/integrations-api/huggingface_api.md746 token=Secret.from_token("<your-api-key>"))CODE
HIGH…_docs/version-2.25/integrations-api/huggingface_api.md772 token=Secret.from_token("<your-api-key>")CODE
HIGH…_docs/version-2.25/integrations-api/huggingface_api.md791 token=Secret.from_token("<your-api-key>"))CODE
HIGH…sioned_docs/version-3.3/haystack-api/generators_api.md42 api_key=Secret.from_token("<your-api-key>"),CODE
HIGH…nce_versioned_docs/version-3.3/integrations-api/mcp.md788# 2. export OPENAI_API_KEY="your-api-key" # Set up your OpenAI API keyCOMMENT
HIGH…_versioned_docs/version-3.3/integrations-api/qdrant.md658 api_key="<your-api-key>",CODE
HIGH…d_docs/version-3.3/integrations-api/huggingface_api.md34 token=Secret.from_token("<your-api-key>"))CODE
HIGH…d_docs/version-3.3/integrations-api/huggingface_api.md53 token=Secret.from_token("<your-api-key>"))CODE
HIGH…d_docs/version-3.3/integrations-api/huggingface_api.md529 token=Secret.from_token("<your-api-key>"))CODE
HIGH…d_docs/version-3.3/integrations-api/huggingface_api.md543 token=Secret.from_token("<your-api-key>"))CODE
HIGH…d_docs/version-3.3/integrations-api/huggingface_api.md746 token=Secret.from_token("<your-api-key>"))CODE
HIGH…d_docs/version-3.3/integrations-api/huggingface_api.md772 token=Secret.from_token("<your-api-key>")CODE
HIGH…d_docs/version-3.3/integrations-api/huggingface_api.md791 token=Secret.from_token("<your-api-key>"))CODE
HIGH…ioned_docs/version-2.24/haystack-api/generators_api.md38 api_key=Secret.from_token("<your-api-key>"),CODE
HIGH…ioned_docs/version-2.24/haystack-api/generators_api.md219 api_key=Secret.from_token("<your-api-key>"),CODE
HIGH…ioned_docs/version-2.24/haystack-api/generators_api.md866 token=Secret.from_token("<your-api-key>"))CODE
HIGH…ioned_docs/version-2.24/haystack-api/generators_api.md892 token=Secret.from_token("<your-api-key>")CODE
HIGH…ioned_docs/version-2.24/haystack-api/generators_api.md911 token=Secret.from_token("<your-api-key>"))CODE
HIGH…ioned_docs/version-2.24/haystack-api/generators_api.md1885 token=Secret.from_token("<your-api-key>"))CODE
HIGH…ioned_docs/version-2.24/haystack-api/generators_api.md1905 token=Secret.from_token("<your-api-key>"))CODE
HIGH…sioned_docs/version-2.24/haystack-api/embedders_api.md367 token=Secret.from_token("<your-api-key>"))CODE
HIGH…sioned_docs/version-2.24/haystack-api/embedders_api.md386 token=Secret.from_token("<your-api-key>"))CODE
281 more matches not shown…
Unused Imports306 hits · 302 pts
SeverityFileLineSnippetContext
LOWtest/conftest.py17CODE
LOWtest/conftest.py17CODE
LOWtest/conftest.py17CODE
LOWtest/test_imports.py20CODE
LOWtest/test_imports.py32CODE
LOWtest/core/future_annotations_functions.py7CODE
LOWtest/components/generators/conftest.py7CODE
LOWhaystack/logging.py17CODE
LOWhaystack/logging.py17CODE
LOWhaystack/__init__.py14CODE
LOWhaystack/__init__.py15CODE
LOWhaystack/__init__.py15CODE
LOWhaystack/__init__.py16CODE
LOWhaystack/__init__.py17CODE
LOWhaystack/__init__.py17CODE
LOWhaystack/__init__.py18CODE
LOWhaystack/__init__.py18CODE
LOWhaystack/__init__.py19CODE
LOWhaystack/__init__.py19CODE
LOWhaystack/__init__.py19CODE
LOWhaystack/__init__.py19CODE
LOWhaystack/__init__.py20CODE
LOWhaystack/tracing/__init__.py7CODE
LOWhaystack/tracing/__init__.py7CODE
LOWhaystack/tracing/__init__.py7CODE
LOWhaystack/tracing/__init__.py7CODE
LOWhaystack/tracing/__init__.py7CODE
LOWhaystack/tracing/__init__.py7CODE
LOWhaystack/document_stores/types/__init__.py5CODE
LOWhaystack/document_stores/types/__init__.py5CODE
LOWhaystack/document_stores/types/__init__.py6CODE
LOWhaystack/document_stores/types/__init__.py7CODE
LOWhaystack/document_stores/in_memory/__init__.py13CODE
LOWhaystack/document_stores/in_memory/document_store.py12CODE
LOWhaystack/document_stores/errors/__init__.py5CODE
LOWhaystack/document_stores/errors/__init__.py5CODE
LOWhaystack/document_stores/errors/__init__.py5CODE
LOWhaystack/tools/__init__.py39CODE
LOWhaystack/tools/__init__.py40CODE
LOWhaystack/tools/__init__.py41CODE
LOWhaystack/tools/__init__.py42CODE
LOWhaystack/tools/__init__.py43CODE
LOWhaystack/tools/__init__.py44CODE
LOWhaystack/tools/__init__.py45CODE
LOWhaystack/tools/__init__.py46CODE
LOWhaystack/tools/__init__.py47CODE
LOWhaystack/tools/__init__.py48CODE
LOWhaystack/tools/__init__.py49CODE
LOWhaystack/tools/__init__.py50CODE
LOWhaystack/tools/__init__.py51CODE
LOWhaystack/tools/__init__.py52CODE
LOWhaystack/tools/searchable_toolset.py26CODE
LOWhaystack/tools/serde_utils.py13CODE
LOWhaystack/tools/utils.py12CODE
LOWhaystack/tools/skills/__init__.py5CODE
LOWhaystack/marshal/__init__.py13CODE
LOWhaystack/marshal/__init__.py14CODE
LOWhaystack/core/__init__.py5CODE
LOWhaystack/core/serialization.py16CODE
LOWhaystack/core/pipeline/__init__.py5CODE
246 more matches not shown…
Cross-Language Confusion45 hits · 301 pts
SeverityFileLineSnippetContext
HIGH⚡test/tracing/test_utils.py103 '{"id": "1", "content": "text", "blob": null, "score": null, "embedding": null, 'CODE
HIGH⚡test/tracing/test_utils.py104 '"sparse_embedding": null}',CODE
HIGH⚡test/tracing/test_utils.py108 '[{"id": "1", "content": "text", "blob": null, "score": null, "embedding": null, 'CODE
HIGH⚡test/tracing/test_utils.py109 '"sparse_embedding": null}]',CODE
HIGH⚡test/tracing/test_utils.py113 '{"key": {"id": "1", "content": "text", "blob": null, "score": null, "embedding": null, 'CODE
HIGH⚡test/tracing/test_utils.py114 '"sparse_embedding": null}}',CODE
HIGH⚡test/core/pipeline/test_utils.py45 empty_queue.push("item1", 1)CODE
HIGH⚡test/core/pipeline/test_utils.py55 empty_queue.push(item, priority)CODE
HIGH⚡test/core/pipeline/test_utils.py67 empty_queue.push(item, priority)CODE
HIGH⚡test/core/pipeline/test_utils.py77 empty_queue.push("medium1", 2)CODE
HIGH⚡test/core/pipeline/test_utils.py78 empty_queue.push("high", 1)CODE
HIGH⚡test/core/pipeline/test_utils.py79 empty_queue.push("medium2", 2)CODE
HIGH⚡test/core/pipeline/test_utils.py80 empty_queue.push("low", 3)CODE
HIGH⚡test/core/pipeline/test_utils.py147 empty_queue.push("item", 1)CODE
HIGH⚡test/core/pipeline/test_utils.py160 empty_queue.push(f"item{i}", priority)CODE
HIGHtest/core/pipeline/test_utils.py91 empty_queue.push("item1", 1)CODE
HIGHtest/core/pipeline/test_utils.py92 empty_queue.push("item2", 2)CODE
HIGHtest/core/pipeline/test_utils.py106 empty_queue.push("item1", 1)CODE
HIGHtest/core/pipeline/test_utils.py129 empty_queue.push("item1", 1)CODE
HIGHtest/core/pipeline/test_utils.py131 empty_queue.push("item2", 2)CODE
HIGHtest/core/pipeline/test_utils.py189 empty_queue.push(item, priority)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py1380 queue.push("ready_component", ComponentPriority.READY)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py1393 queue.push("blocked_component", ComponentPriority.BLOCKED)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py1407 queue.push("ready_component", ComponentPriority.READY)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py1699 priority_queue.push("comp1", ComponentPriority.DEFER)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py1700 priority_queue.push("comp2", ComponentPriority.DEFER)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py1726 priority_queue.push("branch_joiner", ComponentPriority.DEFER)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py1727 priority_queue.push("comp3", ComponentPriority.DEFER)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py2880 priority_queue.push("comp1", ComponentPriority.BLOCKED)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py2881 priority_queue.push("comp2", ComponentPriority.BLOCKED)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py2882 priority_queue.push("comp3", ComponentPriority.BLOCKED)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py2911 priority_queue.push("comp1", ComponentPriority.BLOCKED)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py2912 priority_queue.push("router", ComponentPriority.BLOCKED)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py2913 priority_queue.push("comp2", ComponentPriority.BLOCKED)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py2914 priority_queue.push("blocking_comp", ComponentPriority.BLOCKED)CODE
HIGH⚡test/core/pipeline/test_pipeline_base.py2915 priority_queue.push("a_comp3", ComponentPriority.BLOCKED)CODE
HIGHtest/core/pipeline/test_pipeline_base.py1434 queue.push(component_name, priority)CODE
HIGHtest/core/pipeline/test_pipeline_base.py2854 priority_queue.push("comp1", ComponentPriority.BLOCKED)CODE
HIGHtest/core/pipeline/test_pipeline_base.py2855 priority_queue.push("comp2", ComponentPriority.BLOCKED)CODE
HIGHtest/core/pipeline/features/conftest.py164 assert actual_value.equals(expected_value)CODE
HIGH⚡test/components/query/test_query_expander.py222 @pytest.mark.parametrize("response", ['{"queries": ["", 123, null]}', '{"queries": []}'])CODE
HIGHhaystack/core/pipeline/breakpoint.py286 "key": [{"sender": null, "value": "some value"}] -> "key": "some value"STRING
HIGHhaystack/core/pipeline/base.py1409 priority_queue.push(component_name, priority)CODE
HIGH⚡haystack/dataclasses/chat_message.py29 A dict is returned as is, a missing, null, or empty value becomes `{}`, and anything else is parsed as aSTRING
HIGHhaystack/dataclasses/chat_message.py975 # empty string, null, or omit `arguments` entirely; treat all as {}.COMMENT
Modern AI Meta-Vocabulary79 hits · 161 pts
SeverityFileLineSnippetContext
MEDIUMtest/hooks/tool_result_offloading/test_hooks.py127 # The base64 payload is what occupies the context window, so a threshold below it must trigger an offloadCOMMENT
MEDIUMe2e/pipelines/test_evaluation_pipeline.py208 # running the RAG pipeline A + evaluation pipelineCOMMENT
MEDIUMe2e/pipelines/test_evaluation_pipeline.py255 # running the RAG pipeline BCOMMENT
MEDIUM…sioned_docs/version-2.22/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.22/integrations-api/anthropic.md397 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.22/integrations-api/anthropic.md577 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…d_docs/version-2.22/integrations-api/amazon_bedrock.md1081 [Guardrails Streaming documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html)CODE
MEDIUM…sioned_docs/version-2.25/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.25/integrations-api/anthropic.md397 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.25/integrations-api/anthropic.md577 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…d_docs/version-2.25/integrations-api/amazon_bedrock.md1081 [Guardrails Streaming documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html)CODE
MEDIUM…rsioned_docs/version-3.3/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…rsioned_docs/version-3.3/integrations-api/anthropic.md397 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…rsioned_docs/version-3.3/integrations-api/anthropic.md577 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…ed_docs/version-3.3/integrations-api/amazon_bedrock.md1081 [Guardrails Streaming documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html)CODE
MEDIUM…sioned_docs/version-2.24/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.24/integrations-api/anthropic.md397 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.24/integrations-api/anthropic.md577 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…d_docs/version-2.24/integrations-api/amazon_bedrock.md1081 [Guardrails Streaming documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html)CODE
MEDIUM…sioned_docs/version-2.23/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.23/integrations-api/anthropic.md397 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.23/integrations-api/anthropic.md577 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…d_docs/version-2.23/integrations-api/amazon_bedrock.md1081 [Guardrails Streaming documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html)CODE
MEDIUM…rsioned_docs/version-3.2/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…rsioned_docs/version-3.2/integrations-api/anthropic.md397 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…rsioned_docs/version-3.2/integrations-api/anthropic.md577 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…ed_docs/version-3.2/integrations-api/amazon_bedrock.md1081 [Guardrails Streaming documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html)CODE
MEDIUM…sioned_docs/version-2.30/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.30/integrations-api/anthropic.md397 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.30/integrations-api/anthropic.md577 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…d_docs/version-2.30/integrations-api/amazon_bedrock.md1081 [Guardrails Streaming documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html)CODE
MEDIUM…sioned_docs/version-2.31/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.31/integrations-api/anthropic.md397 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.31/integrations-api/anthropic.md577 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…d_docs/version-2.31/integrations-api/amazon_bedrock.md1081 [Guardrails Streaming documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html)CODE
MEDIUM…rsioned_docs/version-3.0/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…rsioned_docs/version-3.0/integrations-api/anthropic.md397 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…rsioned_docs/version-3.0/integrations-api/anthropic.md577 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…ed_docs/version-3.0/integrations-api/amazon_bedrock.md1081 [Guardrails Streaming documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html)CODE
MEDIUM…sioned_docs/version-2.28/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.28/integrations-api/anthropic.md397 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.28/integrations-api/anthropic.md577 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…d_docs/version-2.28/integrations-api/amazon_bedrock.md1081 [Guardrails Streaming documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html)CODE
MEDIUM…sioned_docs/version-2.26/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.26/integrations-api/anthropic.md397 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.26/integrations-api/anthropic.md577 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…d_docs/version-2.26/integrations-api/amazon_bedrock.md1081 [Guardrails Streaming documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html)CODE
MEDIUM…sioned_docs/version-2.19/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.19/integrations-api/anthropic.md397 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.19/integrations-api/anthropic.md577 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…d_docs/version-2.19/integrations-api/amazon_bedrock.md1081 [Guardrails Streaming documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html)CODE
MEDIUM…sioned_docs/version-2.21/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.21/integrations-api/anthropic.md397 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…sioned_docs/version-2.21/integrations-api/anthropic.md577 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…d_docs/version-2.21/integrations-api/amazon_bedrock.md1081 [Guardrails Streaming documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html)CODE
MEDIUM…rsioned_docs/version-3.1/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…rsioned_docs/version-3.1/integrations-api/anthropic.md397 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…rsioned_docs/version-3.1/integrations-api/anthropic.md577 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
MEDIUM…ed_docs/version-3.1/integrations-api/amazon_bedrock.md1081 [Guardrails Streaming documentation](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-streaming.html)CODE
MEDIUM…sioned_docs/version-2.20/integrations-api/anthropic.md137 use is detected. See the Anthropic [tools](https://docs.anthropic.com/en/docs/tool-use#chain-of-thought-tool-use)CODE
19 more matches not shown…
Fake / Example Data149 hits · 153 pts
SeverityFileLineSnippetContext
LOW⚡test/tools/test_searchable_toolset.py866 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOW⚡test/tools/test_searchable_toolset.py914 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOWtest/tools/test_searchable_toolset.py524 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOWtest/components/routers/test_document_type_router.py288 "author": "John Doe",CODE
LOW⚡test/components/routers/test_document_type_router.py299 assert classified_doc.meta["author"] == "John Doe"CODE
LOW⚡…/components/preprocessors/test_python_code_splitter.py143 doc = Document(content="placeholder")CODE
LOW⚡test/components/preprocessors/test_document_cleaner.py134 Lorem ipsum dolor sit ametCODE
LOW⚡test/components/preprocessors/test_document_cleaner.py134 Lorem ipsum dolor sit ametCODE
LOW⚡test/components/preprocessors/test_document_cleaner.py152 Lorem ipsum dolor sit amet 3CODE
LOW⚡test/components/preprocessors/test_document_cleaner.py152 Lorem ipsum dolor sit amet 3CODE
LOW⚡test/components/agents/test_agent.py310 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOW⚡test/components/agents/test_agent.py519 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOW⚡test/components/agents/test_agent.py528 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOW⚡test/components/agents/test_agent.py731 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOW⚡test/components/agents/test_agent.py1223 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOW⚡test/components/agents/test_agent.py2024 function=lambda: "placeholder",CODE
LOW⚡test/components/agents/test_agent.py2027 id="placeholder",CODE
LOWtest/components/agents/test_agent.py239 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOWtest/components/agents/test_agent.py399 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOWtest/components/agents/test_agent.py483 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOWtest/components/agents/test_agent.py498 monkeypatch.setenv("FAKE_OPENAI_KEY", "fake-key")CODE
LOWtest/components/agents/test_agent.py1265 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOWtest/components/agents/test_agent.py2065 function=lambda: "placeholder",CODE
LOWtest/components/agents/test_agent_hooks.py728 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOW⚡test/components/evaluators/test_sas_evaluator.py13 monkeypatch.setenv("HF_API_TOKEN", "fake-token")CODE
LOW⚡test/components/evaluators/test_sas_evaluator.py19 assert evaluator._token.resolve_value() == "fake-token"CODE
LOW⚡test/components/evaluators/test_sas_evaluator.py22 monkeypatch.setenv("HF_API_TOKEN", "fake-token")CODE
LOWtest/components/evaluators/test_sas_evaluator.py38 monkeypatch.setenv("HF_API_TOKEN", "fake-token")CODE
LOW⚡test/components/evaluators/test_sas_evaluator.py55 assert evaluator._token.resolve_value() == "fake-token"CODE
LOW⚡test/components/generators/chat/test_llm.py149 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOWtest/components/generators/chat/test_llm.py176 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOWtest/components/generators/chat/test_llm.py193 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOWtest/components/generators/chat/test_llm.py229 monkeypatch.setenv("OPENAI_API_KEY", "fake-key")CODE
LOW…xtractors/image/test_llm_document_content_extractor.py473 {"title": "Example Document", "author": "John Doe", "date": "2024-01-15", "document_type": "invoice"}CODE
LOWtest/dataclasses/test_document.py71 {"content_type": "text", "id_hash_keys": ["content"], "dataframe": "placeholder"},CODE
LOW…/version-2.22/integrations-api/microsoft_sharepoint.md273 operators directly in the query, for example `filetype:docx`, `author:"Jane Doe"`, orCODE
LOW…/version-2.22/integrations-api/microsoft_sharepoint.md303 operators directly in the query, for example `filetype:docx`, `author:"Jane Doe"`, orCODE
LOW…ioned_docs/version-2.22/integrations-api/opensearch.md625 meta={"category": "Python", "status": "active", "priority": 1, "author": "John Doe"}CODE
LOW…ioned_docs/version-2.22/integrations-api/opensearch.md633 meta={"category": "Python", "status": "inactive", "priority": 3, "author": "John Doe"}CODE
LOW…ed_docs/version-2.22/integrations-api/mongodb_atlas.md182results = retriever.run(query="Lorem ipsum")CODE
LOW…ed_docs/version-2.22/integrations-api/mongodb_atlas.md186The example above retrieves the 10 most similar documents to the query "Lorem ipsum" from theCODE
LOW…/version-2.25/integrations-api/microsoft_sharepoint.md273 operators directly in the query, for example `filetype:docx`, `author:"Jane Doe"`, orCODE
LOW…/version-2.25/integrations-api/microsoft_sharepoint.md303 operators directly in the query, for example `filetype:docx`, `author:"Jane Doe"`, orCODE
LOW…ioned_docs/version-2.25/integrations-api/opensearch.md625 meta={"category": "Python", "status": "active", "priority": 1, "author": "John Doe"}CODE
LOW…ioned_docs/version-2.25/integrations-api/opensearch.md633 meta={"category": "Python", "status": "inactive", "priority": 3, "author": "John Doe"}CODE
LOW…ed_docs/version-2.25/integrations-api/mongodb_atlas.md182results = retriever.run(query="Lorem ipsum")CODE
LOW…ed_docs/version-2.25/integrations-api/mongodb_atlas.md186The example above retrieves the 10 most similar documents to the query "Lorem ipsum" from theCODE
LOW…s/version-3.3/integrations-api/microsoft_sharepoint.md273 operators directly in the query, for example `filetype:docx`, `author:"Jane Doe"`, orCODE
LOW…s/version-3.3/integrations-api/microsoft_sharepoint.md303 operators directly in the query, for example `filetype:docx`, `author:"Jane Doe"`, orCODE
LOW…sioned_docs/version-3.3/integrations-api/opensearch.md625 meta={"category": "Python", "status": "active", "priority": 1, "author": "John Doe"}CODE
LOW…sioned_docs/version-3.3/integrations-api/opensearch.md633 meta={"category": "Python", "status": "inactive", "priority": 3, "author": "John Doe"}CODE
LOW…ned_docs/version-3.3/integrations-api/mongodb_atlas.md182results = retriever.run(query="Lorem ipsum")CODE
LOW…ned_docs/version-3.3/integrations-api/mongodb_atlas.md186The example above retrieves the 10 most similar documents to the query "Lorem ipsum" from theCODE
LOW…/version-2.24/integrations-api/microsoft_sharepoint.md273 operators directly in the query, for example `filetype:docx`, `author:"Jane Doe"`, orCODE
LOW…/version-2.24/integrations-api/microsoft_sharepoint.md303 operators directly in the query, for example `filetype:docx`, `author:"Jane Doe"`, orCODE
LOW…ioned_docs/version-2.24/integrations-api/opensearch.md625 meta={"category": "Python", "status": "active", "priority": 1, "author": "John Doe"}CODE
LOW…ioned_docs/version-2.24/integrations-api/opensearch.md633 meta={"category": "Python", "status": "inactive", "priority": 3, "author": "John Doe"}CODE
LOW…ed_docs/version-2.24/integrations-api/mongodb_atlas.md182results = retriever.run(query="Lorem ipsum")CODE
LOW…ed_docs/version-2.24/integrations-api/mongodb_atlas.md186The example above retrieves the 10 most similar documents to the query "Lorem ipsum" from theCODE
LOW…/version-2.23/integrations-api/microsoft_sharepoint.md273 operators directly in the query, for example `filetype:docx`, `author:"Jane Doe"`, orCODE
89 more matches not shown…
Self-Referential Comments51 hits · 147 pts
SeverityFileLineSnippetContext
MEDIUMtest/document_stores/test_in_memory.py797 # Create a mix of concurrent operationsCOMMENT
MEDIUMtest/tools/test_pipeline_tool.py253 # Create an Agent with the toolCOMMENT
MEDIUMtest/tools/test_pipeline_tool.py298 # Create an Agent with the toolCOMMENT
MEDIUM⚡test/tools/test_component_tool.py834 # Create a pipeline and add the component to itCOMMENT
MEDIUMtest/tools/test_component_tool.py377 # Create a pipeline with the annotated componentCOMMENT
MEDIUMtest/tools/test_component_tool.py443 # Create a pipeline with both componentsCOMMENT
MEDIUMtest/tools/test_component_tool.py774 # Create the component and toolCOMMENT
MEDIUM⚡test/core/pipeline/test_pipeline_base.py1720 # Create a cycle between comp2 and comp3. Entry point is comp1 -> comp2COMMENT
MEDIUM…breakpoints/test_pipeline_breakpoints_branch_joiner.py59 # Create a Breakpoint on-the-fly using the shared output directoryCOMMENT
MEDIUM…breakpoints/test_pipeline_breakpoints_string_joiner.py48 # Create a Breakpoint on-the-fly using the shared output directoryCOMMENT
MEDIUM…breakpoints/test_pipeline_breakpoints_answer_joiner.py55 # Create a Breakpoint on-the-fly using the shared output directoryCOMMENT
MEDIUM…e/breakpoints/test_pipeline_breakpoints_list_joiner.py60 # Create a Breakpoint on-the-fly using the shared output directorySTRING
MEDIUM⚡…ipeline/breakpoints/test_pipeline_breakpoints_loops.py122 # Create a Breakpoint on-the-fly using the shared output directoryCOMMENT
MEDIUM…ne/breakpoints/test_pipeline_breakpoints_rag_hybrid.py112 # Create a Breakpoint on-the-fly using the shared output directoryCOMMENT
MEDIUM…st/components/preprocessors/test_recursive_splitter.py1245 # Create a complex text with multiple separators and chunks of different sizesCOMMENT
MEDIUM…reprocessors/test_embedding_based_document_splitter.py719 # Create a very long text with multiple paragraphs and topicsCOMMENT
MEDIUM…reprocessors/test_embedding_based_document_splitter.py807 # Create a very long text with multiple paragraphs and topicsCOMMENT
MEDIUM…onents/retrievers/test_auto_merging_retriever_async.py84 # Create a leaf document that points to this parentCOMMENT
MEDIUM…t/components/retrievers/test_auto_merging_retriever.py155 # Create a leaf document that points to this parentCOMMENT
MEDIUMtest/components/converters/image/test_pdf_to_image.py101 # Create an empty ByteStream objectCOMMENT
MEDIUMtest/components/converters/image/test_file_to_image.py108 # Create an empty ByteStream objectCOMMENT
MEDIUM…/components/embedders/test_openai_document_embedder.py241 # Create a successful response for the second callCOMMENT
MEDIUMtest/components/generators/conftest.py405 # Create a custom stream that yields both events sequentiallyCOMMENT
MEDIUM⚡haystack/tools/component_tool.py70 # Create a SerperDev search componentSTRING
MEDIUM⚡haystack/tools/component_tool.py73 # Create a tool from the componentSTRING
MEDIUM⚡haystack/tools/component_tool.py80 # Create an Agent with an OpenAIResponsesChatGenerator and the toolSTRING
MEDIUMhaystack/tools/component_tool.py179 # Create the tools schema from the component run method parametersCOMMENT
MEDIUMhaystack/tools/component_tool.py240 # Create the Tool instance with the component invoker as the function to be called and the schema.COMMENT
MEDIUMhaystack/tools/pipeline_tool.py76 # Create an Agent with the toolSTRING
MEDIUMhaystack/tools/toolset.py42 # Create a toolset with the math toolsSTRING
MEDIUMhaystack/core/pipeline/pipeline.py491 # Create a snapshot of the state of the pipeline before the error occurred.COMMENT
MEDIUM⚡haystack/core/pipeline/base.py261 # Create a new oneCOMMENT
MEDIUMhaystack/core/pipeline/base.py781 # Create the new connectionCOMMENT
MEDIUMhaystack/core/pipeline/base.py1552 # Create a list of all components that have the same priority as the current component, including theCOMMENT
MEDIUMhaystack/core/component/component.py262 # Create the sockets if set_input_types() wasn't called in the constructor.COMMENT
MEDIUMhaystack/core/super_component/super_component.py460 # Create a super component with simplified input/output mappingSTRING
MEDIUMhaystack/core/super_component/super_component.py592 # Create a new __init__ method that will initialize both the original class and SuperComponentCOMMENT
MEDIUMhaystack/core/super_component/super_component.py627 # Create a new class inheriting from SuperComponent with the original methodsCOMMENT
MEDIUMhaystack/utils/http_client.py37 # Create a copy to avoid modifying the original dictCOMMENT
MEDIUMhaystack/components/routers/conditional_router.py272 # Create a Jinja environment to inspect variables in the condition templatesCOMMENT
MEDIUM…nts/preprocessors/embedding_based_document_splitter.py45 # Create a document with content that has a clear topic shiftSTRING
MEDIUM…nts/preprocessors/embedding_based_document_splitter.py257 # Create an initial split of the document content into smaller chunksCOMMENT
MEDIUM…nts/preprocessors/embedding_based_document_splitter.py274 # Create an initial split of the document content into smaller chunksCOMMENT
MEDIUM⚡haystack/components/fetchers/link_content.py409 # Create an empty ByteStream for failed requests when raise_on_failure is FalseCOMMENT
MEDIUMhaystack/components/joiners/branch.py41 # Define a schema for validationSTRING
MEDIUMhaystack/hooks/human_in_the_loop/strategies.py569 # Create a lookup for decisions that don't have a tool_call_id. We use tool name instead.COMMENT
MEDIUMhaystack/telemetry/_telemetry.py80 # Create the config fileCOMMENT
MEDIUM.github/workflows/branch_off.yml51 # Create the release branch from mainCOMMENT
MEDIUM⚡…senotes/notes/add-component-tool-ffe9f9911ea055a6.yaml24 # Create a SerperDev search componentCOMMENT
MEDIUM⚡…senotes/notes/add-component-tool-ffe9f9911ea055a6.yaml30 # Create a tool from the componentCOMMENT
MEDIUM…es/notes/add-tool-search-toolset-ca7c9c04f9e4b7cf.yaml21 # Create a catalog of toolsCOMMENT
Over-Commented Block146 hits · 146 pts
SeverityFileLineSnippetContext
LOWtest/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/tracing/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/tools/skills/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/marshal/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/core/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/core/pipeline/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/core/pipeline/test_pipeline_base.py2921 # Mimicking the user providing "route1" as input to the pipeline.runCOMMENT
LOWtest/token_counters/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/routers/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/preprocessors/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/retrievers/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/fetchers/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/writers/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/builders/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/joiners/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/converters/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/converters/image/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/agents/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/evaluators/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/embedders/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/samplers/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/generators/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/generators/chat/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/rankers/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/query/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/extractors/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/components/extractors/image/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/hooks/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/hooks/human_in_the_loop/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/hooks/compaction/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/hooks/tool_result_offloading/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/hooks/budget/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/skill_stores/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/skill_stores/file_system/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWtest/evaluation/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWhaystack/document_stores/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWhaystack/tools/from_function.py41 '''A simple function to get the current weather for a location.'''COMMENT
LOWhaystack/tools/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWhaystack/core/component/component.py161COMMENT
LOWhaystack/utils/callable_serialization.py141COMMENT
LOWhaystack/testing/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWhaystack/components/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOWhaystack/components/routers/llm_messages_router.py41 output_patterns=["unsafe", "safe"])COMMENT
LOW…k/components/preprocessors/markdown_header_splitter.py81 self._header_pattern = re.compile(r"(?m)^(#{1,6}) (.+)$") # ATX-style .md-headersCOMMENT
LOW…ack/components/retrievers/sentence_window_retriever.py61 rag.connect("bm25_retriever", "sentence_window_retriever")COMMENT
LOWhaystack/components/agents/state/state_utils.py21COMMENT
LOWhaystack/components/evaluators/context_relevance.py81 print(result["score"])COMMENT
LOW…stack/components/rankers/meta_field_grouping_ranker.py41COMMENT
LOWhaystack/skill_stores/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
LOW.github/workflows/cla_draft_gate.yml1name: CLA draft gateCOMMENT
LOW.github/workflows/cla_draft_gate.yml21# assignee). The scheduled sweep doubles as a backstop in case a status eventCOMMENT
LOW.github/workflows/promote_unstable_docs.yml61 # This workflow is triggered by a tag pushed by the HaystackBot in release.yml > create-release-tag.COMMENT
LOW.github/workflows/cflite_pr.yml1name: ClusterFuzzLite PR fuzzingCOMMENT
LOW.github/workflows/first_pr_limit.yml1name: First-time contributor PR limitCOMMENT
LOW.github/workflows/scorecard.yml1# OpenSSF ScorecardCOMMENT
LOW.github/utils/parse_validate_version.sh1#!/bin/bashCOMMENT
LOW.github/utils/wait_for_workflows.sh1#!/bin/bashCOMMENT
LOW.github/utils/wait_for_platform_pr.sh1#!/bin/bashCOMMENT
LOW.github/utils/prepare_release_notification.sh1#!/bin/bashCOMMENT
LOWe2e/__init__.py1# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>COMMENT
86 more matches not shown…
Modern Structural Boilerplate123 hits · 126 pts
SeverityFileLineSnippetContext
LOW⚡test/tracing/utils.py25 def set_tag(self, key: str, value: Any) -> None:CODE
LOW⚡test/tracing/utils.py31 def set_content_tag(self, key: str, value: Any) -> None:CODE
LOWtest/tracing/utils.py91 def set_tag(self, key: str, value: Any) -> None:CODE
LOWhaystack/__init__.py27__all__ = [CODE
LOWhaystack/tracing/utils.py10logger = logging.getLogger(__name__)CODE
LOWhaystack/tracing/tracer.py18 def set_tag(self, key: str, value: Any) -> None:CODE
LOWhaystack/tracing/tracer.py30 def set_tags(self, tags: dict[str, Any]) -> None:CODE
LOWhaystack/tracing/tracer.py49 def set_content_tag(self, key: str, value: Any) -> None:CODE
LOWhaystack/tracing/tracer.py136 def set_tag(self, key: str, value: Any) -> None:CODE
LOWhaystack/tracing/logging_tracer.py15logger = logging.getLogger(__name__)CODE
LOWhaystack/tracing/logging_tracer.py25 def set_tag(self, key: str, value: Any) -> None:CODE
LOWhaystack/document_stores/types/__init__.py9__all__ = ["apply_filter_policy", "DocumentStore", "DuplicatePolicy", "FilterPolicy"]CODE
LOWhaystack/document_stores/types/filter_policy.py10logger = logging.getLogger(__name__)CODE
LOWhaystack/document_stores/in_memory/document_store.py27logger = logging.getLogger(__name__)CODE
LOWhaystack/document_stores/errors/__init__.py7__all__ = ["DocumentStoreError", "DuplicateDocumentError", "MissingDocumentError"]CODE
LOWhaystack/tools/tool_types.py18__all__ = ["ToolsType"]CODE
LOWhaystack/tools/component_tool.py32logger = logging.getLogger(__name__)CODE
LOWhaystack/tools/pipeline_tool.py18logger = logging.getLogger(__name__)CODE
LOWhaystack/tools/parameters_schema_utils.py22logger = logging.getLogger(__name__)CODE
LOWhaystack/tools/skills/__init__.py7__all__ = ["SkillToolset"]CODE
LOWhaystack/core/__init__.py7__all__ = ["SuperComponent"]CODE
LOWhaystack/core/serialization_security.py105logger = logging.getLogger(__name__)CODE
LOWhaystack/core/pipeline/__init__.py7__all__ = ["Pipeline"]CODE
LOWhaystack/core/pipeline/utils.py15logger = logging.getLogger(__name__)CODE
LOWhaystack/core/pipeline/pipeline.py38logger = logging.getLogger(__name__)CODE
LOWhaystack/core/pipeline/breakpoint.py19logger = logging.getLogger(__name__)CODE
LOWhaystack/core/pipeline/draw.py20logger = logging.getLogger(__name__)CODE
LOWhaystack/core/pipeline/base.py69logger = logging.getLogger(__name__)CODE
LOWhaystack/core/component/__init__.py8__all__ = ["component", "Component", "InputSocket", "OutputSocket"]CODE
LOWhaystack/core/component/component.py92logger = logging.getLogger(__name__)CODE
LOWhaystack/core/component/component.py440 def set_input_types(self, instance: Any, **types: type[Any]) -> None:CODE
LOWhaystack/core/component/component.py490 def set_output_types(self, instance: Any, **types: type[Any]) -> None:CODE
LOWhaystack/core/super_component/__init__.py7__all__ = ["SuperComponent", "super_component"]CODE
LOWhaystack/core/super_component/super_component.py17logger = logging.getLogger(__name__)CODE
LOWhaystack/utils/misc.py30logger = logging.getLogger(__name__)CODE
LOWhaystack/utils/base_serialization.py15logger = logging.getLogger(__name__)CODE
LOW⚡haystack/utils/async_utils.py10logger = logging.getLogger(__name__)CODE
LOWhaystack/utils/jinja2_chat_extension.py29logger = logging.getLogger(__name__)CODE
LOWhaystack/utils/requests_utils.py14logger = logging.getLogger(__name__)CODE
LOWhaystack/utils/type_serialization.py25logger = logging.getLogger(__name__)CODE
LOWhaystack/utils/callable_serialization.py24logger = logging.getLogger(__name__)CODE
LOWhaystack/utils/hf.py14logger = logging.getLogger(__name__)CODE
LOWhaystack/token_counters/types/__init__.py7__all__ = ["TokenCounter"]CODE
LOWhaystack/testing/test_utils.py10logger = logging.getLogger(__name__)CODE
LOWhaystack/testing/test_utils.py13def set_all_seeds(seed: int, deterministic_cudnn: bool = False) -> None:CODE
LOWhaystack/testing/sample_components/__init__.py22__all__ = [CODE
LOWhaystack/components/routers/file_type_router.py21logger = logging.getLogger(__name__)CODE
LOWhaystack/components/routers/conditional_router.py22logger = logging.getLogger(__name__)CODE
LOWhaystack/components/preprocessors/sentence_tokenizer.py15logger = logging.getLogger(__name__)CODE
LOW…k/components/preprocessors/markdown_header_splitter.py13logger = logging.getLogger(__name__)CODE
LOW…stack/components/preprocessors/csv_document_cleaner.py15logger = logging.getLogger(__name__)CODE
LOWhaystack/components/preprocessors/document_splitter.py21logger = logging.getLogger(__name__)CODE
LOW…tack/components/preprocessors/csv_document_splitter.py15logger = logging.getLogger(__name__)CODE
LOW…stack/components/preprocessors/python_code_splitter.py14logger = logging.getLogger(__name__)CODE
LOWhaystack/components/preprocessors/document_cleaner.py15logger = logging.getLogger(__name__)CODE
LOW…nts/preprocessors/embedding_based_document_splitter.py21logger = logging.getLogger(__name__)CODE
LOWhaystack/components/preprocessors/recursive_splitter.py16logger = logging.getLogger(__name__)CODE
LOW…ack/components/retrievers/sentence_window_retriever.py10logger = logging.getLogger(__name__)CODE
LOWhaystack/components/retrievers/types/__init__.py7__all__ = ["TextRetriever", "EmbeddingRetriever"]CODE
LOWhaystack/components/fetchers/link_content.py25logger = logging.getLogger(__name__)CODE
63 more matches not shown…
Excessive Try-Catch Wrapping104 hits · 105 pts
SeverityFileLineSnippetContext
LOWtest/tracing/test_logging_tracer.py184 except Exception:CODE
LOWtest/core/pipeline/features/conftest.py90 except Exception as e:CODE
LOWtest/core/pipeline/features/conftest.py125 except Exception as e:CODE
LOW…st/components/generators/chat/test_openai_responses.py85 except Exception as e:CODE
LOWhaystack/tracing/utils.py35 except Exception as error:CODE
LOWhaystack/tracing/logging_tracer.py78 except Exception as e: # noqa: TRY203CODE
LOWhaystack/document_stores/in_memory/document_store.py468 except Exception as e:CODE
LOWhaystack/tools/from_function.py173 except Exception as e:CODE
LOWhaystack/tools/component_tool.py381 except Exception as e:CODE
LOWhaystack/tools/parameters_schema_utils.py148 except Exception as e:CODE
LOWhaystack/tools/tool.py292 except Exception as e:CODE
LOWhaystack/tools/tool.py317 except Exception as e:CODE
LOWhaystack/core/type_utils.py61 except Exception:CODE
LOWhaystack/core/pipeline/utils.py54 except Exception as e:CODE
LOWhaystack/core/pipeline/pipeline.py184 except Exception as error:CODE
LOWhaystack/core/pipeline/pipeline.py598 except Exception as error:CODE
LOWhaystack/core/pipeline/pipeline.py636 except Exception:CODE
LOWhaystack/core/pipeline/breakpoint.py183 except Exception as error:CODE
LOWhaystack/core/pipeline/breakpoint.py217 except Exception as error:CODE
LOWhaystack/core/pipeline/draw.py326 except Exception as exc:STRING
LOW⚡haystack/core/pipeline/base.py266 except Exception as e:CODE
LOW⚡haystack/core/pipeline/base.py270 except Exception:CODE
LOWhaystack/core/pipeline/base.py351 except Exception as e:CODE
LOWhaystack/core/pipeline/base.py1685 except Exception as e:CODE
LOWhaystack/utils/misc.py132 except Exception:CODE
LOWhaystack/utils/base_serialization.py145 except Exception as error:CODE
LOWhaystack/utils/base_serialization.py160 except Exception as field_error:CODE
LOWhaystack/utils/base_serialization.py318 except Exception as e:CODE
LOWhaystack/utils/base_serialization.py327 except Exception as e:CODE
LOW⚡haystack/utils/async_utils.py25 except Exception:CODE
LOWhaystack/utils/jinja2_extensions.py51 except Exception as e:CODE
LOWhaystack/utils/callable_serialization.py103 except Exception:CODE
LOWhaystack/components/routers/file_type_router.py197 except Exception as e:CODE
LOWhaystack/components/routers/conditional_router.py480 except Exception as e:CODE
LOW…stack/components/preprocessors/csv_document_cleaner.py84 except Exception as e:CODE
LOW…tack/components/preprocessors/csv_document_splitter.py112 except Exception as e:CODE
LOW…stack/components/preprocessors/python_code_splitter.py171 except Exception: # pragma: no cover - defensive guardCODE
LOWhaystack/components/retrievers/multi_retriever.py282 except Exception as e:CODE
LOWhaystack/components/retrievers/multi_retriever.py351 except Exception as e:CODE
LOWhaystack/components/fetchers/link_content.py377 except Exception as e:CODE
LOW⚡haystack/components/fetchers/link_content.py405 except Exception as e:CODE
LOWhaystack/components/fetchers/link_content.py428 except Exception as e:CODE
LOWhaystack/components/converters/docx.py216 except Exception as e:CODE
LOWhaystack/components/converters/docx.py223 except Exception as e:CODE
LOWhaystack/components/converters/file_to_file_content.py76 except Exception as e:CODE
LOWhaystack/components/converters/pdfminer.py225 except Exception:CODE
LOWhaystack/components/converters/pdfminer.py287 except Exception as e:CODE
LOWhaystack/components/converters/pdfminer.py293 except Exception as e:CODE
LOWhaystack/components/converters/html.py122 except Exception as e:CODE
LOWhaystack/components/converters/html.py134 except Exception as conversion_e:CODE
LOWhaystack/components/converters/txt.py82 except Exception as e:CODE
LOWhaystack/components/converters/txt.py88 except Exception as e:CODE
LOWhaystack/components/converters/markdown.py120 except Exception as e:CODE
LOWhaystack/components/converters/markdown.py128 except Exception as conversion_e:CODE
LOWhaystack/components/converters/output_adapter.py148 except Exception as e:CODE
LOWhaystack/components/converters/pypdf.py207 except Exception:CODE
LOWhaystack/components/converters/pypdf.py209 except Exception:CODE
LOWhaystack/components/converters/pypdf.py261 except Exception as e:CODE
LOWhaystack/components/converters/pypdf.py267 except Exception as e:CODE
LOWhaystack/components/converters/csv.py120 except Exception as e:CODE
44 more matches not shown…
Empty Error Handlers17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHtest/tracing/test_logging_tracer.py184except Exception:CODE
HIGH…breakpoints/test_pipeline_breakpoints_branch_joiner.py64except BreakpointException:CODE
HIGH…breakpoints/test_pipeline_breakpoints_string_joiner.py53except BreakpointException:CODE
HIGH…breakpoints/test_pipeline_breakpoints_answer_joiner.py60except BreakpointException:CODE
HIGH…e/breakpoints/test_pipeline_breakpoints_list_joiner.py65except BreakpointException:CODE
HIGH…ipeline/breakpoints/test_pipeline_breakpoints_loops.py127except BreakpointException:CODE
HIGH…ne/breakpoints/test_pipeline_breakpoints_rag_hybrid.py117except BreakpointException:CODE
HIGHtest/fuzz/fuzz_pipeline_loads.py35except _EXPECTED + _KNOWN_BUGS:CODE
HIGHtest/fuzz/fuzz_document_from_dict.py32except _EXPECTED:CODE
HIGHtest/fuzz/fuzz_filters.py37except _EXPECTED:CODE
HIGHhaystack/logging.py251except ImportError:CODE
HIGHhaystack/tools/tool.py242except (ValueError, TypeError):CODE
HIGHhaystack/core/type_utils.py157except TypeError: # typing classes can't be used with issubclass, so we deal with them belowCODE
HIGHhaystack/core/component/sockets.py131except AttributeError:CODE
HIGHhaystack/utils/jupyter.py18except NameError:CODE
HIGHhaystack/components/converters/csv.py162except Exception:CODE
HIGHhaystack/hooks/invocation.py32except Exception:CODE
Deep Nesting76 hits · 74 pts
SeverityFileLineSnippetContext
LOWhaystack/document_stores/in_memory/document_store.py704CODE
LOWhaystack/tools/from_function.py356CODE
LOWhaystack/tools/utils.py40CODE
LOWhaystack/tools/utils.py74CODE
LOWhaystack/tools/utils.py92CODE
LOWhaystack/tools/parameters_schema_utils.py118CODE
LOWhaystack/tools/tool.py112CODE
LOWhaystack/core/serialization.py43CODE
LOWhaystack/core/serialization.py257CODE
LOWhaystack/core/pipeline/pipeline.py200CODE
LOWhaystack/core/pipeline/pipeline.py807CODE
LOWhaystack/core/pipeline/draw.py181CODE
LOWhaystack/core/pipeline/base.py216CODE
LOWhaystack/core/pipeline/base.py1221CODE
LOWhaystack/core/pipeline/base.py1334CODE
LOWhaystack/core/pipeline/base.py1787CODE
LOWhaystack/core/super_component/super_component.py217CODE
LOWhaystack/utils/misc.py33CODE
LOWhaystack/utils/device.py219CODE
LOWhaystack/utils/jinja2_extensions.py98CODE
LOWhaystack/utils/hf.py54CODE
LOWhaystack/testing/sample_components/concatenate.py15CODE
LOWhaystack/components/routers/file_type_router.py149CODE
LOWhaystack/components/routers/document_type_router.py118CODE
LOWhaystack/components/routers/conditional_router.py404CODE
LOWhaystack/components/routers/conditional_router.py489CODE
LOW…k/components/preprocessors/markdown_header_splitter.py125CODE
LOW…k/components/preprocessors/markdown_header_splitter.py268CODE
LOW…tack/components/preprocessors/csv_document_splitter.py75CODE
LOW…stack/components/preprocessors/python_code_splitter.py566CODE
LOWhaystack/components/preprocessors/recursive_splitter.py169CODE
LOWhaystack/components/preprocessors/recursive_splitter.py340CODE
LOWhaystack/components/preprocessors/recursive_splitter.py432CODE
LOWhaystack/components/builders/chat_prompt_builder.py131CODE
LOWhaystack/components/builders/chat_prompt_builder.py205CODE
LOWhaystack/components/builders/answer_builder.py126CODE
LOWhaystack/components/builders/answer_builder.py281CODE
LOWhaystack/components/converters/docx.py274CODE
LOWhaystack/components/converters/docx.py327CODE
LOWhaystack/components/converters/pdfminer.py176CODE
LOWhaystack/components/converters/pypdf.py174CODE
LOWhaystack/components/converters/xlsx.py161CODE
LOWhaystack/components/converters/json.py179CODE
LOWhaystack/components/converters/pptx.py75CODE
LOWhaystack/components/agents/agent.py124CODE
LOWhaystack/components/agents/agent.py583CODE
LOWhaystack/components/agents/tool_calling.py354CODE
LOWhaystack/components/agents/tool_calling.py514CODE
LOWhaystack/components/evaluators/llm_evaluator.py269CODE
LOWhaystack/components/validators/json_schema.py226CODE
LOWhaystack/components/generators/utils.py52CODE
LOWhaystack/components/generators/utils.py117CODE
LOWhaystack/components/generators/chat/openai_responses.py645CODE
LOWhaystack/components/generators/chat/openai_responses.py713CODE
LOWhaystack/components/generators/chat/openai_responses.py836CODE
LOWhaystack/components/generators/chat/openai_responses.py939CODE
LOWhaystack/components/generators/chat/openai_responses.py528CODE
LOWhaystack/components/generators/chat/mock.py140CODE
LOWhaystack/components/rankers/meta_field.py373CODE
LOW…stack/components/rankers/meta_field_grouping_ranker.py77CODE
16 more matches not shown…
Hallucination Indicators5 hits · 50 pts
SeverityFileLineSnippetContext
CRITICAL.github/workflows/cla_draft_gate.yml157 const issues = result.repository.pullRequest.closingIssuesReferences.nodes.filter(CODE
CRITICAL.github/workflows/linked_issue_review.yml64 let issues = result.repository.pullRequest.closingIssuesReferences.nodes.filter(CODE
CRITICAL.github/workflows/pr_flood_guard.yml73 const linkedIssues = result.repository.pullRequest.closingIssuesReferences.nodes.filter(CODE
CRITICAL.github/workflows/handled_internally_pr_guard.yml74 const internal = result.repository.pullRequest.closingIssuesReferences.nodes.filter(CODE
CRITICAL.github/workflows/priority_label_sync.yml135 const prs = result.repository.issue.closedByPullRequestsReferences.nodes.filter(CODE
Decorative Section Separators15 hits · 48 pts
SeverityFileLineSnippetContext
MEDIUMhaystack/components/agents/utils.py20# ---------------------------COMMENT
MEDIUMhaystack/components/agents/utils.py22# ---------------------------COMMENT
MEDIUMhaystack/components/agents/utils.py88# ---------------------------COMMENT
MEDIUMhaystack/components/agents/utils.py90# ---------------------------COMMENT
MEDIUMhaystack/components/agents/utils.py179# ---------------------------COMMENT
MEDIUMhaystack/components/agents/utils.py181# ---------------------------COMMENT
MEDIUM⚡haystack/components/agents/utils.py233# ---------------------------COMMENT
MEDIUM⚡haystack/components/agents/utils.py235# ---------------------------COMMENT
MEDIUMscripts/generate_platform_components_table.py130# ── Component type helpers ────────────────────────────────────────────────────COMMENT
MEDIUMscripts/generate_platform_components_table.py150# ── Docs-site link map ────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/generate_platform_components_table.py191# ── Source-scanning helpers ───────────────────────────────────────────────────COMMENT
MEDIUMscripts/generate_platform_components_table.py245# ── Schema loading ────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/generate_platform_components_table.py264# ── MDX generation ────────────────────────────────────────────────────────────COMMENT
MEDIUMscripts/generate_platform_components_table.py329# ── Component doc page labeling ───────────────────────────────────────────────COMMENT
MEDIUMscripts/generate_platform_components_table.py411# ── Entry point ───────────────────────────────────────────────────────────────COMMENT
Redundant / Tautological Comments24 hits · 38 pts
SeverityFileLineSnippetContext
LOWhaystack/tools/serde_utils.py53 # Check if it's a serialized Toolset (a dict with "type" and "data" keys)COMMENT
LOWhaystack/tools/pipeline_tool.py85 # Print result of the tool callSTRING
LOWhaystack/tools/parameters_schema_utils.py64 # Check if it's a Callable type (direct or parameterized)COMMENT
LOWhaystack/core/pipeline/breakpoint.py68 # Check if the ordered_component_names are valid components in the pipelineCOMMENT
LOWhaystack/core/pipeline/breakpoint.py86 # Check if the original_input_data is valid components in the pipelineCOMMENT
LOWhaystack/core/pipeline/breakpoint.py189 # Check if snapshot saving is enabled via environment variable (disabled by default)COMMENT
LOWhaystack/core/pipeline/base.py1161 # Check if an input is provided more than once for non-variadic socketsCOMMENT
LOWhaystack/core/pipeline/component_checks.py106 # Check if socket has all required inputs or is a lazy variadic socket with any inputCOMMENT
LOWhaystack/core/super_component/utils.py126 # Check if all arguments are compatibleCOMMENT
LOWhaystack/utils/jinja2_extensions.py81 # Check if a custom datetime format is provided after a commaCOMMENT
LOWhaystack/components/routers/conditional_router.py566 # Check if template_text is a string before attempting to parseCOMMENT
LOW⚡…tack/components/preprocessors/csv_document_splitter.py268 # Check if there are consecutive rows >= row_split_threshold now presentCOMMENT
LOWhaystack/components/agents/tool_calling.py426 # Check if State is in func_paramsCOMMENT
LOWhaystack/components/agents/state/state.py77 # Check if the list contains ChatMessage elementsCOMMENT
LOWhaystack/components/samplers/top_p.py105 # Check if the cumulative probabilities are close to top_p with a 1e-6 toleranceCOMMENT
LOWhaystack/components/query/query_expander.py141 # Check if required variables are present in the templateCOMMENT
LOWhaystack/components/extractors/regex_text_extractor.py52 # Check if the pattern has at least one capture groupCOMMENT
LOWhaystack/hooks/human_in_the_loop/strategies.py96 # Check if we should ask based on policyCOMMENT
LOW.github/workflows/release_notes.yml47 # Check if any of the commit messages contain tags ci/docs/testCOMMENT
LOW.github/utils/create_unstable_docs_docusaurus.py46 # Check if the versions we're about to create already exist in versioned_docsCOMMENT
LOW⚡docs-website/scripts/setup-dev.sh13# Check if we're in the right directoryCOMMENT
LOW⚡docs-website/scripts/setup-dev.sh19# Check if Python is availableCOMMENT
LOW⚡docs-website/scripts/setup-dev.sh28# Check if base dependencies are installedCOMMENT
LOWdocs-website/scripts/setup-dev.sh42# Check if requirements.txt was generatedCOMMENT
Example Usage Blocks57 hits · 29 pts
SeverityFileLineSnippetContext
LOWhaystack/tools/from_function.py32 ### Usage exampleSTRING
LOW⚡haystack/tools/from_function.py243 ### Usage exampleSTRING
LOWhaystack/tools/skills/skill_toolset.py31 ### Usage exampleSTRING
LOWhaystack/core/super_component/super_component.py420 ### Usage exampleSTRING
LOWhaystack/utils/experimental.py19 ## Usage exampleSTRING
LOWhaystack/components/routers/document_length_router.py19 ### Usage exampleSTRING
LOWhaystack/components/routers/llm_messages_router.py26 ### Usage exampleSTRING
LOWhaystack/components/routers/file_type_router.py37 ### Usage exampleSTRING
LOWhaystack/components/routers/document_type_router.py26 ### Usage exampleSTRING
LOWhaystack/components/routers/conditional_router.py58 ### Usage exampleSTRING
LOWhaystack/components/preprocessors/document_splitter.py47 ### Usage exampleSTRING
LOW…onents/preprocessors/hierarchical_document_splitter.py21 ## Usage exampleSTRING
LOWhaystack/components/preprocessors/text_cleaner.py21 ### Usage exampleSTRING
LOWhaystack/components/preprocessors/document_cleaner.py27 ### Usage example:STRING
LOW…nts/preprocessors/embedding_based_document_splitter.py38 ### Usage exampleSTRING
LOWhaystack/components/retrievers/multi_retriever.py34 ### Usage exampleSTRING
LOW…ack/components/retrievers/sentence_window_retriever.py38 ### Usage exampleSTRING
LOW…ck/components/retrievers/multi_query_text_retriever.py27 ### Usage exampleSTRING
LOW…tack/components/retrievers/text_embedding_retriever.py23 ### Usage exampleSTRING
LOWhaystack/components/retrievers/filter_retriever.py16 ### Usage exampleSTRING
LOW…mponents/retrievers/multi_query_embedding_retriever.py26 ### Usage exampleSTRING
LOW…components/retrievers/in_memory/embedding_retriever.py23 ### Usage exampleSTRING
LOW…tack/components/retrievers/in_memory/bm25_retriever.py19 ### Usage exampleSTRING
LOWhaystack/components/fetchers/link_content.py87 ### Usage exampleSTRING
LOWhaystack/components/writers/document_writer.py16 ### Usage exampleSTRING
LOWhaystack/components/builders/answer_builder.py28 ### Usage exampleSTRING
LOWhaystack/components/joiners/string_joiner.py15 ### Usage exampleSTRING
LOWhaystack/components/joiners/answer_joiner.py52 ### Usage exampleSTRING
LOWhaystack/components/joiners/document_joiner.py56 ### Usage example:STRING
LOWhaystack/components/converters/file_to_file_content.py24 ### Usage exampleSTRING
LOWhaystack/components/converters/txt.py26 ### Usage exampleSTRING
LOWhaystack/components/converters/pypdf.py58 ### Usage exampleSTRING
LOWhaystack/components/converters/csv.py30 ### Usage exampleSTRING
LOWhaystack/components/converters/xlsx.py33 ### Usage exampleSTRING
LOW…stack/components/converters/image/document_to_image.py36 ### Usage exampleSTRING
LOW…ystack/components/converters/image/file_to_document.py28 ### Usage exampleSTRING
LOWhaystack/components/converters/image/pdf_to_image.py23 ### Usage exampleSTRING
LOWhaystack/components/converters/image/file_to_image.py35 ### Usage exampleSTRING
LOWhaystack/components/agents/state/state.py105 ### Usage exampleSTRING
LOWhaystack/components/embedders/azure_text_embedder.py21 ### Usage exampleSTRING
LOW…stack/components/embedders/openai_document_embedder.py26 ### Usage exampleSTRING
LOW…ystack/components/embedders/azure_document_embedder.py23 ### Usage exampleSTRING
LOWhaystack/components/embedders/openai_text_embedder.py23 ### Usage exampleSTRING
LOWhaystack/components/embedders/mock_document_embedder.py41 ### Usage exampleSTRING
LOWhaystack/components/embedders/mock_text_embedder.py37 ### Usage exampleSTRING
LOW…ystack/components/generators/openai_image_generator.py26 ### Usage exampleSTRING
LOWhaystack/components/generators/chat/openai_responses.py84 ### Usage exampleSTRING
LOWhaystack/components/generators/chat/azure.py43 ### Usage exampleSTRING
LOWhaystack/components/generators/chat/azure_responses.py36 ### Usage exampleSTRING
LOWhaystack/components/generators/chat/openai.py74 ### Usage exampleSTRING
LOWhaystack/components/generators/chat/mock.py66 ### Usage exampleSTRING
LOW…stack/components/rankers/meta_field_grouping_ranker.py27 ### Usage exampleSTRING
LOWhaystack/components/query/query_expander.py66 ### Usage exampleSTRING
LOWhaystack/components/caching/cache_checker.py19 ### Usage exampleSTRING
LOWhaystack/components/extractors/regex_text_extractor.py23 ### Usage exampleSTRING
LOW…nts/extractors/image/llm_document_content_extractor.py83 ### Usage exampleSTRING
LOWhaystack/hooks/from_function.py131 ### Usage exampleSTRING
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHhaystack/core/component/component.py398 See module's docstring. Args: cls: the class that should be used as a component. Returns: STRING
HIGHhaystack/components/generators/chat/openai_responses.py138 Creates an instance of OpenAIResponsesChatGenerator. Uses OpenAI's gpt-5-mini by default. Before initiSTRING
HIGHhaystack/components/generators/chat/azure.py130 Initialize the Azure OpenAI Chat Generator component. :param azure_endpoint: The endpoint of the deploSTRING
HIGHhaystack/components/generators/chat/azure_responses.py107 Initialize the AzureOpenAIResponsesChatGenerator component. :param api_key: The API key to use for autSTRING
HIGHhaystack/components/generators/chat/openai.py135 Creates an instance of OpenAIChatGenerator. Unless specified otherwise in `model`, uses OpenAI's gpt-5-mini STRING
AI Structural Patterns19 hits · 19 pts
SeverityFileLineSnippetContext
LOWhaystack/document_stores/in_memory/document_store.py103CODE
LOW…k/components/preprocessors/markdown_header_splitter.py28CODE
LOWhaystack/components/preprocessors/document_splitter.py60CODE
LOW…tack/components/preprocessors/document_preprocessor.py34CODE
LOW…stack/components/preprocessors/python_code_splitter.py87CODE
LOWhaystack/components/preprocessors/document_cleaner.py42CODE
LOWhaystack/components/converters/pdfminer.py52CODE
LOWhaystack/components/converters/pypdf.py75CODE
LOWhaystack/components/agents/agent.py419CODE
LOWhaystack/components/embedders/azure_text_embedder.py37CODE
LOW…stack/components/embedders/openai_document_embedder.py42CODE
LOW…ystack/components/embedders/azure_document_embedder.py39CODE
LOWhaystack/components/embedders/openai_text_embedder.py39CODE
LOWhaystack/components/embedders/mock_document_embedder.py53CODE
LOW…ystack/components/generators/openai_image_generator.py35CODE
LOWhaystack/components/generators/chat/openai_responses.py123CODE
LOWhaystack/components/generators/chat/azure.py111CODE
LOWhaystack/components/generators/chat/azure_responses.py90CODE
LOWhaystack/components/generators/chat/openai.py121CODE
Structural Annotation Overuse7 hits · 15 pts
SeverityFileLineSnippetContext
LOW⚡test/components/agents/test_agent_hitl.py284 # Step 1: the model calls producer and consumer together (consumer relies on inputs_from_state for `value`).COMMENT
LOW⚡test/components/agents/test_agent_hitl.py285 # Step 2: a plain text reply ends the run.COMMENT
LOW⚡test/components/agents/test_agent.py1024 # Step 1: a tool call (prompt 10 + completion 5 = 15). Step 2: the final text answer.COMMENT
LOW⚡…tack/components/preprocessors/csv_document_splitter.py257 # Step 1: Split by rowsCOMMENT
LOW⚡…tack/components/preprocessors/csv_document_splitter.py260 # Step 2: Split by columnsCOMMENT
LOW⚡…tack/components/preprocessors/csv_document_splitter.py265 # Step 3: Recursively reapply splitting checked by whether any new empty rows appear after column splitCOMMENT
LOWhaystack/telemetry/_environment.py92 # NOTE: The following items are set to default values and never populated.COMMENT
Verbosity Indicators7 hits · 14 pts
SeverityFileLineSnippetContext
LOW⚡test/components/agents/test_agent_hitl.py284 # Step 1: the model calls producer and consumer together (consumer relies on inputs_from_state for `value`).COMMENT
LOW⚡test/components/agents/test_agent_hitl.py285 # Step 2: a plain text reply ends the run.COMMENT
LOW⚡test/components/agents/test_agent.py1024 # Step 1: a tool call (prompt 10 + completion 5 = 15). Step 2: the final text answer.COMMENT
LOWhaystack/tools/parameters_schema_utils.py56 The purpose of this function is to help identify Callable types so they canSTRING
LOW⚡…tack/components/preprocessors/csv_document_splitter.py257 # Step 1: Split by rowsCOMMENT
LOW⚡…tack/components/preprocessors/csv_document_splitter.py260 # Step 2: Split by columnsCOMMENT
LOW⚡…tack/components/preprocessors/csv_document_splitter.py265 # Step 3: Recursively reapply splitting checked by whether any new empty rows appear after column splitCOMMENT
AI Slop Vocabulary6 hits · 13 pts
SeverityFileLineSnippetContext
MEDIUMtest/test_logging.py210 # Only check for the minute to be a bit more robustCOMMENT
LOWhaystack/core/pipeline/breakpoint.py307 # For other data types, just return the value as is.COMMENT
LOWhaystack/core/pipeline/base.py1356 # if we are resuming a component, the inputs are already consumed, so we just return the first inputCOMMENT
LOWhaystack/components/fetchers/link_content.py23 pass # nothing to import as we simply set the http2 attribute, library handles the restCODE
MEDIUMdocs-website/scripts/test_python_snippets.py296 # Prepend a line directive comment to facilitate mapping if neededCOMMENT
MEDIUM.clusterfuzzlite/build.sh20 # Ship a seed corpus if one exists for this harness. The runner unpacksCOMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md26- **Open the PR** — Use a [conventional commit](https://www.conventionalcommits.org/en/v1.0.0/) title, fill the [PR tempCODE
Overly Generic Function Names3 hits · 3 pts
SeverityFileLineSnippetContext
LOW⚡test/utils/test_callable_serialization.py42 def my_method(self):CODE
LOW⚡haystack/tools/from_function.py238 def my_function(): ...STRING
LOW⚡haystack/tools/from_function.py241 def my_function(): ...STRING
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpyproject.toml209# TODO: Fix testing typingsCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWhaystack/tracing/logging_tracer.py80 # we make sure to log the operation name and tags of the span when the context manager exitsCOMMENT