Skip to content

Feature/llm scout#343

Merged
e06084 merged 14 commits intoMigoXLab:devfrom
Kylie-dot-s:feature/llm-scout
Feb 6, 2026
Merged

Feature/llm scout#343
e06084 merged 14 commits intoMigoXLab:devfrom
Kylie-dot-s:feature/llm-scout

Conversation

@Kylie-dot-s
Copy link
Contributor

  • Add LLMScout for strategic job hunting analysis based on industry reports
  • Update LLMKeywordMatcher and LLMResumeOptimizer to use EvalDetail only
  • Add unit tests for LLMScout (13 test cases)
  • Add example script sdk_scout.py
  • Update docs/ats_resume_guide.md with LLMScout documentation

Features:

  • Industry report parsing (company extraction, financial signals)
  • User profile parsing (skills, experience, preferences)
  • 5-dimension weighted scoring (skill_match, risk_alignment, etc.)
  • Tier classification (Tier 1/2/Not Recommended)
  • Search strategy generation"

Kylie-dot-s and others added 14 commits December 26, 2025 14:13
- Fix rule_resume.py: Replace invalid eval_details/eval_status with proper EvalDetail fields (status, label, reason)
- Fix mcp_server.py: Add environment variables to force ThreadPool usage and prevent ProcessPool fd inheritance
  * Set LOCAL_DEPLOYMENT_MODE=true to use ThreadPoolExecutor instead of ProcessPoolExecutor
  * Set TQDM_DISABLE=1 to prevent progress bar output pollution
  * Add stdout/stderr redirection with StringIO for better error handling
  * Fix rule name extraction logic to handle both class and instance types
  * Add defensive checks for Model.prompt_name_map access
  * Change default rule group fallback from 'default' to 'sft' to avoid buggy Resume rules
- Add noqa: E402 comments to imports that must stay after os.environ setup
- Fix E261: Add proper spacing before inline comments
- Fix F841: Remove unused variable 'inner_e' in exception handler
- Fix E115: Correct indentation of FIX END comment
- Keep noqa: E402 comments for imports after os.environ setup
- Maintain proper import order and formatting
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @Kylie-dot-s, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces the LLMScout module, enhancing the Dingo ATS resume optimization tools with strategic job hunting analysis. It also refactors existing LLM modules to use EvalDetail consistently and provides comprehensive documentation and examples.

Highlights

  • LLMScout Integration: Introduces LLMScout, a new module for strategic job hunting analysis based on industry reports and user profiles.
  • EvalDetail Usage: Updates LLMKeywordMatcher and LLMResumeOptimizer to exclusively use EvalDetail for response processing, simplifying result handling.
  • Comprehensive Testing: Adds 13 unit tests for LLMScout, ensuring robust functionality and reliability.
  • Documentation and Examples: Includes an example script (sdk_scout.py) and updates the documentation (docs/ats_resume_guide.md) with LLMScout details.
  • Key Features: LLMScout offers industry report parsing, user profile analysis, 5-dimension weighted scoring, tier classification, and search strategy generation.
Changelog
  • dingo/model/llm/llm_keyword_matcher.py
    • Refactored to remove ModelRes support and exclusively use EvalDetail.
    • Simplified response processing and validation logic.
  • dingo/model/llm/llm_resume_optimizer.py
    • Refactored to remove ModelRes support and exclusively use EvalDetail.
    • Simplified response processing.
  • dingo/model/llm/llm_scout.py
    • Added LLMScout module for strategic job hunting analysis.
    • Implemented industry report parsing, user profile analysis, and person-job fit scoring.
    • Integrated search strategy generation and interview style prediction.
  • docs/ats_resume_guide.md
    • Updated documentation to include LLMScout and its features.
    • Added usage examples and explanations of scoring metrics.
  • examples/ats_resume/sdk_scout.py
    • Added example script for LLMScout usage.
  • test/scripts/model/llm/test_ats_resume.py
    • Added unit tests for LLMScout.
    • Ensured compatibility and reliability of LLMScout functionality.
Activity
  • New LLMScout module added with comprehensive features.
  • Existing LLM modules refactored for consistent EvalDetail usage.
  • Extensive unit tests added to ensure reliability.
  • Documentation and examples updated for LLMScout.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a significant new feature, LLMScout, for strategic job hunting analysis. The implementation is comprehensive, including detailed prompting, scoring logic, and robust processing of the LLM response. The feature is well-supported with thorough unit tests, a clear example script, and updated documentation.

The pull request also refactors LLMKeywordMatcher and LLMResumeOptimizer to remove legacy code supporting ModelRes, which simplifies the codebase and improves consistency by using EvalDetail exclusively.

My main feedback is on a minor code duplication issue in the eval methods of both LLMScout and LLMKeywordMatcher. Extracting the error handling logic into a helper method would improve maintainability.

Overall, this is a high-quality contribution that adds valuable functionality and improves the existing code.

Comment on lines 332 to +345
if not input_data.content:
if USE_EVAL_DETAIL:
result = EvalDetail(metric=cls.__name__)
result.status = True
result.label = [f"QUALITY_BAD.{cls.__name__}"]
result.reason = ["Resume text (content) is required but was not provided"]
return result
else:
return ModelRes(
error_status=True,
type="KEYWORD_MATCH_ERROR",
name="MISSING_RESUME",
reason=["Resume text (content) is required but was not provided"]
)
result = EvalDetail(metric=cls.__name__)
result.status = True
result.label = [f"QUALITY_BAD.{cls.__name__}"]
result.reason = ["Resume text (content) is required but was not provided"]
return result

# Validate that prompt (JD) is provided
if not input_data.prompt:
if USE_EVAL_DETAIL:
result = EvalDetail(metric=cls.__name__)
result.status = True
result.label = [f"QUALITY_BAD.{cls.__name__}"]
result.reason = ["Job description (prompt) is required but was not provided"]
return result
else:
return ModelRes(
error_status=True,
type="KEYWORD_MATCH_ERROR",
name="MISSING_JD",
reason=["Job description (prompt) is required but was not provided"]
)
result = EvalDetail(metric=cls.__name__)
result.status = True
result.label = [f"QUALITY_BAD.{cls.__name__}"]
result.reason = ["Job description (prompt) is required but was not provided"]
return result
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There's some code duplication in the eval method for handling input validation errors. The logic for creating and returning an EvalDetail object is nearly identical for missing content and missing prompt. To improve maintainability and reduce redundancy, consider extracting this logic into a private helper method.

For example, you could create a helper like _create_error_detail(cls, reason: str) -> EvalDetail.

Comment on lines +478 to +492
if not input_data.content:
result = EvalDetail(metric=cls.__name__)
result.status = True
result.label = [f"QUALITY_BAD.{cls.__name__}"]
result.reason = ["行业报告 (content) 是必需的但未提供"]
return result

# Validate that prompt (user profile) is provided
if not input_data.prompt:
result = EvalDetail(metric=cls.__name__)
result.status = True
result.label = [f"QUALITY_BAD.{cls.__name__}"]
result.reason = ["用户画像 (prompt) 是必需的但未提供"]
return result

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Similar to LLMKeywordMatcher, there's code duplication in the eval method for input validation. The error handling logic for missing content and prompt is repeated. This could be refactored into a private helper method to improve code clarity and maintainability.

A helper method like _create_error_detail(cls, reason: str) -> EvalDetail could encapsulate the creation of the EvalDetail object for error cases.

@e06084 e06084 merged commit 330a5dc into MigoXLab:dev Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants