AI Slop Code RIsk Monitor

567-labs/instructor

structured outputs for llms

26.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for 567-labs/instructor, a Python project with 13,996 GitHub stars. SynthScan examined 147,686 lines of code across 895 source files, recording 2622 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 26.4 (Elevated pattern signal); it is not an authorship estimate.

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

26.4
Adjusted Signal
26.4
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
14.0K
Stars
Python
Language
147.7K
Lines of Code
895
Files
2.6K
Pattern Hits
2026-10-12
Scan Date
0.21
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 47.3/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 27.3/100 · MEDIUM

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

Agent Over-Engineering Ratio 55.0/100 · HIGH

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

PR Review Velocity Impact 74.2/100 · HIGH

Which changes need focused human review? 2622 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 19HIGH 170MEDIUM 180LOW 2253

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 2622 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 Identifiers1296 hits · 1293 pts
SeverityFileLineSnippetContext
LOWgithub_issue.md42def generate_anthropic_schema(model: Type[BaseModel]) -> dict[str, Any]:CODE
LOWtests/test_lazy_imports.py34def test_top_level_exports_load_lazily():STRING
LOWtests/test_lazy_imports.py58def test_mode_export_stays_lightweight():STRING
LOWtests/test_lazy_imports.py82def test_auto_client_keeps_bedrock_provider_lazy():STRING
LOW⚡tests/test_utils.py200def test_combine_system_messages_string_string():CODE
LOW⚡tests/test_utils.py207def test_combine_system_messages_list_list():CODE
LOW⚡tests/test_utils.py217def test_combine_system_messages_string_list():CODE
LOW⚡tests/test_utils.py227def test_combine_system_messages_list_string():CODE
LOW⚡tests/test_utils.py237def test_update_total_usage_preserves_openai_usage_subclass():CODE
LOW⚡tests/test_utils.py267def test_combine_system_messages_none_string():CODE
LOW⚡tests/test_utils.py274def test_combine_system_messages_none_list():CODE
LOW⚡tests/test_utils.py281def test_combine_system_messages_invalid_type():CODE
LOW⚡tests/test_utils.py286def test_extract_system_messages():CODE
LOWtests/test_utils.py22def test_extract_json_from_codeblock():CODE
LOWtests/test_utils.py300def test_extract_system_messages_no_system():CODE
LOWtests/test_utils.py309def test_combine_system_messages_with_cache_control():CODE
LOWtests/test_utils.py338def test_combine_system_messages_string_to_cache_control():CODE
LOWtests/test_utils.py361def test_extract_system_messages_with_cache_control():CODE
LOWtests/test_utils.py390def test_combine_system_messages_preserve_cache_control():CODE
LOWtests/test_utils.py429def test_provider_enum_covers_supported_providers():CODE
LOWtests/test_utils.py437def test_get_provider_matches_supported_providers():CODE
LOWtests/test_utils.py36def test_extract_json_from_codeblock_no_end():STRING
LOWtests/test_utils.py53def test_extract_json_from_codeblock_no_start():STRING
LOWtests/test_utils.py142def test_merge_consecutive_messages():STRING
LOWtests/test_utils.py162def test_merge_consecutive_messages_empty():STRING
LOWtests/test_utils.py168def test_merge_consecutive_messages_single():STRING
LOWtests/test_genai_reask.py16def test_reask_genai_tools_preserves_thought_signature():CODE
LOWtests/test_genai_reask.py39def test_reask_genai_tools_finds_function_call_part_when_not_first():CODE
LOWtests/test_genai_reask.py61def test_reask_genai_tools_handles_none_response():CODE
LOWtests/test_genai_reask.py71def test_reask_genai_tools_falls_back_when_no_function_call():CODE
LOWtests/test_xai_optional_dependency.py5def test_from_provider_xai_requires_optional_extra(monkeypatch):CODE
LOWtests/test_xai_optional_dependency.py25def test_direct_from_xai_has_clear_error_when_sdk_missing(monkeypatch):CODE
LOWtests/test_prepare_release.py69def test_prepare_release_validates_and_extracts_notes(tmp_path: Path) -> None:STRING
LOWtests/test_prepare_release.py81def test_prepare_release_rejects_expected_version_mismatch(tmp_path: Path) -> None:STRING
LOWtests/test_prepare_release.py90def test_prepare_release_rejects_duplicate_release_sections(tmp_path: Path) -> None:STRING
LOWtests/test_prepare_release.py102def test_prepare_release_rejects_lockfile_version_drift(tmp_path: Path) -> None:STRING
LOWtests/test_prepare_release.py115def test_prepare_release_rejects_runtime_version_drift(tmp_path: Path) -> None:STRING
LOWtests/test_prepare_release.py127def test_prepare_release_requires_single_runtime_version(tmp_path: Path) -> None:STRING
LOWtests/test_prepare_release.py137def test_prepare_release_requires_comparison_link(tmp_path: Path) -> None:STRING
LOWtests/test_prepare_release.py150def test_prepare_release_rejects_stale_repository_url(tmp_path: Path) -> None:STRING
LOWtests/test_batch_in_memory.py24 def test_save_to_bytesio_openai(self):CODE
LOWtests/test_batch_in_memory.py52 def test_save_to_bytesio_anthropic(self):CODE
LOWtests/test_batch_in_memory.py78 def test_save_to_file_still_works(self):CODE
LOWtests/test_batch_in_memory.py111 def test_multiple_requests_in_buffer(self):CODE
LOWtests/test_batch_in_memory.py137 def test_invalid_buffer_type_raises_error(self):CODE
LOWtests/test_batch_in_memory.py158 def test_openai_provider_accepts_bytesio(self):CODE
LOW⚡tests/test_batch_in_memory.py187 def test_anthropic_provider_accepts_bytesio(self):CODE
LOWtests/test_batch_in_memory.py214 def test_provider_invalid_type_raises_error(self):CODE
LOWtests/test_openai_responses_tools.py35def test_responses_tools_preserves_function_description() -> None:CODE
LOWtests/test_openai_responses_tools.py45def test_responses_tools_sets_text_format() -> None:CODE
LOWtests/test_openai_responses_tools.py56def test_responses_tools_overrides_conflicting_text_format() -> None:CODE
LOWtests/test_openai_responses_tools.py79def test_responses_tools_preserves_matching_text_format() -> None:CODE
LOWtests/test_openai_responses_tools.py97def test_responses_tools_none_model_no_text() -> None:CODE
LOWtests/test_openai_responses_tools.py115def test_reask_responses_tools_empty_args_message() -> None:CODE
LOWtests/test_openai_responses_tools.py129def test_reask_responses_tools_nonempty_args_message() -> None:CODE
LOWtests/test_openai_responses_tools.py142def test_reask_responses_tools_none_arguments() -> None:CODE
LOWtests/test_openai_responses_tools.py151def test_reask_responses_tools_no_tool_calls_adds_fallback_message() -> None:CODE
LOW⚡tests/test_openai_responses_tools.py183def test_responses_tools_overrides_text_type_format() -> None:CODE
LOW⚡tests/test_openai_responses_tools.py193def test_parse_response_warns_on_empty_args(caplog) -> None:CODE
LOW⚡tests/test_openai_responses_tools.py210def test_incomplete_responses_fail_before_validation(CODE
1236 more matches not shown…
Unused Imports447 hits · 420 pts
SeverityFileLineSnippetContext
LOWtests/test_prepare_release.py1CODE
LOWtests/test_openai_responses_tools.py1CODE
LOWtests/test_usage_accounting_contracts.py8CODE
LOWtests/test_streaming_reasoning_events.py10CODE
LOWtests/test_llm_validator_allow_override.py8CODE
LOWtests/test_import_lazy_openai.py3CODE
LOWtests/test_batch_processor_coverage.py3CODE
LOWtests/test_usage_accounting_audit.py11CODE
LOWtests/packaging/contract.py3CODE
LOWtests/llm/test_vertexai/conftest.py11CODE
LOWtests/llm/test_gemini/conftest.py14CODE
LOWtests/llm/test_core_providers/conftest.py5CODE
LOWtests/llm/test_core_providers/conftest.py5CODE
LOWtests/llm/test_bedrock/test_openai_image_conversion.py1CODE
LOWtests/llm/test_bedrock/conftest.py1CODE
LOW…ts/llm/test_bedrock/test_bedrock_native_passthrough.py1CODE
LOWtests/llm/test_bedrock/test_prepare_kwargs.py1CODE
LOWtests/llm/test_bedrock/test_normalize.py1CODE
LOWtests/llm/test_writer/conftest.py8CODE
LOWtests/llm/test_decisions/conftest.py1CODE
LOWtests/llm/test_decisions/test_live_decisions.py3CODE
LOWtests/core/test_retry_http_semantics.py3CODE
LOWtests/processing/test_list_response_wrapper.py1CODE
LOWtests/processing/test_formatting.py1CODE
LOWtests/providers/test_auto_client.py1CODE
LOWtests/docs/conftest.py1CODE
LOWtests/docs/_example_groups.py1CODE
LOWtests/docs/_concept_groups.py1CODE
LOWtests/typing/test_public_surface.py1CODE
LOWtests/typing/test_installed_package.py1CODE
LOWtests/v2/test_issue_2374.py1CODE
LOWtests/v2/test_genai_cached_content_release.py1CODE
LOWtests/v2/test_responses_sdk_contract.py3CODE
LOWtests/v2/test_security_regressions.py3CODE
LOWtests/v2/test_xai_client.py7CODE
LOWtests/v2/test_parallel_contracts.py1CODE
LOWtests/v2/test_json_stream_bounds.py1CODE
LOWtests/v2/test_auto_client_deterministic.py1CODE
LOWtests/v2/test_gemini_utils_deterministic.py1CODE
LOWtests/v2/test_handler_registration_unified.py7CODE
LOWtests/v2/test_anthropic_handlers.py7CODE
LOWtests/v2/test_genai_integration.py1CODE
LOWtests/v2/test_openai_streaming.py1CODE
LOWtests/v2/test_retry_budget.py1CODE
LOWtests/v2/test_xai_handlers.py6CODE
LOWtests/v2/test_handlers_parametrized.py7CODE
LOWtests/v2/_fake_genai.py3CODE
LOWtests/v2/test_citation.py8CODE
LOWtests/v2/test_genai_config_reuse.py1CODE
LOWtests/v2/test_request_local_streaming.py3CODE
LOWtests/v2/test_async_validators_execution.py3CODE
LOWtests/v2/test_vertexai_runtime.py1CODE
LOWtests/v2/test_mode_normalization.py1CODE
LOWtests/v2/test_remote_fetch.py1CODE
LOWtests/v2/test_genai_multimodal_runtime.py1CODE
LOWtests/v2/test_client_unified.py7CODE
LOWtests/v2/test_legacy_provider_compat.py1CODE
LOWtests/v2/test_genai_handlers_deterministic.py1CODE
LOWtests/v2/test_core_multimodal_runtime.py1CODE
LOWtests/v2/test_core_provider_dispatch.py3CODE
387 more matches not shown…
Cross-File Repetition72 hits · 360 pts
SeverityFileLineSnippetContext
HIGHtests/llm/test_new_client.py0\ given the following text, create a group object for 'the beatles' band text: the beatles were an english rock band forSTRING
HIGHdocs/integrations/cohere.md0\ given the following text, create a group object for 'the beatles' band text: the beatles were an english rock band forSTRING
HIGHexamples/cohere/cohere.py0\ given the following text, create a group object for 'the beatles' band text: the beatles were an english rock band forSTRING
HIGHtests/llm/test_writer/evals/test_entities.py0sample legal contract agreement contract this agreement is made and entered into on 2020-01-01 by and between company a STRING
HIGHexamples/resolving-complex-entities/run.py0sample legal contract agreement contract this agreement is made and entered into on 2020-01-01 by and between company a STRING
HIGHdocs/examples/entity_resolution.md0sample legal contract agreement contract this agreement is made and entered into on 2020-01-01 by and between company a STRING
HIGHtests/v2/test_xai_handlers.py0test prepare_request returns unchanged kwargs when response_model is none.STRING
HIGHtests/v2/test_mistral_handlers.py0test prepare_request returns unchanged kwargs when response_model is none.STRING
HIGHtests/v2/test_cohere_handlers.py0test prepare_request returns unchanged kwargs when response_model is none.STRING
HIGHtests/v2/test_xai_handlers.py0test prepare_request doesn't modify original kwargs.STRING
HIGHtests/v2/test_mistral_handlers.py0test prepare_request doesn't modify original kwargs.STRING
HIGHtests/v2/test_cohere_handlers.py0test prepare_request doesn't modify original kwargs.STRING
HIGHdocs/blog/posts/writer-support.md0in our recent online meeting, participants from various backgrounds joined to discuss the upcoming tech conference. the STRING
HIGHdocs/examples/partial_streaming.md0in our recent online meeting, participants from various backgrounds joined to discuss the upcoming tech conference. the STRING
HIGHdocs/concepts/partial.md0in our recent online meeting, participants from various backgrounds joined to discuss the upcoming tech conference. the STRING
HIGHdocs/blog/posts/introducing-structured-outputs.md0in our recent online meeting, participants from various backgrounds joined to discuss the upcoming tech conference. the STRING
HIGHdocs/blog/posts/matching-language.md0լեզվական մոդելները վերջին տարիներին դարձել են ավելի հարուստ և կատարյալ, հնարավորություն ընձեռելով ստեղծել սահուն և բնակաSTRING
HIGHexamples/match_language/run_v2.py0լեզվական մոդելները վերջին տարիներին դարձել են ավելի հարուստ և կատարյալ, հնարավորություն ընձեռելով ստեղծել սահուն և բնակաSTRING
HIGHexamples/match_language/run_v1.py0լեզվական մոդելները վերջին տարիներին դարձել են ավելի հարուստ և կատարյալ, հնարավորություն ընձեռելով ստեղծել սահուն և բնակաSTRING
HIGHdocs/blog/posts/logfire.md0perform single-label classification on the input text.STRING
HIGHdocs/examples/single_classification.md0perform single-label classification on the input text.STRING
HIGHdocs/examples/classification.md0perform single-label classification on the input text.STRING
HIGHexamples/logfire/classify.py0perform single-label classification on the input text.STRING
HIGHdocs/blog/posts/langsmith.md0predict the type of question that is being asked. here are some tips on how to predict the question type: contact: searcSTRING
HIGHdocs/examples/batch_classification_langsmith.md0predict the type of question that is being asked. here are some tips on how to predict the question type: contact: searcSTRING
HIGHexamples/batch-classification/run-cache.py0predict the type of question that is being asked. here are some tips on how to predict the question type: contact: searcSTRING
HIGHexamples/batch-classification/run.py0predict the type of question that is being asked. here are some tips on how to predict the question type: contact: searcSTRING
HIGHexamples/batch-classification/run_langsmith.py0predict the type of question that is being asked. here are some tips on how to predict the question type: contact: searcSTRING
HIGHdocs/integrations/deepseek.md0extract: jason is 25 years old. he lives at 123 main st, new york, usa and has a summer house at 456 beach rd, miami, usSTRING
HIGHdocs/integrations/fireworks.md0extract: jason is 25 years old. he lives at 123 main st, new york, usa and has a summer house at 456 beach rd, miami, usSTRING
HIGHdocs/integrations/writer.md0extract: jason is 25 years old. he lives at 123 main st, new york, usa and has a summer house at 456 beach rd, miami, usSTRING
HIGHdocs/integrations/xai.md0extract: jason is 25 years old. he lives at 123 main st, new york, usa and has a summer house at 456 beach rd, miami, usSTRING
HIGHdocs/integrations/groq.md0extract: jason is 25 years old. he lives at 123 main st, new york, usa and has a summer house at 456 beach rd, miami, usSTRING
HIGHdocs/integrations/openai.md0extract: jason is 25 years old. he lives at 123 main st, new york, usa and has a summer house at 456 beach rd, miami, usSTRING
HIGHdocs/integrations/bedrock.md0extract: jason is 25 years old. he lives at 123 main st, new york, usa and has a summer house at 456 beach rd, miami, usSTRING
HIGHdocs/integrations/mistral.md0extract: jason is 25 years old. he lives at 123 main st, new york, usa and has a summer house at 456 beach rd, miami, usSTRING
HIGHdocs/integrations/cortex.md0extract: jason is 25 years old. he lives at 123 main st, new york, usa and has a summer house at 456 beach rd, miami, usSTRING
HIGHdocs/integrations/cerebras.md0extract: jason is 25 years old. he lives at 123 main st, new york, usa and has a summer house at 456 beach rd, miami, usSTRING
HIGHdocs/integrations/google.md0extract: jason is 25 years old. he lives at 123 main st, new york, usa and has a summer house at 456 beach rd, miami, usSTRING
HIGHdocs/integrations/perplexity.md0extract: jason is 25 years old. he lives at 123 main st, new york, usa and has a summer house at 456 beach rd, miami, usSTRING
HIGHdocs/integrations/openrouter.md0extract: jason is 25 years old. he lives at 123 main st, new york, usa and has a summer house at 456 beach rd, miami, usSTRING
HIGHdocs/integrations/deepseek.md0extract users: 1. jason is 25 years old 2. sarah is 30 years old 3. mike is 28 years oldSTRING
HIGHdocs/integrations/fireworks.md0extract users: 1. jason is 25 years old 2. sarah is 30 years old 3. mike is 28 years oldSTRING
HIGHdocs/integrations/anthropic.md0extract users: 1. jason is 25 years old 2. sarah is 30 years old 3. mike is 28 years oldSTRING
HIGHdocs/integrations/openai.md0extract users: 1. jason is 25 years old 2. sarah is 30 years old 3. mike is 28 years oldSTRING
HIGHdocs/integrations/google.md0extract users: 1. jason is 25 years old 2. sarah is 30 years old 3. mike is 28 years oldSTRING
HIGHdocs/integrations/azure.md0extract users: 1. jason is 25 years old 2. sarah is 30 years old 3. mike is 28 years oldSTRING
HIGHdocs/integrations/ollama.md0{ "name": "harry james potter", "age": 37, "fact": [ "he is the chosen one.", "he has a lightning-shaped scar on his forSTRING
HIGHdocs/examples/ollama.md0{ "name": "harry james potter", "age": 37, "fact": [ "he is the chosen one.", "he has a lightning-shaped scar on his forSTRING
HIGHexamples/proscons/run.py0{ "name": "harry james potter", "age": 37, "fact": [ "he is the chosen one.", "he has a lightning-shaped scar on his forSTRING
HIGHdocs/examples/pandas_df.md0the markdown representation of the table, each one should be tidy, do not try to join tables that should be separateSTRING
HIGHdocs/examples/tables_from_vision.md0the markdown representation of the table, each one should be tidy, do not try to join tables that should be separateSTRING
HIGHdocs/concepts/types.md0the markdown representation of the table, each one should be tidy, do not try to join tables that should be separateSTRING
HIGHexamples/extract-table/run_vision_org_table.py0the markdown representation of the table, each one should be tidy, do not try to join tables that should be separateSTRING
HIGHexamples/extract-table/run_vision_langsmith.py0the markdown representation of the table, each one should be tidy, do not try to join tables that should be separateSTRING
HIGHexamples/extract-table/run_vision.py0the markdown representation of the table, each one should be tidy, do not try to join tables that should be separateSTRING
HIGHexamples/vision/run_table.py0the markdown representation of the table, each one should be tidy, do not try to join tables that should be separateSTRING
HIGHinstructor/v2/providers/gemini/utils.py0as a genius expert, your task is to understand the content and provide the parsed objects in json that match the followiSTRING
HIGHinstructor/v2/providers/writer/handlers.py0as a genius expert, your task is to understand the content and provide the parsed objects in json that match the followiSTRING
HIGHinstructor/v2/providers/mistral/handlers.py0as a genius expert, your task is to understand the content and provide the parsed objects in json that match the followiSTRING
12 more matches not shown…
Decorative Section Separators86 hits · 315 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_streaming_reasoning_events.py21# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_streaming_reasoning_events.py23# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_reasoning_events.py53# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_reasoning_events.py56# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_reasoning_events.py81# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_streaming_reasoning_events.py83# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_streaming_reasoning_events.py160# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_streaming_reasoning_events.py162# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/v2/test_xai_client.py21# ============================================================================COMMENT
MEDIUMtests/v2/test_xai_client.py23# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_xai_client.py187# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_xai_client.py189# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_xai_client.py195# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_xai_client.py197# ============================================================================COMMENT
MEDIUMtests/v2/test_handler_registration_unified.py39# ============================================================================COMMENT
MEDIUMtests/v2/test_handler_registration_unified.py41# ============================================================================COMMENT
MEDIUMtests/v2/test_handler_registration_unified.py95# ============================================================================COMMENT
MEDIUMtests/v2/test_handler_registration_unified.py97# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_handler_registration_unified.py170# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_handler_registration_unified.py172# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_xai_handlers.py366# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_xai_handlers.py368# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_xai_handlers.py373# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_xai_handlers.py375# ============================================================================COMMENT
MEDIUMtests/v2/test_xai_handlers.py51# ============================================================================COMMENT
MEDIUMtests/v2/test_xai_handlers.py53# ============================================================================COMMENT
MEDIUMtests/v2/test_xai_handlers.py179# ============================================================================COMMENT
MEDIUMtests/v2/test_xai_handlers.py181# ============================================================================COMMENT
MEDIUMtests/v2/test_xai_handlers.py263# ============================================================================COMMENT
MEDIUMtests/v2/test_xai_handlers.py265# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_client_unified.py150# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_client_unified.py152# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_client_unified.py203# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_client_unified.py205# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_client_unified.py229# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_client_unified.py231# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_client_unified.py266# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_client_unified.py268# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_client_unified.py304# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_client_unified.py306# ============================================================================COMMENT
MEDIUMtests/v2/test_client_unified.py348# ============================================================================COMMENT
MEDIUMtests/v2/test_client_unified.py350# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_mistral_handlers.py340# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_mistral_handlers.py342# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_mistral_handlers.py439# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_mistral_handlers.py441# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_mistral_handlers.py446# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_mistral_handlers.py448# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_mistral_handlers.py487# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_mistral_handlers.py489# ============================================================================COMMENT
MEDIUMtests/v2/test_mistral_handlers.py101# ============================================================================COMMENT
MEDIUMtests/v2/test_mistral_handlers.py103# ============================================================================COMMENT
MEDIUMtests/v2/test_mistral_handlers.py278# ============================================================================COMMENT
MEDIUMtests/v2/test_mistral_handlers.py280# ============================================================================COMMENT
MEDIUMtests/v2/test_mistral_handlers.py563# ============================================================================COMMENT
MEDIUMtests/v2/test_mistral_handlers.py565# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_cohere_handlers.py451# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_cohere_handlers.py453# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_cohere_handlers.py458# ============================================================================COMMENT
MEDIUM⚡tests/v2/test_cohere_handlers.py460# ============================================================================COMMENT
26 more matches not shown…
Hallucination Indicators19 hits · 225 pts
SeverityFileLineSnippetContext
CRITICALtests/test_xai_optional_dependency.py8 from instructor.core.exceptions import ConfigurationErrorCODE
CRITICALtests/llm/test_vertexai/test_deprecated_async.py5from instructor.core.exceptions import ConfigurationErrorCODE
CRITICAL⚡tests/providers/test_auto_client.py232 from instructor.core.exceptions import ConfigurationErrorCODE
CRITICAL⚡tests/providers/test_auto_client.py241 from instructor.core.exceptions import ConfigurationErrorCODE
CRITICALtests/providers/test_auto_client.py456 from instructor.core.exceptions import ConfigurationErrorCODE
CRITICALtests/providers/test_auto_client.py477 from instructor.core.exceptions import ConfigurationErrorCODE
CRITICAL⚡tests/v2/test_xai_client.py210 from instructor.core.exceptions import ClientErrorCODE
CRITICALtests/v2/test_client_unified.py332 from instructor.core.exceptions import ClientErrorCODE
CRITICAL⚡tests/v2/test_bedrock_client.py63 from instructor.core.exceptions import ClientErrorCODE
CRITICAL⚡tests/v2/test_bedrock_client.py76 from instructor.core.exceptions import ClientErrorCODE
CRITICAL⚡tests/v2/test_bedrock_client.py90 from instructor.core.exceptions import ModeErrorCODE
CRITICAL⚡tests/v2/test_cohere_handlers.py644 from instructor.core.exceptions import ResponseParsingErrorCODE
CRITICALdocs/concepts/error_handling.md95from instructor.core.exceptions import ValidationErrorCODE
CRITICALdocs/concepts/error_handling.md126from instructor.core.exceptions import ConfigurationError, ModeErrorCODE
CRITICALdocs/concepts/error_handling.md193from instructor.core.exceptions import InstructorErrorCODE
CRITICALdocs/concepts/error_handling.md217from instructor.core.exceptions import ValidationError, InstructorRetryExceptionCODE
CRITICALdocs/concepts/error_handling.md261from instructor.core.exceptions import ResponseParsingErrorCODE
CRITICALdocs/concepts/error_handling.md296from instructor.core.exceptions import ValidationErrorCODE
CRITICALdocs/concepts/from_provider.md229from instructor.core.exceptions import ConfigurationErrorCODE
Excessive Try-Catch Wrapping193 hits · 222 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_batch_in_memory.py183 except Exception as exc_info:CODE
LOWtests/test_batch_in_memory.py210 except Exception as exc_info:CODE
LOW⚡tests/test_openai_responses_tools.py202 except Exception:CODE
LOWtests/llm/test_vertexai/conftest.py38 except Exception:CODE
LOWtests/llm/test_anthropic/test_reasoning.py29 except Exception as e:CODE
LOWtests/processing/test_function_calls.py295 except Exception as e:CODE
LOW⚡tests/providers/test_auto_client.py196 except Exception as e:CODE
LOW⚡tests/providers/test_auto_client.py213 except Exception as e:CODE
LOW⚡tests/providers/test_auto_client.py224 except Exception as e:CODE
LOWtests/providers/test_auto_client.py185 except Exception as e:CODE
LOWtests/v2/test_issue_2374.py49 except Exception:CODE
LOWtests/v2/test_issue_2374.py67 except Exception:CODE
MEDIUMdocs/index.md316client.on("completion:error", lambda e: print(f"Error: {e}"))CODE
LOWdocs/debugging.md127except Exception as err:CODE
LOWdocs/learning/validation/retry_mechanisms.md190except Exception as e:CODE
LOWdocs/blog/posts/caching.md845 except Exception as e:CODE
LOWdocs/blog/posts/caching.md854 except Exception as e:CODE
MEDIUMdocs/blog/posts/caching.md840def wrapper(*args, **kwargs):CODE
LOWdocs/blog/posts/youtube-transcripts.md82 except Exception as e:CODE
MEDIUMdocs/blog/posts/youtube-transcripts.md83 print(f"Error fetching transcript: {e}")CODE
LOWdocs/blog/posts/youtube-transcripts.md120 except Exception as e:CODE
MEDIUMdocs/blog/posts/youtube-transcripts.md121 print(f"Error fetching transcript: {e}")CODE
LOW…s/blog/posts/semantic-validation-structured-outputs.md242except Exception as e:STRING
LOWdocs/blog/posts/introducing-structured-outputs.md76except Exception as e:CODE
MEDIUMdocs/blog/posts/string-based-init.md131 print("Error: Install the anthropic package first")CODE
LOWdocs/integrations/xai.md210except Exception as e:STRING
MEDIUMdocs/integrations/xai.md211 print(f"Error: {e}")STRING
LOWdocs/integrations/anthropic.md98except Exception as e:CODE
LOWdocs/integrations/anthropic.md390except Exception as e:CODE
MEDIUMdocs/integrations/anthropic.md391 print(f"Error during streaming: {e}")CODE
LOWdocs/integrations/anthropic.md450except Exception as e:STRING
MEDIUMdocs/integrations/anthropic.md451 print(f"Error during iteration: {e}")STRING
LOWdocs/integrations/anthropic.md552except Exception as e:CODE
MEDIUMdocs/integrations/anthropic.md553 print(f"Error: {e}")CODE
LOWdocs/integrations/anthropic.md631except Exception as e:CODE
MEDIUMdocs/integrations/anthropic.md632 print(f"Error during image analysis: {e}")CODE
LOWdocs/examples/batch_in_memory.md269except Exception as e:CODE
MEDIUMdocs/examples/batch_in_memory.md270 print(f"Error during batch processing: {e}")CODE
LOWdocs/examples/self_critique.md95except Exception as e:CODE
LOWdocs/examples/extract_contact_info.md91 except Exception as e:CODE
LOWdocs/examples/sqlmodel.md470 except Exception as e:CODE
LOWdocs/examples/sqlmodel.md556 except Exception as e:CODE
LOWdocs/examples/moderation.md39except Exception as e:CODE
LOWdocs/examples/moderation.md50except Exception as e:CODE
MEDIUMdocs/concepts/unions.md240 print(f"Error: {result.message}")CODE
MEDIUMdocs/concepts/unions.md327 print(f"Error: {response.message}")CODE
MEDIUMdocs/concepts/error_handling.md278 print(f"Error: {e}")CODE
LOWdocs/concepts/semantic_validation.md153except Exception as e:CODE
LOWdocs/concepts/retrying.md176except Exception as e:CODE
MEDIUMdocs/concepts/hooks.md139 print(f"Error #{self.count}: {type(error).__name__}: {error}")CODE
LOWdocs/concepts/hooks.md160except Exception as e:CODE
MEDIUMdocs/concepts/batch.md181 print(f"Error: {result.error_message}")CODE
LOWdocs/templates/provider_template.md74except Exception as e:CODE
MEDIUMdocs/templates/provider_template.md75 print(f"Error: {e}")CODE
LOWdocs/templates/provider_template.md130 except Exception as e:CODE
MEDIUMdocs/templates/provider_template.md131 print(f"Error during extraction: {e}")CODE
LOWexamples/classification/classifiy_with_validation.py169 except Exception as e:CODE
MEDIUMexamples/open_source_examples/openrouter.py60 print(f"Error: {user.error}")CODE
MEDIUMexamples/open_source_examples/perplexity.py73 print(f"Error: {user.error}")CODE
LOWexamples/open_source_examples/runpod.py60 except Exception as e:CODE
133 more matches not shown…
Magic Placeholder Names36 hits · 188 pts
SeverityFileLineSnippetContext
HIGHdocs/cli/index.md51export OPENAI_API_KEY="your-api-key-here"CODE
HIGHdocs/blog/posts/google-openai-client.md37 base_url="https://generativelanguage.googleapis.com/v1beta/", api_key="YOUR_API_KEY"CODE
HIGH…roducing-structured-outputs-with-cerebras-inference.md59export CEREBRAS_API_KEY=<your-api-key>CODE
HIGHdocs/blog/posts/open_source.md143export GROQ_API_KEY="your-api-key"CODE
HIGHdocs/blog/posts/open_source.md188export TOGETHER_API_KEY="your-api-key"CODE
HIGHdocs/blog/posts/open_source.md238client = Mistral(api_key="your-api-key-here")CODE
HIGHdocs/blog/posts/langsmith.md30export LANGCHAIN_API_KEY=<your-api-key>CODE
HIGHdocs/integrations/deepseek.md25export DEEPSEEK_API_KEY='your-api-key-here'CODE
HIGHdocs/integrations/writer.md13export WRITER_API_KEY=<your-api-key-here>CODE
HIGHdocs/integrations/xai.md31export XAI_API_KEY='your-api-key-here'CODE
HIGHdocs/integrations/xai.md191export XAI_API_KEY="your-api-key-here"STRING
HIGHdocs/integrations/anthropic.md38# os.environ["ANTHROPIC_API_KEY"] = "your-api-key" # Uncomment and replace with your API key if not setCOMMENT
HIGHdocs/integrations/anthropic.md353# os.environ["ANTHROPIC_API_KEY"] = "your-api-key" # Uncomment and replace with your API key if not setCOMMENT
HIGHdocs/integrations/anthropic.md406# os.environ["ANTHROPIC_API_KEY"] = "your-api-key" # Uncomment and replace with your API key if not setCOMMENT
HIGHdocs/integrations/anthropic.md493# os.environ["ANTHROPIC_API_KEY"] = "your-api-key" # Uncomment and replace with your API key if not setSTRING
HIGHdocs/integrations/anthropic.md568# os.environ["ANTHROPIC_API_KEY"] = "your-api-key" # Uncomment and replace with your API key if not setCOMMENT
HIGHdocs/integrations/groq.md13export GROQ_API_KEY=<your-api-key-here>CODE
HIGHdocs/integrations/openai.md26export OPENAI_API_KEY='your-api-key-here'CODE
HIGHdocs/integrations/openai.md36 api_key='your-api-key-here',CODE
HIGHdocs/integrations/mistral.md36client = Mistral(api_key="your-api-key-here")CODE
HIGHdocs/integrations/perplexity.md15export PERPLEXITY_API_KEY=<your-api-key-here>CODE
HIGHdocs/integrations/azure.md63os.environ["AZURE_OPENAI_API_KEY"] = "your-api-key"CODE
HIGHdocs/integrations/azure.md80 api_key="your-api-key",CODE
HIGHdocs/examples/groq.md22export GROQ_API_KEY=<your-api-key>CODE
HIGHdocs/examples/mistral.md23export MISTRAL_API_KEY=<your-api-key>CODE
HIGHdocs/examples/batch_classification_langsmith.md21export LANGCHAIN_API_KEY=<your-api-key>CODE
HIGHdocs/templates/provider_template.md40# os.environ["PROVIDER_API_KEY"] = "your-api-key" # Uncomment and replace with your API key if not setCOMMENT
HIGHdocs/templates/provider_template.md94# os.environ["PROVIDER_API_KEY"] = "your-api-key" # Uncomment and replace with your API key if not setCOMMENT
HIGHexamples/batch_api/run_batch_test.py102 f"Please set your API key: export {required_key}='your-api-key-here'",CODE
HIGHexamples/openai/run.py8 export OPENAI_API_KEY=your-api-keySTRING
HIGHinstructor/v2/auto_client.py347 "Set it with `export AZURE_OPENAI_API_KEY=<your-api-key>` or pass it as kwarg api_key=<your-api-key>"CODE
HIGHinstructor/v2/auto_client.py424 f"Set it with `export {env_var}=<your-api-key>` or pass it as kwarg api_key=<your-api-key>"CODE
HIGHinstructor/v2/auto_client.py799 "Set it with `export MISTRAL_API_KEY=<your-api-key>`."CODE
HIGHinstructor/v2/auto_client.py899 "Set it with `export PERPLEXITY_API_KEY=<your-api-key>` or pass it as a kwarg api_key=<your-api-key>"CODE
HIGHinstructor/v2/auto_client.py1362 "Set it with `export DEEPSEEK_API_KEY=<your-api-key>` or pass it as kwarg api_key=<your-api-key>"CODE
HIGHinstructor/v2/auto_client.py1485 "Set it with `export OPENROUTER_API_KEY=<your-api-key>` or pass it as kwarg api_key=<your-api-key>"CODE
Docstring Block Structure32 hits · 160 pts
SeverityFileLineSnippetContext
HIGHscripts/make_sitemap.py110 Analyze the content of a file to extract summary, keywords, topics, and references. Args: client (AsynSTRING
HIGHinstructor/v2/auto_client.py99Create an Instructor client from a model string. Args: model: String in format "provider/model-name" STRING
HIGHinstructor/v2/core/patch.py89Patch a function to use v2 registry for structured outputs. Args: func: Function to patch (e.g., client.mesSTRING
HIGHinstructor/v2/core/hooks.py131 Convert a string hook name to its corresponding enum value. Args: hook_name: Either a HookSTRING
HIGHinstructor/v2/core/handler.py76Parse API response into validated Pydantic model. Args: response: Raw API response respSTRING
HIGHinstructor/v2/core/templating.py94 Handle templating for messages using the provided context. This function processes messages, applying Jinja2 tSTRING
HIGHinstructor/v2/core/protocols.py83Parse and validate response into model. Args: response: Raw API response response_modelSTRING
HIGHinstructor/v2/core/registry.py160Get all handlers for a mode. This is the preferred method for retrieving handlers. It performs a singleSTRING
HIGHinstructor/v2/core/registry.py226Get a specific handler for a mode. This is a convenience method that internally calls get_handlers(). FSTRING
HIGHinstructor/v2/core/multimodal.py462Attempt to autodetect a PDF from a source string or Path. Args: source (Union[str,path]): The sourceSTRING
HIGHinstructor/v2/core/response.py157Asynchronously process and transform LLM responses into structured models. This function is the async entry point fSTRING
HIGHinstructor/v2/core/response.py266Process and transform LLM responses into structured models (synchronous). This is the main entry point for convertiSTRING
HIGHinstructor/v2/core/response.py444Compatibility dispatcher for provider-specific reask formatting. The retry loop itself lives in :mod:`instructor.v2STRING
HIGHinstructor/v2/core/retry.py151Sync retry logic using v2 registry handlers. Args: func: API function to call response_model: PydanSTRING
HIGHinstructor/v2/core/retry.py450Async retry logic using v2 registry handlers. Args: func: Async API function to call response_modelSTRING
HIGHinstructor/v2/core/exceptions.py62Validate and merge context parameters. Args: context: New-style context parameter validSTRING
HIGHinstructor/v2/core/errors.py189Exception raised when all retry attempts have been exhausted. This exception is raised after the maximum number of STRING
HIGHinstructor/v2/providers/cohere/client.py67Create an Instructor instance from a Cohere client using v2 registry. Args: client: A Cohere client instancSTRING
HIGHinstructor/v2/providers/fireworks/client.py54Create an Instructor instance from a Fireworks client using v2 registry. Fireworks uses an OpenAI-compatible API, sSTRING
HIGHinstructor/v2/providers/groq/client.py53Create an Instructor instance from a Groq client using v2 registry. Groq uses an OpenAI-compatible API, so this facSTRING
HIGHinstructor/v2/providers/xai/client.py171Create an Instructor instance from an xAI client using v2 registry. Args: client: An instance of xAI clientSTRING
HIGHinstructor/v2/providers/bedrock/client.py55Create an Instructor instance from a Bedrock client using v2 registry. Bedrock uses the Converse API through a botoSTRING
HIGHinstructor/v2/providers/writer/client.py53Create an Instructor instance from a Writer client using v2 registry. Writer uses the writerai SDK and supports TOOSTRING
HIGHinstructor/v2/providers/anthropic/client.py68Create an Instructor instance from an Anthropic client using v2 registry. Args: client: An instance of AnthSTRING
HIGHinstructor/v2/providers/cerebras/client.py54Create an Instructor instance from a Cerebras client using v2 registry. Cerebras uses an OpenAI-compatible API, so STRING
HIGHinstructor/v2/providers/mistral/client.py83Create an Instructor instance from a Mistral client using v2 registry. Mistral uses a single client class with bothSTRING
HIGHinstructor/v2/providers/openai/client.py125Create an Instructor instance from an OpenAI client using v2 registry. Args: client: An instance of OpenAI STRING
HIGHinstructor/v2/providers/openai/client.py205Create an Instructor instance for Anyscale. Supports two usage patterns: 1. String-based (recommended): Pass aSTRING
HIGHinstructor/v2/providers/openai/client.py298Create an Instructor instance for Together AI. Supports two usage patterns: 1. String-based (recommended): PasSTRING
HIGHinstructor/v2/providers/openai/client.py391Create an Instructor instance for Databricks. Supports two usage patterns: 1. String-based (recommended): PassSTRING
HIGHinstructor/v2/providers/openai/client.py484Create an Instructor instance for DeepSeek. Supports two usage patterns: 1. String-based (recommended): Pass aSTRING
HIGHinstructor/batch/processor.py48Create batch file from list of message conversations Args: messages_list: List of message conversatSTRING
Deep Nesting117 hits · 114 pts
SeverityFileLineSnippetContext
LOWtests/providers/test_auto_client.py454CODE
LOWtests/providers/test_auto_client.py475CODE
LOWtests/providers/test_auto_client.py599CODE
LOWtests/providers/test_auto_client.py637CODE
LOWtests/v2/test_json_stream_bounds.py220CODE
LOWtests/v2/test_handlers_parametrized.py501CODE
LOWtests/v2/test_handlers_parametrized.py538CODE
LOWtests/v2/test_retry_isolation_contract.py116CODE
LOWtests/v2/decisions/test_openai_decisions.py138CODE
LOWtests/multimodal/test_multimodal.py381CODE
LOWexamples/batch_api/in_memory_batch_example.py20CODE
LOWexamples/batch_api/run_batch_test.py179CODE
LOWexamples/batch_api/run_batch_test.py284CODE
LOWexamples/batch_api/run_batch_test.py354CODE
LOWexamples/batch_api/run_batch_test.py469CODE
LOWexamples/tenacity-benchmarks/run.py433CODE
LOWexamples/tenacity-benchmarks/run.py81CODE
LOWexamples/sqlmodel/test_basic.py68CODE
LOWscripts/provider_test_evidence.py12CODE
LOWscripts/audit_patterns.py62CODE
LOWscripts/audit_patterns.py109CODE
LOWscripts/validate_meta_tags.py53CODE
LOWscripts/validate_meta_tags.py101CODE
LOWscripts/check_links.py91CODE
LOWscripts/check_links.py124CODE
LOWscripts/make_clean.py48CODE
LOWscripts/make_sitemap.py18CODE
LOWscripts/make_sitemap.py43CODE
LOWscripts/make_sitemap.py107CODE
LOWscripts/validate_headings.py86CODE
LOWscripts/make_desc.py75CODE
LOWinstructor/cache/__init__.py183CODE
LOWinstructor/cache/__init__.py274CODE
LOWinstructor/cache/__init__.py314CODE
LOWinstructor/cli/batch.py18CODE
LOWinstructor/cli/batch.py397CODE
LOWinstructor/cli/batch.py449CODE
LOWinstructor/cli/batch.py511CODE
LOWinstructor/cli/jobs.py153CODE
LOWinstructor/decisions/openai.py15CODE
LOWinstructor/decisions/schema.py84CODE
LOWinstructor/decisions/schema.py134CODE
LOWinstructor/decisions/schema.py95CODE
LOWinstructor/v2/core/patch.py185CODE
LOWinstructor/v2/core/patch.py309CODE
LOWinstructor/v2/core/patch.py195CODE
LOWinstructor/v2/core/patch.py319CODE
LOWinstructor/v2/core/hooks.py150CODE
LOWinstructor/v2/core/remote.py168CODE
LOWinstructor/v2/core/multimodal.py726CODE
LOWinstructor/v2/core/multimodal.py815CODE
LOWinstructor/v2/core/multimodal.py183CODE
LOWinstructor/v2/core/multimodal.py637CODE
LOWinstructor/v2/core/retry.py138CODE
LOWinstructor/v2/core/retry.py437CODE
LOWinstructor/v2/core/messages.py51CODE
LOWinstructor/v2/core/messages.py72CODE
LOWinstructor/v2/core/json.py13CODE
LOWinstructor/v2/core/json.py60CODE
LOWinstructor/v2/core/json.py166CODE
57 more matches not shown…
Self-Referential Comments33 hits · 104 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_batch_in_memory.py163 # Create a valid OpenAI batch requestCOMMENT
MEDIUM⚡tests/test_batch_in_memory.py192 # Create a valid Anthropic batch requestCOMMENT
MEDIUM⚡tests/test_genai_config_merging.py31 # Create a mock config object with thinking_configCOMMENT
MEDIUM⚡tests/test_genai_config_merging.py38 # Create a config object with thinking_config attributeCOMMENT
MEDIUMtests/test_genai_config_merging.py60 # Create a mock config object with thinking_configCOMMENT
MEDIUMtests/test_genai_config_merging.py299 # Create a config with cached_contentCOMMENT
MEDIUMtests/test_genai_config_merging.py356 # Create a config with cached_contentCOMMENT
MEDIUMtests/llm/test_genai/test_utils.py278 # Create a mock ThinkingConfig-like objectCOMMENT
MEDIUMtests/llm/test_genai/test_schema_conversion.py160 # Create a schema with a true union (not just Optional)COMMENT
MEDIUMtests/llm/test_genai/test_schema_conversion.py208 # Create a model with a true union type (not Optional or Decimal)COMMENT
MEDIUMtests/providers/test_auto_client.py578 # Create a mock google moduleCOMMENT
MEDIUMtests/providers/test_auto_client.py656 # Create a mock google module with genai attributeCOMMENT
MEDIUMtests/v2/test_handlers_parametrized.py358 # Create a mock that works with dump_messageCOMMENT
MEDIUMtests/v2/test_client_unified.py509 # Create a mock OpenAI clientCOMMENT
MEDIUM⚡tests/v2/test_cohere_handlers.py646 # Create a response that has neither .text nor valid .message.contentCOMMENT
MEDIUMexamples/extracting-pii/run.py50# Define the PII Scrubbing ModelSTRING
MEDIUMexamples/learn-async/run.py96 # Create a semaphore that will only allow 2 concurrent requestsCOMMENT
MEDIUMexamples/tenacity-benchmarks/run.py91 # Create a simple mock response for RateLimitErrorCOMMENT
MEDIUMexamples/tenacity-benchmarks/run.py101 # Create a simple mock request for APIErrorCOMMENT
MEDIUMexamples/tenacity-benchmarks/run.py461 # Create a simple mock response for RateLimitErrorCOMMENT
MEDIUMexamples/tenacity-benchmarks/run.py471 # Create a simple mock request for APIErrorCOMMENT
MEDIUMexamples/hooks/run.py53 # Create a statistics collectorCOMMENT
MEDIUMexamples/sqlmodel/test_basic.py75 # Create a teamCOMMENT
MEDIUMinstructor/cli/batch.py130 # Create a dummy model string for the providerCOMMENT
MEDIUMinstructor/cli/batch.py140 # Create a dummy response model (not used for listing)COMMENT
MEDIUMinstructor/cli/batch.py258 # Create a dummy response model (not used for direct file submission)COMMENT
MEDIUMinstructor/cli/batch.py312 # Create a dummy response model (not used for cancellation)COMMENT
MEDIUMinstructor/cli/batch.py318 # Create a dummy model string for the providerCOMMENT
MEDIUMinstructor/cli/batch.py359 # Create a dummy response model (not used for deletion)COMMENT
MEDIUMinstructor/cli/batch.py365 # Create a dummy model string for the providerCOMMENT
MEDIUMinstructor/cli/usage.py52# Define the cost per unit for each modelCOMMENT
MEDIUMinstructor/v2/core/function_calls.py603 # Create the wrapped modelCOMMENT
MEDIUM⚡instructor/v2/dsl/partial.py2# The following code is adapted from a comment on GitHub in the pydantic/pydantic repository by silviumarcu.COMMENT
Empty Error Handlers17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHtests/test_openai_responses_tools.py202except Exception:CODE
HIGHtests/core/test_retry_http_semantics.py93except (BrokenPipeError, ConnectionResetError):CODE
HIGHtests/v2/test_issue_2374.py49except Exception:CODE
HIGHtests/v2/test_issue_2374.py67except Exception:CODE
HIGHscripts/check_links.py105except Exception:CODE
HIGHinstructor/v2/core/patch.py301except ModuleNotFoundError:CODE
HIGHinstructor/v2/core/patch.py425except ModuleNotFoundError:CODE
HIGHinstructor/v2/core/remote.py115except ValueError:CODE
HIGHinstructor/v2/core/multimodal.py102except OSError:CODE
HIGHinstructor/v2/core/multimodal.py292except OSError:CODE
HIGHinstructor/v2/core/function_calls.py81except (AttributeError, IndexError):CODE
HIGHinstructor/v2/core/usage.py140except ImportError:CODE
HIGHinstructor/v2/providers/openai/handlers.py513except (TypeError, ValueError):CODE
HIGHinstructor/v2/dsl/iterable.py149except Exception:CODE
HIGHinstructor/v2/dsl/json_tracker.py69except ValueError:CODE
HIGHinstructor/v2/dsl/simple_type.py95except TypeError:CODE
HIGHinstructor/batch/__init__.py151except Exception:CODE
Modern Structural Boilerplate71 hits · 70 pts
SeverityFileLineSnippetContext
LOWexamples/citation_with_extraction/main.py17logger = logging.getLogger(__name__)CODE
LOWexamples/tenacity-benchmarks/run.py39logger = logging.getLogger(__name__)CODE
LOWexamples/asyncio-benchmarks/run.py26logger = logging.getLogger(__name__)CODE
LOWexamples/sqlmodel/test_basic.py15logger = logging.getLogger(__name__)CODE
LOWexamples/sqlmodel/run.py32logger = logging.getLogger(__name__)CODE
LOWexamples/caching/run.py31logger = logging.getLogger(__name__)CODE
LOWinstructor/__init__.py71__all__ = [CODE
LOWinstructor/exceptions.py38__all__ = [CODE
LOWinstructor/core/__init__.py25__all__ = [CODE
LOWinstructor/cache/__init__.py35__all__ = [CODE
LOWinstructor/processing/__init__.py18__all__ = [CODE
LOWinstructor/processing/schema.py9__all__ = [CODE
LOWinstructor/providers/cohere/client.py5__all__ = ["from_cohere"]CODE
LOWinstructor/providers/gemini/client.py5__all__ = ["from_gemini"]CODE
LOWinstructor/providers/fireworks/client.py5__all__ = ["from_fireworks"]CODE
LOWinstructor/providers/groq/client.py5__all__ = ["from_groq"]CODE
LOWinstructor/providers/xai/client.py5__all__ = ["from_xai"]CODE
LOWinstructor/providers/bedrock/client.py5__all__ = ["from_bedrock"]CODE
LOWinstructor/providers/writer/client.py5__all__ = ["from_writer"]CODE
LOWinstructor/providers/vertexai/client.py5__all__ = ["from_vertexai"]CODE
LOWinstructor/providers/perplexity/client.py5__all__ = ["from_perplexity"]CODE
LOWinstructor/providers/anthropic/client.py5__all__ = ["from_anthropic"]CODE
LOWinstructor/providers/cerebras/client.py5__all__ = ["from_cerebras"]CODE
LOWinstructor/providers/genai/client.py5__all__ = ["from_genai"]CODE
LOWinstructor/providers/mistral/client.py5__all__ = ["from_mistral"]CODE
LOWinstructor/utils/__init__.py27__all__ = [CODE
LOWinstructor/utils/core.py26__all__ = [CODE
LOWinstructor/decisions/__init__.py5__all__ = ["Choice", "Choices", "Level", "Noul", "Question", "Score"]CODE
LOWinstructor/v2/__init__.py9__all__ = [CODE
LOWinstructor/v2/core/__init__.py8__all__ = [CODE
LOWinstructor/v2/core/schema.py19__all__ = [CODE
LOWinstructor/v2/providers/cohere/handlers.py429__all__ = [STRING
LOWinstructor/v2/providers/cohere/__init__.py8__all__ = ["from_cohere"]CODE
LOWinstructor/v2/providers/gemini/client.py100__all__ = ["from_gemini"]CODE
LOWinstructor/v2/providers/gemini/handlers.py324__all__ = ["GeminiToolsHandler", "GeminiJSONHandler"]CODE
LOWinstructor/v2/providers/gemini/__init__.py9__all__ = ["GeminiJSONHandler", "GeminiToolsHandler", "from_gemini"]CODE
LOWinstructor/v2/providers/openrouter/client.py51__all__ = ["from_openrouter"]CODE
LOWinstructor/v2/providers/openrouter/handlers.py48__all__ = ["OpenRouterJSONSchemaHandler"]CODE
LOWinstructor/v2/providers/openrouter/__init__.py6__all__ = ["OpenRouterJSONSchemaHandler", "from_openrouter"]CODE
LOWinstructor/v2/providers/fireworks/__init__.py12__all__ = ["from_fireworks"]CODE
LOWinstructor/v2/providers/groq/__init__.py8__all__ = ["from_groq"]CODE
LOWinstructor/v2/providers/xai/handlers.py743__all__ = [CODE
LOWinstructor/v2/providers/xai/__init__.py11__all__ = ["from_xai"]CODE
LOWinstructor/v2/providers/bedrock/client.py218__all__ = ["from_bedrock"]CODE
LOWinstructor/v2/providers/bedrock/handlers.py738__all__ = [CODE
LOWinstructor/v2/providers/bedrock/__init__.py8__all__ = ["from_bedrock"]CODE
LOWinstructor/v2/providers/writer/handlers.py370__all__ = [CODE
LOWinstructor/v2/providers/writer/__init__.py8__all__ = ["from_writer"]CODE
LOWinstructor/v2/providers/vertexai/client.py97__all__ = ["from_vertexai"]CODE
LOWinstructor/v2/providers/vertexai/handlers.py492__all__ = [CODE
LOWinstructor/v2/providers/vertexai/__init__.py8__all__ = [CODE
LOWinstructor/v2/providers/perplexity/client.py51__all__ = ["from_perplexity"]CODE
LOWinstructor/v2/providers/perplexity/handlers.py74__all__ = ["PerplexityMDJSONHandler"]CODE
LOWinstructor/v2/providers/perplexity/__init__.py6__all__ = ["PerplexityMDJSONHandler", "from_perplexity"]CODE
LOWinstructor/v2/providers/anthropic/handlers.py872__all__ = [STRING
LOWinstructor/v2/providers/anthropic/__init__.py8__all__ = ["from_anthropic"]CODE
LOWinstructor/v2/providers/cerebras/__init__.py8__all__ = ["from_cerebras"]CODE
LOWinstructor/v2/providers/genai/__init__.py10__all__ = ["from_genai"]CODE
LOWinstructor/v2/providers/litellm/__init__.py5__all__ = ["from_litellm"]CODE
LOWinstructor/v2/providers/mistral/handlers.py587__all__ = [CODE
11 more matches not shown…
Fake / Example Data53 hits · 61 pts
SeverityFileLineSnippetContext
LOWsitemap.yaml557blog/posts/fake-data.md:CODE
LOWtests/llm/test_core_providers/test_validation.py52 assert user.name == "John Doe"CODE
LOW⚡tests/llm/test_core_providers/test_basic_extraction.py88 assert user.name == "John Doe"CODE
LOW⚡tests/llm/test_core_providers/test_basic_extraction.py91 assert user.address.street == "123 Main St"CODE
LOWtests/llm/test_writer/test_format_difficult_models.py101 assert {book.author for book in response.books} == {"Jane Doe", "John Smith"}STRING
LOWtests/llm/test_genai/test_invalid_schema.py124 assert response.name == "John Doe"CODE
LOWtests/llm/test_genai/test_invalid_schema.py192 assert response.name == "John Doe"CODE
LOWtests/core/test_schema.py145 name: str = "John Doe"CODE
LOWtests/processing/test_json_extraction.py102 "street": "123 Main St",CODE
LOWtests/v2/test_openai_streaming.py97 stream_factory('{"name": "Jane Doe"}'), response_model, stream=TrueCODE
LOWtests/v2/test_openai_streaming.py100 assert result[-1].name == "Jane Doe"CODE
LOWdocs/llms.txt89print(user.name) # "John Doe"CODE
LOWdocs/index.md428#> User(name='John Doe', age=30)COMMENT
LOWdocs/contributing.md427print(person.name) # "John Doe"CODE
LOWdocs/prompting/zero_shot/style_prompting.md53 sender="Jane Doe",STRING
LOWdocs/learning/getting_started/structured_outputs.md72print(customer) # Customer(name='John Doe', age=35, email='john@example.com')CODE
LOWdocs/blog/posts/structured-output-anthropic.md75 "name": "John Doe",STRING
LOWdocs/blog/posts/fake-data.md92 #> name='John Doe' age=25COMMENT
LOW⚡docs/blog/posts/version-1.md205 #> name='John Doe' age=NoneCOMMENT
LOW⚡docs/blog/posts/version-1.md206 #> name='John Doe' age=NoneCOMMENT
LOW⚡docs/blog/posts/version-1.md207 #> name='John Doe' age=NoneCOMMENT
LOW⚡docs/blog/posts/version-1.md208 #> name='John Doe' age=NoneCOMMENT
LOW⚡docs/blog/posts/version-1.md209 #> name='John Doe' age=30COMMENT
LOW⚡docs/blog/posts/version-1.md210 #> name='John Doe' age=30COMMENT
LOW⚡docs/blog/posts/version-1.md214 # name='John Doe' age=NoneCOMMENT
LOW⚡docs/blog/posts/version-1.md215 # name='John Doe' age=30COMMENT
LOW⚡docs/blog/posts/version-1.md248 #> name='John Doe' age=30COMMENT
LOW⚡docs/blog/posts/version-1.md249 #> name='Jane Doe' age=28COMMENT
LOW⚡docs/blog/posts/version-1.md250 # User(name='John Doe', age=30)COMMENT
LOWdocs/blog/posts/using_json.md77# "name": "John Doe",COMMENT
LOWdocs/integrations/deepseek.md152#> 'street': '123 Main St',STRING
LOWdocs/integrations/fireworks.md132#> 'street': '123 Main St',STRING
LOWdocs/integrations/writer.md125#> 'street': '123 Main St',STRING
LOWdocs/integrations/xai.md139#> 'street': '123 Main St',STRING
LOWdocs/integrations/anthropic.md83 # "name": "John Doe",COMMENT
LOWdocs/integrations/groq.md143#> 'street': '123 Main St',STRING
LOWdocs/integrations/openai.md228#> 'street': '123 Main St',STRING
LOWdocs/integrations/bedrock.md300#> Address(street='123 Main St', city='New York', country='USA'),STRING
LOWdocs/integrations/mistral.md179# Address(street='123 Main St', city='New York', country='USA'),STRING
LOWdocs/integrations/cortex.md143#> 'street': '123 Main St',STRING
LOWdocs/integrations/cerebras.md161#> 'street': '123 Main St',STRING
LOWdocs/integrations/google.md235#> 'street': '123 Main St',STRING
LOWdocs/integrations/perplexity.md141#> Address(street='123 Main St', city='New York', country='USA'),STRING
LOWdocs/integrations/openrouter.md133#> name='Jason' age=25 addresses=[Address(street='123 Main St', city='New York', country='USA'), Address(street='456 BeaSTRING
LOWdocs/integrations/azure.md206# 'street': '123 Main St',STRING
LOWdocs/examples/pii.md109{"private_data":[{"index":1,"data_type":"Name","pii_value":"John Doe"},{"index":2,"data_type":"Email","pii_value":"john.CODE
LOWdocs/examples/extracting_receipts.md175items=[Item(name='Lorem ipsum', price=9.2, quantity=1), Item(name='Lorem ipsum dolor sit', price=19.2, quantity=1), ItemSTRING
LOWdocs/examples/extracting_receipts.md175items=[Item(name='Lorem ipsum', price=9.2, quantity=1), Item(name='Lorem ipsum dolor sit', price=19.2, quantity=1), ItemSTRING
LOWdocs/concepts/partial.md131 "name": "John Doe",CODE
LOWdocs/concepts/templating.md52#> name='John Doe' age=30COMMENT
LOWdocs/concepts/fields.md17 name: str = Field(default='John Doe')CODE
LOWdocs/concepts/fields.md22#> name='John Doe'COMMENT
LOWexamples/simple-extraction/user.py56 "name": "John Doe",STRING
Redundant / Tautological Comments38 hits · 58 pts
SeverityFileLineSnippetContext
LOWtests/llm/shared_config.py94 # Check if API key is setCOMMENT
LOWtests/llm/shared_config.py98 # Check if package is installedCOMMENT
LOWtests/llm/test_openai/test_attr.py21 # Check if the 'embeddings' attribute can be accessed through the clientCOMMENT
LOWexamples/batch_api/run_batch_test.py304 # Check if batch ID file existsCOMMENT
LOWexamples/batch_api/run_batch_test.py365 # Check if batch ID file existsCOMMENT
LOWexamples/asyncio-benchmarks/run.py277 # Check if OpenAI API key is setCOMMENT
LOWexamples/citations/run.py30 # Check if the substring_quote is in the text_chunkCOMMENT
LOWexamples/sqlmodel/run.py226 # Check if team already existsCOMMENT
LOWexamples/sqlmodel/run.py360 if isinstance(hero, Hero): # Check if not an exceptionCODE
LOWexamples/caching/example_redis.py22 # Check if the result is already cachedCOMMENT
LOWexamples/caching/run.py150 # Check if we'll get a cache hit by calling cache_infoCOMMENT
LOWexamples/caching/run.py211 # Check if the result is already cachedCOMMENT
LOWexamples/caching/run.py288 # Check if the result is already cachedCOMMENT
LOWexamples/caching/example_diskcache.py32 # Check if the result is already cachedCOMMENT
LOWexamples/caching/example_diskcache.py48 # Check if the result is already cachedCOMMENT
LOWexamples/logging/run.py8# Set logging to DEBUGCOMMENT
LOW⚡scripts/check_blog_excerpts.py49 # Read the file contentCOMMENT
LOW⚡scripts/check_blog_excerpts.py53 # Check if the file contains the <!-- more --> tagCOMMENT
LOWscripts/audit_patterns.py66 # Check if from_provider is usedCOMMENT
LOWscripts/audit_patterns.py84 # Check if the import is actually usedCOMMENT
LOWscripts/check_links.py63 # Check if file existsCOMMENT
LOWscripts/make_clean.py88 # Check if content was modifiedCOMMENT
LOWscripts/make_sitemap.py215 # Check if we can reuse existing dataCOMMENT
LOWinstructor/cli/batch.py194 # Check if required API key is available for the providerCOMMENT
LOWinstructor/v2/auto_client.py1303 # Check if model supports tools by looking at model nameCOMMENT
LOWinstructor/v2/core/registry.py187 # Check if already loadedCOMMENT
LOWinstructor/v2/core/registry.py347 # Check if handlers are registeredCOMMENT
LOWinstructor/v2/core/client.py816 # Check if the response model is an iterable typeCOMMENT
LOWinstructor/v2/core/multimodal.py557 # Check if it's a valid PDF by looking for the PDF headerCOMMENT
LOWinstructor/v2/providers/fireworks/client.py85 # Check if fireworks is installedCOMMENT
LOWinstructor/v2/providers/groq/client.py84 # Check if groq is installedCOMMENT
LOWinstructor/v2/providers/writer/client.py84 # Check if writerai SDK is installedCOMMENT
LOWinstructor/v2/providers/cerebras/client.py85 # Check if cerebras SDK is installedCOMMENT
LOWinstructor/v2/providers/mistral/client.py121 # Check if mistralai is installedCOMMENT
LOWinstructor/v2/dsl/simple_type.py91 # Check if inner type is a BaseModel - if so, not a simple typeCOMMENT
LOWinstructor/v2/dsl/partial.py122 # Check if root is complete AND has actual data (not just empty {})COMMENT
LOWinstructor/batch/processor.py239 # Check if this is a provider error responseCOMMENT
LOWinstructor/batch/processor.py293 # Check if result is an errorCOMMENT
Cross-Language Confusion9 hits · 48 pts
SeverityFileLineSnippetContext
HIGHtests/test_genai_config_merging.py190 # Test with Optional type (Union with null)COMMENT
HIGHtests/test_anthropic_bedrock_caller.py5resulting dict contained "caller": null, which the Anthropic API rejected withSTRING
HIGHtests/llm/test_genai/test_schema_conversion.py66 """Test conversion transforms anyOf[T, null] to nullable fields."""STRING
HIGHtests/llm/test_genai/test_schema_conversion.py223 # Schema with Optional field (Union with null)COMMENT
HIGH⚡tests/dsl/test_partial_optional_lists.py100 [('{"items":null,', None), ('{"items":[],', []), ("{", None)],CODE
HIGH⚡tests/dsl/test_partial_optional_lists.py168 chunks = ['{"items":[null,{"name":"Alice","age":30}],', '"note":"done"}']CODE
HIGHtests/dsl/test_partial.py976 chunks = ['{"name": "Al', 'ice", "email"', ": null}"]CODE
HIGHtests/dsl/test_partial.py1015 yield ": null}"CODE
HIGHexamples/simple-extraction/maybe_user.py66 "user": null,STRING
Modern AI Meta-Vocabulary17 hits · 45 pts
SeverityFileLineSnippetContext
MEDIUMsitemap.yaml2435 - concepts/prompting.md#chain-of-thought]CODE
MEDIUMcross_link_mapping.yaml201# RAG AND SEARCH CLUSTERCOMMENT
MEDIUMdocs/prompting/index.md14 [:octicons-arrow-right-16: Zero-Shot](#zero-shot) · [:octicons-arrow-right-16: Few-Shot](#few-shot)CODE
MEDIUMdocs/prompting/index.md106## Zero-Shot {#zero-shot}COMMENT
MEDIUMdocs/prompting/index.md121## Few-Shot {#few-shot}COMMENT
MEDIUMdocs/blog/posts/rag-and-beyond.md19# RAG is more than just embedding searchCOMMENT
MEDIUMdocs/blog/posts/rag-and-beyond.md36## The 'Dumb' RAG ModelCOMMENT
MEDIUMdocs/blog/posts/rag-and-beyond.md51## Improving the RAG Model with Query UnderstandingCOMMENT
MEDIUMdocs/blog/posts/situate-context.md30## Background: The Context Problem in RAGCOMMENT
MEDIUMdocs/blog/posts/llm-as-reranker.md19# Building an LLM-based Reranker for your RAG pipelineCOMMENT
MEDIUMdocs/blog/posts/rag-timelines.md20# Enhancing RAG with Time Filters Using InstructorCOMMENT
MEDIUMdocs/integrations/truefoundry.md9TrueFoundry provides an enterprise-ready [AI Gateway](https://www.truefoundry.com/ai-gateway) and integrates seamlessly CODE
MEDIUMdocs/examples/classification.md32 Using [Chain of Thought](../concepts/prompting.md#chain-of-thought) has been shown to improve the quality of the preCODE
MEDIUMdocs/examples/bulk_classification.md179 response_model=Tag, # Minimizes the hallucination of tags that are not in the allowed tags.CODE
MEDIUMdocs/examples/bulk_classification.md259 response_model=Tag, # Minimizes the hallucination of tags that are not in the allowed tags.CODE
MEDIUMdocs/concepts/prompting.md18## Modular Chain of Thought {#chain-of-thought}COMMENT
MEDIUMexamples/validated-multiclass/run.py60 # Minizises the hallucination of tags that are not in the allowed tags.COMMENT
Structural Annotation Overuse36 hits · 44 pts
SeverityFileLineSnippetContext
LOWNEW_PROVIDER_AGENT_INSTRUCTIONS.md31### Step 1: Project Structure SetupCOMMENT
LOWNEW_PROVIDER_AGENT_INSTRUCTIONS.md58### Step 2: Provider Client ImplementationCOMMENT
LOWNEW_PROVIDER_AGENT_INSTRUCTIONS.md161### Step 3: Mode Handlers ImplementationCOMMENT
LOWNEW_PROVIDER_AGENT_INSTRUCTIONS.md285### Step 4: Package ConfigurationCOMMENT
LOWNEW_PROVIDER_AGENT_INSTRUCTIONS.md347### Step 3: Testing ImplementationCOMMENT
LOWNEW_PROVIDER_AGENT_INSTRUCTIONS.md527### Step 4: Required Infrastructure UpdatesCOMMENT
LOWNEW_PROVIDER_AGENT_INSTRUCTIONS.md573### Step 5: DocumentationCOMMENT
LOW⚡docs/prompting/few_shot/exemplar_selection/knn.md120 # Step 1 : Embed the ExamplesSTRING
LOW⚡docs/prompting/few_shot/exemplar_selection/knn.md126 # # Step 3: Find the k closest examples to the querySTRING
LOW⚡docs/prompting/few_shot/exemplar_selection/knn.md134 # Step 4: Use these examples as in-context examplesSTRING
LOWdocs/prompting/zero_shot/s2a.md76 # Step 1: Rewrite the promptSTRING
LOWdocs/prompting/zero_shot/s2a.md85 # Step 2: Generate the final responseSTRING
LOWdocs/prompting/self_criticism/self_verification.md121 # Step 1: Forward ReasoningSTRING
LOWdocs/prompting/self_criticism/self_verification.md124 # Step 2: Backwards VerificationSTRING
LOWdocs/prompting/ensembling/cosp.md15### Step 1 - Selecting ExamplesCOMMENT
LOWdocs/prompting/ensembling/cosp.md57### Step 2 - Self ConsistencyCOMMENT
LOWdocs/prompting/ensembling/cosp.md252 # Step 1 : Generate the examplesSTRING
LOWdocs/prompting/ensembling/cosp.md258 # Step 2 : Run Self-ConsistencySTRING
LOWdocs/prompting/decomposition/skeleton_of_thought.md89 # Step 1: Get the skeletonSTRING
LOWdocs/prompting/decomposition/skeleton_of_thought.md105 # Step 2: Expand on each point in parallelSTRING
LOWdocs/learning/getting_started/first_extraction.md49### Step 1: Define Your LLM Output SchemaCOMMENT
LOWdocs/learning/getting_started/first_extraction.md61### Step 2: Configure Your LLM ClientCOMMENT
LOWdocs/learning/getting_started/first_extraction.md69### Step 3: Execute LLM ExtractionCOMMENT
LOWdocs/learning/getting_started/first_extraction.md86### Step 4: Work with Validated LLM DataCOMMENT
LOWdocs/integrations/truefoundry.md22### Step 1: Install DependenciesCOMMENT
LOWdocs/integrations/truefoundry.md28### Step 2: Configure Instructor with TrueFoundry GatewayCOMMENT
LOWdocs/concepts/reask_validation.md119### Step 1: Define the Response Model with ValidatorsCOMMENT
LOWinstructor/v2/README.md344#### Step 1: Analyze Your V1 ImplementationCOMMENT
LOWinstructor/v2/README.md401#### Step 2: Create V2 Provider Directory StructureCOMMENT
LOWinstructor/v2/README.md412#### Step 3: Map V1 Modes to V2 ModesCOMMENT
LOWinstructor/v2/README.md422#### Step 4: Extract Handler Logic from V1COMMENT
LOWinstructor/v2/README.md460#### Step 5: Implement V2 HandlersCOMMENT
LOWinstructor/v2/README.md540#### Step 6: Create V2 Factory FunctionCOMMENT
LOWinstructor/v2/README.md631#### Step 7: Export ProviderCOMMENT
LOWinstructor/v2/README.md658#### Step 8: Write Comprehensive TestsCOMMENT
LOWinstructor/v2/README.md695#### Step 9: Update Integration PointsCOMMENT
Synthetic Comment Markers4 hits · 30 pts
SeverityFileLineSnippetContext
HIGHdocs/examples/sqlmodel.md93 # AI-generated fieldsCOMMENT
HIGHdocs/examples/sqlmodel.md589 # AI-generated fields with database constraintsCOMMENT
HIGHexamples/sqlmodel/run.py86 # AI-generated fields with validationCOMMENT
HIGHexamples/sqlmodel/run.py119 # AI-generated fieldsCOMMENT
Over-Commented Block24 hits · 24 pts
SeverityFileLineSnippetContext
LOWrequirements.txt1# This file was autogenerated by uv via the following command:COMMENT
LOWrequirements.txt21 # httpcoreCOMMENT
LOWrequirements.txt41 # viaCOMMENT
LOWrequirements.txt61mdurl==0.1.2COMMENT
LOWrequirements.txt81pygments==2.21.0COMMENT
LOWrequirements.txt101typer==0.27.1COMMENT
LOWdocs/blog/posts/version-1.md201 #> name=None age=NoneCOMMENT
LOWdocs/blog/posts/generating-pdf-citations.md101)COMMENT
LOWdocs/blog/posts/introducing-structured-outputs.md121 #> {"COMMENT
LOWdocs/blog/posts/introducing-structured-outputs.md141 #> {"COMMENT
LOW…cs/blog/posts/announcing-unified-provider-interface.md41- **Simplified Configuration**: Reduces boilerplate code in projects that integrate with multiple LLM providers.COMMENT
LOWdocs/integrations/deepseek.md141 ],COMMENT
LOWdocs/integrations/fireworks.md121 }COMMENT
LOWdocs/integrations/writer.md121#> 'name': 'Jason',COMMENT
LOWdocs/integrations/anthropic.md81 # Expected output:COMMENT
LOWdocs/integrations/anthropic.md221 Image.from_url(url),COMMENT
LOWdocs/integrations/groq.md141#> 'addresses': [COMMENT
LOWdocs/integrations/openai.md221COMMENT
LOWdocs/integrations/cortex.md141#> 'addresses': [COMMENT
LOWdocs/integrations/cerebras.md161#> 'street': '123 Main St',COMMENT
LOWdocs/integrations/google.md221 He lives at 123 Main St, New York, USACOMMENT
LOWdocs/integrations/azure.md201# {COMMENT
LOWdocs/concepts/prompt_caching.md241# id='msg_01QcqjktYc1PXL8nk7y5hkMV',COMMENT
LOWexamples/recursive_filepaths/parse_recursive_paths.py121 └── file4.txtCOMMENT
Dead Code3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMexamples/citation_with_extraction/main.py132CODE
MEDIUMexamples/citation_with_extraction/main.py134CODE
MEDIUMexamples/citation_with_extraction/main.py147CODE
AI Slop Vocabulary5 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMexamples/tenacity-benchmarks/run.py238 """Extract with comprehensive logging."""STRING
MEDIUMexamples/caching/run.py515 """Run comprehensive caching demonstration"""STRING
LOWinstructor/v2/core/retry.py183 # No structured output, just call the APICOMMENT
LOWinstructor/v2/core/retry.py482 # No structured output, just call the APICOMMENT
MEDIUMinstructor/batch/models.py96 """Enhanced unified batch job information with comprehensive provider support"""STRING
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOWexamples/classification/classifiy_with_validation.py67CODE
LOWexamples/situate_context/run.py69CODE
LOWexamples/caching/run.py141CODE
LOWscripts/make_desc.py72CODE
LOWinstructor/cli/jobs.py153CODE
Slop Phrases2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMexamples/simple-extraction/maybe_user.py72# ! due to the __bool__ method, you can use the MaybeUser object as a booleanCOMMENT
MEDIUMexamples/gpt-engineer/program.json1{"files": [{"file_name": "readme.md", "body": "# FastAPI App\n\nThis is a FastAPI app that provides some basic math funcCODE
Example Usage Blocks2 hits · 2 pts
SeverityFileLineSnippetContext
LOWexamples/youtube-clips/run.py89# Example usageCOMMENT
LOWexamples/situate_context/run.py125 # Example usageSTRING
Overly Generic Function Names4 hits · 2 pts
SeverityFileLineSnippetContext
LOWinstructor/distil.py48 >>> def my_function(a: int, b: int) -> int:STRING
LOWinstructor/distil.py52 "def my_function(a: int, b: int) -> int"STRING
LOWinstructor/distil.py174 >>> def my_function() -> MyModel:STRING
LOWinstructor/distil.py178 >>> def my_function() -> MyModel:STRING
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWinstructor/v2/dsl/simple_type.py69 # ! TypeError, so we need to check if `response_model` is an IterableCOMMENT