Skip to content

how to use RunnableParallel #447

Answered by eyurtsev
shaojun asked this question in Q&A
Feb 6, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Why not use the batch API?


Bug in the code:

add_routes(
    app,
    RunnableLambda(MultiExpertsSummarizeService.process).with_types(
        input_type=MultiExpertsSummarizeRequest) | RunnableParallel(),
    path="/services/MultiExpertsSummarize",
)

Should be:

add_routes(
app,
RunnableLambda(MultiExpertsSummarizeService.process).with_types(
input_type=MultiExpertsSummarizeRequest),
path="/services/MultiExpertsSummarize",
)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@eyurtsev
Comment options

@shaojun
Comment options

Answer selected by eyurtsev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #443 on February 06, 2024 15:51.