Set default concurrency to 1
This commit is contained in:
parent
459004d3ad
commit
3fc461e1b1
3 changed files with 3 additions and 3 deletions
|
|
@ -90,7 +90,7 @@ class HaikuRAGApp:
|
||||||
question: str,
|
question: str,
|
||||||
max_iterations: int = 3,
|
max_iterations: int = 3,
|
||||||
confidence_threshold: float = 0.8,
|
confidence_threshold: float = 0.8,
|
||||||
max_concurrency: int = 3,
|
max_concurrency: int = 1,
|
||||||
verbose: bool = False,
|
verbose: bool = False,
|
||||||
):
|
):
|
||||||
"""Run research via the pydantic-graph pipeline (default)."""
|
"""Run research via the pydantic-graph pipeline (default)."""
|
||||||
|
|
|
||||||
|
|
@ -256,7 +256,7 @@ def research(
|
||||||
help="Minimum confidence (0-1) to stop",
|
help="Minimum confidence (0-1) to stop",
|
||||||
),
|
),
|
||||||
max_concurrency: int = typer.Option(
|
max_concurrency: int = typer.Option(
|
||||||
3,
|
1,
|
||||||
"--max-concurrency",
|
"--max-concurrency",
|
||||||
help="Max concurrent searches per iteration (planned)",
|
help="Max concurrent searches per iteration (planned)",
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,6 @@ class ResearchState:
|
||||||
sub_questions: list[str] = field(default_factory=list)
|
sub_questions: list[str] = field(default_factory=list)
|
||||||
iterations: int = 0
|
iterations: int = 0
|
||||||
max_iterations: int = 3
|
max_iterations: int = 3
|
||||||
max_concurrency: int = 3
|
max_concurrency: int = 1
|
||||||
confidence_threshold: float = 0.8
|
confidence_threshold: float = 0.8
|
||||||
last_eval: EvaluationResult | None = None
|
last_eval: EvaluationResult | None = None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue