Merged
Conversation
Contributor
Greptile SummaryAdded multilingual support to the deep research feature by instructing the LLM to respond in the user's language at each stage of the research workflow.
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Orchestrator
participant ResearchAgent
participant WebSearch
participant LLM
User->>Orchestrator: Submit query (any language)
Orchestrator->>LLM: Generate clarification questions
Note over LLM: "Respond in the user's language"
LLM-->>User: Questions in user's language
User->>Orchestrator: Provide answers
Orchestrator->>LLM: Generate research plan
Note over LLM: "Respond in the user's language"
LLM-->>Orchestrator: Research plan steps (user's language)
loop For each research step
Orchestrator->>LLM: Create research task
Note over LLM: "Research task should be in user's language"
LLM->>ResearchAgent: Research task (user's language)
ResearchAgent->>WebSearch: Execute web searches
Note over WebSearch: Normalize queries, strip whitespace
WebSearch-->>ResearchAgent: Search results
ResearchAgent->>LLM: Generate report from results
Note over LLM: "Write report in same language as task"
LLM-->>ResearchAgent: Report (user's language)
ResearchAgent-->>Orchestrator: Research findings
end
Orchestrator->>LLM: Generate final report
Note over LLM: "Respond in the user's language"
LLM-->>User: Final report (user's language)
|
rohoswagger
pushed a commit
that referenced
this pull request
Jan 19, 2026
jessicasingh7
pushed a commit
that referenced
this pull request
Jan 21, 2026
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.
Description
Tune it for queries not in English
How Has This Been Tested?
Works for sure
Additional Options
Summary by cubic
Enable multilingual Deep Research so clarifications, plans, tasks, and reports respond in the user's language. Adds query validation and loop safeguards for more reliable runs.
New Features
Bug Fixes
Written for commit b9a1b43. Summary will update on new commits.