Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Orchestrator schedule method #403

Merged
merged 5 commits into from
Aug 7, 2024

Conversation

sunnstix
Copy link
Contributor

@sunnstix sunnstix commented Aug 3, 2024

Description

Fixed edge condition for comps.ServiceOrchestrator where LLMParams provided in the Megaservice Gateway are ignored if a node is an independent node.

Independent nodes use the following snippet, which does not pass in the llm_parameters variable:

pending = {
asyncio.create_task(self.execute(session, node, initial_inputs, runtime_graph))
for node in self.ind_nodes()
}

All consequent dependent nodes use this snippet, which does pass in the llm_parameters variable:

pending.add(
asyncio.create_task(
self.execute(session, d_node, inputs, runtime_graph, llm_parameters)
)

Issues

#402

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Dependencies

N/A

Tests

Tested on modified version of tests/test_workflow_chatqna.sh using DocSum Gateway. Bug only affects megaservices with an LLM as an independent node.

@sunnstix sunnstix force-pushed the orchestrator-llmparam-fix branch from c9a3625 to 21293a6 Compare August 3, 2024 20:26
@sunnstix
Copy link
Contributor Author

sunnstix commented Aug 5, 2024

Failures are caused by dependency issues - see #397

@sunnstix sunnstix requested a review from lvliang-intel as a code owner August 5, 2024 06:24
Copy link

codecov bot commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
comps/cores/mega/orchestrator.py 93.89% <ø> (ø)

@lvliang-intel lvliang-intel requested a review from Spycsh August 7, 2024 07:07
@Spycsh Spycsh merged commit 76877c1 into opea-project:main Aug 7, 2024
9 checks passed
sharanshirodkar7 pushed a commit to predictionguard/pg-GenAIComps that referenced this pull request Aug 7, 2024
Signed-off-by: Sanket Nayak <[email protected]>
Co-authored-by: Sanket Nayak <[email protected]>
Co-authored-by: lvliang-intel <[email protected]>
Signed-off-by: sharanshirodkar7 <[email protected]>
yogeshmpandey pushed a commit to yogeshmpandey/GenAIComps that referenced this pull request Aug 9, 2024
Signed-off-by: Sanket Nayak <[email protected]>
Co-authored-by: Sanket Nayak <[email protected]>
Co-authored-by: lvliang-intel <[email protected]>
BaoHuiling pushed a commit to siddhivelankar23/GenAIComps that referenced this pull request Aug 15, 2024
Signed-off-by: Sanket Nayak <[email protected]>
Co-authored-by: Sanket Nayak <[email protected]>
Co-authored-by: lvliang-intel <[email protected]>
Signed-off-by: BaoHuiling <[email protected]>
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.

3 participants