Repository Analysis

567-labs/instructor

structured outputs for llms

25.8 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of 567-labs/instructor, a Python project with 13,664 GitHub stars. SynthScan v2.0 examined 133,346 lines of code across 834 source files, recording 2229 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 25.8 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

25.8
Adjusted Score
25.8
Raw Score
100%
Time Factor
2026-07-29
Last Push
13.7K
Stars
Python
Language
133.3K
Lines of Code
834
Files
2.2K
Pattern Hits
2026-08-02
Scan Date
0.21
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 19HIGH 156MEDIUM 183LOW 1871

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 2229 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers992 hits · 986 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_utils.py200def test_combine_system_messages_string_string():CODE
LOWtests/test_utils.py207def test_combine_system_messages_list_list():CODE
LOWtests/test_utils.py217def test_combine_system_messages_string_list():CODE
LOWtests/test_utils.py227def test_combine_system_messages_list_string():CODE
LOWtests/test_utils.py237def test_update_total_usage_preserves_openai_usage_subclass():CODE
LOWtests/test_utils.py267def test_combine_system_messages_none_string():CODE
LOWtests/test_utils.py274def test_combine_system_messages_none_list():CODE
LOWtests/test_utils.py281def test_combine_system_messages_invalid_type():CODE
LOWtests/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_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
LOWtests/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.py28def test_responses_tools_preserves_function_description() -> None:CODE
LOWtests/test_openai_responses_tools.py38def test_responses_tools_sets_text_format() -> None:CODE
LOWtests/test_openai_responses_tools.py49def test_responses_tools_overrides_conflicting_text_format() -> None:CODE
LOWtests/test_openai_responses_tools.py72def test_responses_tools_preserves_matching_text_format() -> None:CODE
LOWtests/test_openai_responses_tools.py90def test_responses_tools_none_model_no_text() -> None:CODE
LOWtests/test_openai_responses_tools.py108def test_reask_responses_tools_empty_args_message() -> None:CODE
LOWtests/test_openai_responses_tools.py122def test_reask_responses_tools_nonempty_args_message() -> None:CODE
LOWtests/test_openai_responses_tools.py135def test_reask_responses_tools_none_arguments() -> None:CODE
LOWtests/test_openai_responses_tools.py144def test_responses_tools_overrides_text_type_format() -> None:CODE
LOWtests/test_openai_responses_tools.py154def test_parse_response_warns_on_empty_args(caplog) -> None:CODE
LOWtests/test_incomplete_output_exception.py38def test_incomplete_output_exception_is_catchable_sync():CODE
LOWtests/test_incomplete_output_exception.py56def test_incomplete_output_not_wrapped_in_instructor_retry_exception_sync():CODE
LOWtests/test_incomplete_output_exception.py74def test_incomplete_output_exception_with_max_retries_zero():CODE
LOWtests/test_incomplete_output_exception.py78 def _raise_incomplete_and_count(*_args, **_kwargs):CODE
LOWtests/test_incomplete_output_exception.py102async def test_incomplete_output_exception_is_catchable_async():CODE
LOWtests/test_update_total_usage.py31def test_update_total_usage_preserves_openai_usage_subclass() -> None:CODE
LOWtests/test_genai_config_merging.py24def test_update_genai_kwargs_thinking_config_from_config_object():CODE
LOWtests/test_genai_config_merging.py402def test_update_genai_kwargs_config_dict_labels():CODE
LOWtests/test_genai_config_merging.py412def test_update_genai_kwargs_config_dict_cached_content():CODE
LOWtests/test_genai_config_merging.py422def test_update_genai_kwargs_config_dict_thinking_config():CODE
LOWtests/test_genai_config_merging.py57def test_update_genai_kwargs_thinking_config_kwarg_priority():CODE
932 more matches not shown…
Cross-File Repetition79 hits · 395 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
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
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
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
19 more matches not shown…
Unused Imports385 hits · 362 pts
SeverityFileLineSnippetContext
LOWtests/test_streaming_reasoning_events.py10CODE
LOWtests/test_import_lazy_openai.py3CODE
LOWtests/test_batch_processor_coverage.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/processing/test_list_response_wrapper.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_xai_client.py7CODE
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_xai_handlers.py6CODE
LOWtests/v2/test_handlers_parametrized.py7CODE
LOWtests/v2/_fake_genai.py3CODE
LOWtests/v2/test_citation.py8CODE
LOWtests/v2/test_vertexai_runtime.py1CODE
LOWtests/v2/test_mode_normalization.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
LOWtests/v2/test_openai_compat_handlers.py3CODE
LOWtests/v2/test_provider_modes.py7CODE
LOWtests/v2/test_optional_dependency_imports.py1CODE
LOWtests/v2/provider_matrix.py3CODE
LOWtests/v2/test_response_schema_compat.py3CODE
LOWtests/v2/test_gemini_json_messages.py1CODE
LOWtests/v2/test_writer_client.py3CODE
LOWtests/v2/test_messages_not_mutated.py29CODE
LOWtests/v2/test_bedrock_client.py3CODE
LOWtests/v2/test_bedrock_handlers.py3CODE
LOWtests/v2/test_writer_handlers.py3CODE
LOWtests/v2/test_json_helpers.py1CODE
LOWtests/v2/test_iterable_streaming.py1CODE
LOWtests/v2/test_provider_specs.py3CODE
LOWtests/v2/test_mistral_handlers.py7CODE
LOWtests/v2/test_retry_runtime.py1CODE
LOWtests/v2/test_cohere_handlers.py7CODE
LOWexamples/parallel/run.py1CODE
LOWexamples/codegen-from-schema/models.py5CODE
LOWexamples/fizzbuzz/run.py1CODE
325 more matches not shown…
Decorative Section Separators88 hits · 321 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_streaming_reasoning_events.py21# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_streaming_reasoning_events.py23# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_streaming_reasoning_events.py53# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_streaming_reasoning_events.py56# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_streaming_reasoning_events.py81# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/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
MEDIUMtests/v2/test_xai_client.py187# ============================================================================COMMENT
MEDIUMtests/v2/test_xai_client.py189# ============================================================================COMMENT
MEDIUMtests/v2/test_xai_client.py195# ============================================================================COMMENT
MEDIUMtests/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
MEDIUMtests/v2/test_handler_registration_unified.py170# ============================================================================COMMENT
MEDIUMtests/v2/test_handler_registration_unified.py172# ============================================================================COMMENT
MEDIUMtests/v2/test_xai_handlers.py366# ============================================================================COMMENT
MEDIUMtests/v2/test_xai_handlers.py368# ============================================================================COMMENT
MEDIUMtests/v2/test_xai_handlers.py373# ============================================================================COMMENT
MEDIUMtests/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
MEDIUMtests/v2/test_client_unified.py150# ============================================================================COMMENT
MEDIUMtests/v2/test_client_unified.py152# ============================================================================COMMENT
MEDIUMtests/v2/test_client_unified.py203# ============================================================================COMMENT
MEDIUMtests/v2/test_client_unified.py205# ============================================================================COMMENT
MEDIUMtests/v2/test_client_unified.py229# ============================================================================COMMENT
MEDIUMtests/v2/test_client_unified.py231# ============================================================================COMMENT
MEDIUMtests/v2/test_client_unified.py266# ============================================================================COMMENT
MEDIUMtests/v2/test_client_unified.py268# ============================================================================COMMENT
MEDIUMtests/v2/test_client_unified.py304# ============================================================================COMMENT
MEDIUMtests/v2/test_client_unified.py306# ============================================================================COMMENT
MEDIUMtests/v2/test_client_unified.py348# ============================================================================COMMENT
MEDIUMtests/v2/test_client_unified.py350# ============================================================================COMMENT
MEDIUMtests/v2/test_mistral_handlers.py340# ============================================================================COMMENT
MEDIUMtests/v2/test_mistral_handlers.py342# ============================================================================COMMENT
MEDIUMtests/v2/test_mistral_handlers.py439# ============================================================================COMMENT
MEDIUMtests/v2/test_mistral_handlers.py441# ============================================================================COMMENT
MEDIUMtests/v2/test_mistral_handlers.py446# ============================================================================COMMENT
MEDIUMtests/v2/test_mistral_handlers.py448# ============================================================================COMMENT
MEDIUMtests/v2/test_mistral_handlers.py487# ============================================================================COMMENT
MEDIUMtests/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
MEDIUMtests/v2/test_cohere_handlers.py451# ============================================================================COMMENT
MEDIUMtests/v2/test_cohere_handlers.py453# ============================================================================COMMENT
MEDIUMtests/v2/test_cohere_handlers.py458# ============================================================================COMMENT
MEDIUMtests/v2/test_cohere_handlers.py460# ============================================================================COMMENT
28 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
CRITICALtests/providers/test_auto_client.py230 from instructor.core.exceptions import ConfigurationErrorCODE
CRITICALtests/providers/test_auto_client.py239 from instructor.core.exceptions import ConfigurationErrorCODE
CRITICALtests/providers/test_auto_client.py453 from instructor.core.exceptions import ConfigurationErrorCODE
CRITICALtests/providers/test_auto_client.py474 from instructor.core.exceptions import ConfigurationErrorCODE
CRITICALtests/v2/test_xai_client.py210 from instructor.core.exceptions import ClientErrorCODE
CRITICALtests/v2/test_client_unified.py332 from instructor.core.exceptions import ClientErrorCODE
CRITICALtests/v2/test_bedrock_client.py31 from instructor.core.exceptions import ClientErrorCODE
CRITICALtests/v2/test_bedrock_client.py44 from instructor.core.exceptions import ClientErrorCODE
CRITICALtests/v2/test_bedrock_client.py58 from instructor.core.exceptions import ModeErrorCODE
CRITICALtests/v2/test_cohere_handlers.py644 from instructor.core.exceptions import ResponseParsingErrorCODE
CRITICALdocs/concepts/error_handling.md92from instructor.core.exceptions import ValidationErrorCODE
CRITICALdocs/concepts/error_handling.md123from instructor.core.exceptions import ConfigurationError, ModeErrorCODE
CRITICALdocs/concepts/error_handling.md190from instructor.core.exceptions import InstructorErrorCODE
CRITICALdocs/concepts/error_handling.md214from instructor.core.exceptions import ValidationError, InstructorRetryExceptionCODE
CRITICALdocs/concepts/error_handling.md258from instructor.core.exceptions import ResponseParsingErrorCODE
CRITICALdocs/concepts/error_handling.md293from instructor.core.exceptions import ValidationErrorCODE
CRITICALdocs/concepts/from_provider.md221from instructor.core.exceptions import ConfigurationErrorCODE
Excessive Try-Catch Wrapping194 hits · 224 pts
SeverityFileLineSnippetContext
LOWtests/test_batch_in_memory.py183 except Exception as exc_info:CODE
LOWtests/test_batch_in_memory.py210 except Exception as exc_info:CODE
LOWtests/test_openai_responses_tools.py163 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
LOWtests/providers/test_auto_client.py184 except Exception as e:CODE
LOWtests/providers/test_auto_client.py195 except Exception as e:CODE
LOWtests/providers/test_auto_client.py211 except Exception as e:CODE
LOWtests/providers/test_auto_client.py222 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.md137 print("Error: Install the anthropic package first")CODE
LOWdocs/integrations/xai.md206except Exception as e:STRING
MEDIUMdocs/integrations/xai.md207 print(f"Error: {e}")STRING
LOWdocs/integrations/anthropic.md97except Exception as e:CODE
LOWdocs/integrations/anthropic.md387except Exception as e:CODE
MEDIUMdocs/integrations/anthropic.md388 print(f"Error during streaming: {e}")CODE
LOWdocs/integrations/anthropic.md448except Exception as e:STRING
MEDIUMdocs/integrations/anthropic.md449 print(f"Error during iteration: {e}")STRING
LOWdocs/integrations/anthropic.md549except Exception as e:CODE
MEDIUMdocs/integrations/anthropic.md550 print(f"Error: {e}")CODE
LOWdocs/integrations/anthropic.md623except Exception as e:CODE
MEDIUMdocs/integrations/anthropic.md624 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.md275 print(f"Error: {e}")CODE
LOWdocs/concepts/semantic_validation.md153except Exception as e:CODE
LOWdocs/concepts/retrying.md41except Exception as e:CODE
MEDIUMdocs/concepts/hooks.md101 print(f"Error #{self.count}: {type(error).__name__}: {error}")CODE
LOWdocs/concepts/hooks.md122except Exception as e:CODE
MEDIUMdocs/concepts/batch.md182 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
134 more matches not shown…
Magic Placeholder Names35 hits · 182 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.md144export GROQ_API_KEY="your-api-key"CODE
HIGHdocs/blog/posts/open_source.md190export TOGETHER_API_KEY="your-api-key"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.md29export XAI_API_KEY='your-api-key-here'CODE
HIGHdocs/integrations/xai.md181export XAI_API_KEY="your-api-key-here"STRING
HIGHdocs/integrations/anthropic.md40# os.environ["ANTHROPIC_API_KEY"] = "your-api-key" # Uncomment and replace with your API key if not setCOMMENT
HIGHdocs/integrations/anthropic.md356# os.environ["ANTHROPIC_API_KEY"] = "your-api-key" # Uncomment and replace with your API key if not setCOMMENT
HIGHdocs/integrations/anthropic.md405# 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.md567# 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.md23export OPENAI_API_KEY='your-api-key-here'CODE
HIGHdocs/integrations/openai.md33 api_key='your-api-key-here',CODE
HIGHdocs/integrations/mistral.md33client = 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.py303 "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.py380 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.py750 "Set it with `export MISTRAL_API_KEY=<your-api-key>`."CODE
HIGHinstructor/v2/auto_client.py850 "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.py1376 "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.py1499 "Set it with `export OPENROUTER_API_KEY=<your-api-key>` or pass it as kwarg api_key=<your-api-key>"CODE
Docstring Block Structure31 hits · 155 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.py67Create an Instructor client from a model string. Args: model: String in format "provider/model-name" STRING
HIGHinstructor/v2/core/patch.py85Patch a function to use v2 registry for structured outputs. Args: func: Function to patch (e.g., client.mesSTRING
HIGHinstructor/v2/core/hooks.py117 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.py227Get a specific handler for a mode. This is a convenience method that internally calls get_handlers(). FSTRING
HIGHinstructor/v2/core/multimodal.py448Attempt to autodetect a PDF from a source string or Path. Args: source (Union[str,path]): The sourceSTRING
HIGHinstructor/v2/core/response.py128Asynchronously process and transform LLM responses into structured models. This function is the async entry point fSTRING
HIGHinstructor/v2/core/response.py257Process and transform LLM responses into structured models (synchronous). This is the main entry point for convertiSTRING
HIGHinstructor/v2/core/response.py463Compatibility dispatcher for provider-specific reask formatting. The retry loop itself lives in :mod:`instructor.v2STRING
HIGHinstructor/v2/core/retry.py125Sync retry logic using v2 registry handlers. Args: func: API function to call response_model: PydanSTRING
HIGHinstructor/v2/core/retry.py370Async 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.py193Create an Instructor instance from an xAI client using v2 registry. Args: client: An instance of xAI clientSTRING
HIGHinstructor/v2/providers/bedrock/client.py51Create 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.py70Create 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
Self-Referential Comments34 hits · 108 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_batch_in_memory.py163 # Create a valid OpenAI batch requestCOMMENT
MEDIUMtests/test_batch_in_memory.py192 # Create a valid Anthropic batch requestCOMMENT
MEDIUMtests/test_genai_config_merging.py31 # Create a mock config object with thinking_configCOMMENT
MEDIUMtests/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.py575 # Create a mock google moduleCOMMENT
MEDIUMtests/providers/test_auto_client.py653 # Create a mock google module with genai attributeCOMMENT
MEDIUMtests/v2/test_handlers_parametrized.py356 # Create a mock that works with dump_messageCOMMENT
MEDIUMtests/v2/test_client_unified.py509 # Create a mock OpenAI clientCOMMENT
MEDIUMtests/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/response.py559 # Create a shallow copy of kwargs to avoid modifying the originalCOMMENT
MEDIUMinstructor/v2/core/function_calls.py600 # Create the wrapped modelCOMMENT
MEDIUMinstructor/v2/dsl/partial.py2# The following code is adapted from a comment on GitHub in the pydantic/pydantic repository by silviumarcu.COMMENT
Deep Nesting102 hits · 98 pts
SeverityFileLineSnippetContext
LOWtests/providers/test_auto_client.py451CODE
LOWtests/providers/test_auto_client.py472CODE
LOWtests/providers/test_auto_client.py596CODE
LOWtests/providers/test_auto_client.py634CODE
LOWtests/v2/test_handlers_parametrized.py499CODE
LOWtests/v2/test_handlers_parametrized.py536CODE
LOWtests/multimodal/test_multimodal.py349CODE
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/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/cli/batch.py18CODE
LOWinstructor/cli/batch.py397CODE
LOWinstructor/cli/batch.py449CODE
LOWinstructor/cli/batch.py511CODE
LOWinstructor/cli/jobs.py146CODE
LOWinstructor/v2/auto_client.py966CODE
LOWinstructor/v2/core/hooks.py136CODE
LOWinstructor/v2/core/multimodal.py712CODE
LOWinstructor/v2/core/multimodal.py801CODE
LOWinstructor/v2/core/multimodal.py167CODE
LOWinstructor/v2/core/multimodal.py623CODE
LOWinstructor/v2/core/retry.py113CODE
LOWinstructor/v2/core/retry.py358CODE
LOWinstructor/v2/core/messages.py51CODE
LOWinstructor/v2/core/messages.py72CODE
LOWinstructor/v2/core/json.py9CODE
LOWinstructor/v2/core/json.py76CODE
LOWinstructor/v2/core/json.py174CODE
LOWinstructor/v2/providers/cohere/handlers.py93CODE
LOWinstructor/v2/providers/gemini/handlers.py161CODE
LOWinstructor/v2/providers/gemini/utils.py77CODE
LOWinstructor/v2/providers/gemini/utils.py128CODE
LOWinstructor/v2/providers/gemini/utils.py229CODE
LOWinstructor/v2/providers/gemini/utils.py321CODE
LOWinstructor/v2/providers/gemini/utils.py353CODE
LOWinstructor/v2/providers/gemini/utils.py383CODE
LOWinstructor/v2/providers/gemini/utils.py152CODE
LOWinstructor/v2/providers/xai/client.py68CODE
LOWinstructor/v2/providers/xai/client.py120CODE
LOWinstructor/v2/providers/xai/client.py188CODE
LOWinstructor/v2/providers/xai/client.py260CODE
LOWinstructor/v2/providers/xai/client.py420CODE
LOWinstructor/v2/providers/xai/handlers.py58CODE
42 more matches not shown…
Modern Structural Boilerplate70 hits · 69 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.py35__all__ = [CODE
LOWinstructor/core/__init__.py22__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/v2/__init__.py9__all__ = [CODE
LOWinstructor/v2/core/__init__.py8__all__ = [CODE
LOWinstructor/v2/core/schema.py19__all__ = [CODE
LOWinstructor/v2/providers/cohere/handlers.py475__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.py800__all__ = [CODE
LOWinstructor/v2/providers/xai/__init__.py11__all__ = ["from_xai"]CODE
LOWinstructor/v2/providers/bedrock/client.py138__all__ = ["from_bedrock"]CODE
LOWinstructor/v2/providers/bedrock/handlers.py558__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.py937__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.py626__all__ = [CODE
LOWinstructor/v2/providers/mistral/__init__.py12__all__ = ["from_mistral"]CODE
10 more matches not shown…
Redundant / Tautological Comments39 hits · 60 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
LOWscripts/check_blog_excerpts.py49 # Read the file contentCOMMENT
LOWscripts/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/cache/__init__.py214 # Check if this looks like a Pydantic-serialized object (has proper structure)COMMENT
LOWinstructor/cli/batch.py194 # Check if required API key is available for the providerCOMMENT
LOWinstructor/v2/auto_client.py1317 # Check if model supports tools by looking at model nameCOMMENT
LOWinstructor/v2/core/registry.py187 # Check if already loadedCOMMENT
LOWinstructor/v2/core/registry.py348 # Check if handlers are registeredCOMMENT
LOWinstructor/v2/core/client.py778 # Check if the response model is an iterable typeCOMMENT
LOWinstructor/v2/core/multimodal.py544 # 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.py105 # Check if mistralai is installedCOMMENT
LOWinstructor/v2/dsl/simple_type.py96 # 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.py209 # Check if this is a provider error responseCOMMENT
LOWinstructor/batch/processor.py263 # Check if result is an errorCOMMENT
Fake / Example Data51 hits · 59 pts
SeverityFileLineSnippetContext
LOWsitemap.yaml557blog/posts/fake-data.md:CODE
LOWtests/llm/test_core_providers/test_validation.py52 assert user.name == "John Doe"CODE
LOWtests/llm/test_core_providers/test_basic_extraction.py88 assert user.name == "John Doe"CODE
LOWtests/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.py125 assert response.name == "John Doe"CODE
LOWtests/llm/test_genai/test_invalid_schema.py193 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
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
LOWdocs/blog/posts/version-1.md206 #> name='John Doe' age=NoneCOMMENT
LOWdocs/blog/posts/version-1.md207 #> name='John Doe' age=NoneCOMMENT
LOWdocs/blog/posts/version-1.md208 #> name='John Doe' age=NoneCOMMENT
LOWdocs/blog/posts/version-1.md209 #> name='John Doe' age=NoneCOMMENT
LOWdocs/blog/posts/version-1.md210 #> name='John Doe' age=30COMMENT
LOWdocs/blog/posts/version-1.md211 #> name='John Doe' age=30COMMENT
LOWdocs/blog/posts/version-1.md215 # name='John Doe' age=NoneCOMMENT
LOWdocs/blog/posts/version-1.md216 # name='John Doe' age=30COMMENT
LOWdocs/blog/posts/version-1.md250 #> name='John Doe' age=30COMMENT
LOWdocs/blog/posts/version-1.md251 #> name='Jane Doe' age=28COMMENT
LOWdocs/blog/posts/version-1.md252 # User(name='John Doe', age=30)COMMENT
LOWdocs/blog/posts/using_json.md77# "name": "John Doe",COMMENT
LOWdocs/integrations/deepseek.md156#> 'street': '123 Main St',STRING
LOWdocs/integrations/fireworks.md135#> 'street': '123 Main St',STRING
LOWdocs/integrations/writer.md127#> 'street': '123 Main St',STRING
LOWdocs/integrations/xai.md126#> 'street': '123 Main St',STRING
LOWdocs/integrations/anthropic.md82 # "name": "John Doe",COMMENT
LOWdocs/integrations/groq.md144#> 'street': '123 Main St',STRING
LOWdocs/integrations/openai.md174#> 'street': '123 Main St',STRING
LOWdocs/integrations/bedrock.md273#> Address(street='123 Main St', city='New York', country='USA'),STRING
LOWdocs/integrations/mistral.md173# Address(street='123 Main St', city='New York', country='USA'),STRING
LOWdocs/integrations/cortex.md143#> 'street': '123 Main St',STRING
LOWdocs/integrations/cerebras.md123#> 'street': '123 Main St',STRING
LOWdocs/integrations/google.md235#> 'street': '123 Main St',STRING
LOWdocs/integrations/perplexity.md142#> Address(street='123 Main St', city='New York', country='USA'),STRING
LOWdocs/integrations/openrouter.md135#> 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
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
LOWdocs/prompting/few_shot/exemplar_selection/knn.md120 # Step 1 : Embed the ExamplesSTRING
LOWdocs/prompting/few_shot/exemplar_selection/knn.md126 # # Step 3: Find the k closest examples to the querySTRING
LOWdocs/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.md120### 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
Cross-Language Confusion7 hits · 32 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
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
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 # via openaiCOMMENT
LOWrequirements.txt61 # viaCOMMENT
LOWrequirements.txt81 # via instructor (pyproject.toml)COMMENT
LOWrequirements.txt101 # anyioCOMMENT
LOWdocs/blog/posts/version-1.md201 print(user)COMMENT
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/fireworks.md121 He lives at 123 Main St, New York, USACOMMENT
LOWdocs/integrations/writer.md121print(user)COMMENT
LOWdocs/integrations/xai.md121#> {COMMENT
LOWdocs/integrations/anthropic.md81 # {COMMENT
LOWdocs/integrations/anthropic.md221 # Image.from_path("path/to/local/image.jpg")COMMENT
LOWdocs/integrations/groq.md141#> 'age': 25,COMMENT
LOWdocs/integrations/openai.md161 He lives at 123 Main St, New York, USACOMMENT
LOWdocs/integrations/cortex.md141#> 'addresses': [COMMENT
LOWdocs/integrations/cerebras.md121#> 'addresses': [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.py146 # No structured output, just call the APICOMMENT
LOWinstructor/v2/core/retry.py391 # 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.py146CODE
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.py68 # ! TypeError, so we need to check if `response_model` is an IterableCOMMENT