Skip to content

⚡ Bolt: concurrent LLM tool execution in retrieval pipelines#111

Closed
ishaanxgupta wants to merge 1 commit intomainfrom
bolt-optimize-pipeline-tool-calls-16229732312529966654
Closed

⚡ Bolt: concurrent LLM tool execution in retrieval pipelines#111
ishaanxgupta wants to merge 1 commit intomainfrom
bolt-optimize-pipeline-tool-calls-16229732312529966654

Conversation

@ishaanxgupta
Copy link
Copy Markdown
Member

💡 What: Refactored LLM tool execution logic in src/pipelines/code_retrieval.py and src/pipelines/retrieval.py to execute concurrently using asyncio.gather.
🎯 Why: Tool calls were executed sequentially within a loop. By executing them concurrently, the I/O-bound latency incurred when the LLM requested multiple search tools simultaneously is significantly reduced.
📊 Impact: Pipeline response time will be noticeably faster when resolving multi-tool query inputs, as wait times are now bounded by the single slowest search tool instead of the cumulative sum of all invoked search tools.
🔬 Measurement: Can be verified by observing the total llm_ms turnaround time across LLM tool call loops versus sequentially processing large search sweeps on multiple domains at the same time.


PR created automatically by Jules for task 16229732312529966654 started by @ishaanxgupta

Wrapped tool call execution in helper async functions and utilized
asyncio.gather to fetch tools concurrently. This reduces I/O bound
bottlenecks across the retrieval pipeline while preserving proper
aggregation and ordering of context messages.
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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.

1 participant