Skip to content

Commit

Permalink
don't force chain type, set default
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Oct 26, 2023
1 parent dff6961 commit f89a615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/DocSummary.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class DocSummaryPage(BasePage):
"quality": 1.0,
"avoid_repetition": True,
"selected_model": LargeLanguageModels.text_davinci_003.name,
"chain_type": CombineDocumentsChains.map_reduce.name,
}

class RequestModel(BaseModel):
Expand Down Expand Up @@ -157,7 +158,6 @@ def related_workflows(self) -> list:

def run(self, state: dict) -> typing.Iterator[str | None]:
request: DocSummaryPage.RequestModel = self.RequestModel.parse_obj(state)
request.chain_type = CombineDocumentsChains.map_reduce.name

yield "Downloading documents..."

Expand Down

0 comments on commit f89a615

Please sign in to comment.