feat: expose searchDomainFilter and searchRecencyFilter in Perplexity…#6300
Closed
PythonToGo wants to merge 1 commit intoFlowiseAI:mainfrom
Closed
feat: expose searchDomainFilter and searchRecencyFilter in Perplexity…#6300PythonToGo wants to merge 1 commit intoFlowiseAI:mainfrom
PythonToGo wants to merge 1 commit intoFlowiseAI:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request uncomments and enables the 'Search Domain Filter' and 'Search Recency Filter' configuration options for the ChatPerplexity component. A review comment suggests improving the user experience for the domain filter by using a string list type instead of a raw JSON field.
Author
|
Regarding the Gemini suggestion to use |
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.
Problem
The Perplexity node had
searchDomainFilterandsearchRecencyFilterUI fields commented out, making them inaccessible to users despite being fully supported by both the LangChain wrapper and the Perplexity API.The
init()function already reads and passes these fields to the model — only the UI definitions were missing.Changes
Uncommented the two UI input fields in
ChatPerplexity.ts:searchDomainFilter): Allows users to restrict citations to specific domains (e.g.,["example.com", "docs.mycompany.com"])searchRecencyFilter): Allows users to filter search results by time interval —hour,day,week, ormonthreturnImagesandreturnRelatedQuestionsremain disabled as their output is stored inadditional_kwargsand not yet handled by Flowise's response pipeline.Why no backend changes
The LangChain
PerplexityChatInputinterface already declares both fields, andinvocationParams()already maps them to the Perplexity API (search_domain_filter,search_recency_filter). Theinit()function in Flowise also already reads and passes them. This PR only restores the UI exposure.