Node search supports model and name search#24331
Merged
crazywoola merged 1 commit intolanggenius:mainfrom Aug 22, 2025
Merged
Conversation
…w search hooks, extracted tool icon and model information processing, and improved search score calculation methods.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR enhances workflow node search functionality by adding model-based search capabilities for LLM nodes and optimizing the search scoring algorithm. The changes also include a package manager version update to align with the latest pnpm release.
- Extracted tool icon and model information processing into dedicated functions for better code organization
- Enhanced search scoring to include LLM model provider, name, and mode matching with weighted scores
- Updated pnpm version from 10.14.0 to 10.15.0 across package.json and devcontainer configuration
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| web/package.json | Updated pnpm package manager version to 10.15.0 |
| web/app/components/workflow/hooks/use-workflow-search.tsx | Refactored search logic with extracted helper functions and enhanced model-based search scoring |
| .devcontainer/post_create_command.sh | Updated global pnpm installation to version 10.15.0 for consistency |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
crazywoola
approved these changes
Aug 22, 2025
Gnomeek
added a commit
to Gnomeek/dify
that referenced
this pull request
Aug 22, 2025
ci add assertion docs: format all md files (langgenius#24195) Signed-off-by: yihong0618 <[email protected]> hotfix: fix multiple case match syntax (langgenius#24204) feat: notice of the expire of education verify (langgenius#24210) Co-authored-by: Copilot <[email protected]> Feat: Education (langgenius#24208) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> chore: translate i18n files (langgenius#24211) Co-authored-by: iamjoel <[email protected]> Httpx example (langgenius#24151) add tyck tool (currently ignore the error) (langgenius#22592) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Fix the bug of automatically appending basepath to image resource. (langgenius#24201) fix: keep idempotent when init AnalyticdbVectorBySql (langgenius#24239) Co-authored-by: xiaozeyu <[email protected]> fix: dataset doc-form compatible (langgenius#24177) Co-authored-by: huangzhuo <[email protected]> feature: add test containers base tests for saved message service (langgenius#24259) Mcp support resource discovery (langgenius#24223) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> fix: loop exit condition accepts variables from nodes inside the loop langgenius#24183: (langgenius#24257) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> feat: show the start time with seconds of the app logs (langgenius#24267) fix(api):Fix the issue of empty and not empty operations failing in k… (langgenius#24276) Co-authored-by: liumin <[email protected]> fix: rollback when AnalyticDB create zhparser failed (langgenius#24260) Co-authored-by: xiaozeyu <[email protected]> fix: value_type check failed when updating variables (langgenius#24274) Co-authored-by: me <[email protected]> [Test] add unit tests for ProviderConfigEncrypter encrypt/mask/decrypt (langgenius#24280) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> refactor: replace try-except blocks with contextlib.suppress for cleaner exception handling (langgenius#24284) style: replace `h-[1px]` with `h-px` to unify the writing format of Tailwind CSS (langgenius#24146) Fix: safe defaults for BaseModel dict fields (langgenius#24098) Co-authored-by: Yongtao Huang <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> [CHORE]: x: T = None to x: Optional[T] = None (langgenius#24217) feature: add test containers base tests for tag service (langgenius#24313) [Test] add unit tests for web_reader_tool.py (langgenius#24309) Co-authored-by: Yongtao Huang <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Annotations example (langgenius#24304) an example of sessionmaker (langgenius#24246) feat: implement TooltipManager for managing tooltip lifecycle (langgenius#24236) Co-authored-by: crazywoola <[email protected]> Flask 3.1.2 upgrade fix by Avoids using current_user in background thread (langgenius#24290) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> fix: Optimize scrolling experience on plugin page (langgenius#24314) (langgenius#24322) auto format md files (langgenius#24242) Feat/chat message image first for agent and advanced_chat APP (langgenius#23796) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Update knowledge_retrieval_node.py (langgenius#24111) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> example of next(, None) (langgenius#24345) feat: Add default value support for all workflow start node variable types (langgenius#24129) Co-authored-by: crazywoola <[email protected]> Co-authored-by: Copilot <[email protected]> refactor: simplify repository factory with Django-style import_string (langgenius#24354) Fix missing database commit in provider update handler (langgenius#24357) Node search supports model and name search (langgenius#24331) [Chore/Refactor] except StopIteration -> next( , None)
qiaofenlin
pushed a commit
to qiaofenlin/dify
that referenced
this pull request
Aug 24, 2025
Closed
qiqizjl
pushed a commit
to qiqizjl/dify
that referenced
this pull request
Aug 27, 2025
HarryReidx
pushed a commit
to HarryReidx/dify
that referenced
this pull request
Sep 1, 2025
(cherry picked from commit 295b47c)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: Updated pnpm version to 10.15.0, optimized the logic of workflow search hooks, extracted tool icon and model information processing, and improved search score calculation methods.
Important
Fixes #<issue number>.Summary
fix #24330
Screenshots
2025-08-22-16-15-16.mp4
Checklist
dev/reformat(backend) andcd web && npx lint-staged(frontend) to appease the lint gods