feat: Add delay to multi turn conversations#452
Conversation
Try out this PRQuick install: pip install --upgrade --force-reinstall git+https://github.com/ai-dynamo/aiperf.git@dbermudez/aip-568-session-delay-not-added-in-multi-turn-scenariosRecommended with virtual environment (using uv): uv venv --python 3.12 && source .venv/bin/activate
uv pip install --upgrade --force-reinstall git+https://github.com/ai-dynamo/aiperf.git@dbermudez/aip-568-session-delay-not-added-in-multi-turn-scenarios |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
WalkthroughThis pull request implements multi-turn conversation delays to simulate realistic reading and thinking time between turns. It adds configuration parameters (mean, stddev, ratio), applies conditional logic to prevent zero/negative delays, and integrates delay application across the dataset composer and worker execution layers with proper async handling and trace logging. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📥 CommitsReviewing files that changed from the base of the PR and between e5194fa and 06cf1852f7554d58abdb2f071c49784e8318ca35. 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code graph analysis (2)tests/composers/test_synthetic_composer.py (4)
src/aiperf/workers/worker.py (2)
🪛 markdownlint-cli2 (0.18.1)docs/tutorials/multi-turn.md370-370: Emphasis used instead of a heading (MD036, no-emphasis-as-heading) ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
🔇 Additional comments (8)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
06cf185 to
cacea00
Compare
ajcasagrande
left a comment
There was a problem hiding this comment.
Approving, but recommend considering addressing nit: MILLIS_PER_SECOND before merge.
Signed-off-by: Elias Bermudez <dbermudez@nvidia.com>
385d005 to
357c66f
Compare
Signed-off-by: Elias Bermudez <dbermudez@nvidia.com> Signed-off-by: Harrison King Saturley-Hall <hsaturleyhal@nvidia.com>
Signed-off-by: Elias Bermudez <dbermudez@nvidia.com> Signed-off-by: vinhn <vinhn@nvidia.com>
Summary by CodeRabbit
Release Notes
New Features
Documentation
Tests