From 3fc461e1b12c86832d4278ef384ec300fffb5f79 Mon Sep 17 00:00:00 2001 From: Yiorgis Gozadinos Date: Fri, 19 Sep 2025 16:54:06 +0300 Subject: [PATCH] Set default concurrency to 1 --- src/haiku/rag/app.py | 2 +- src/haiku/rag/cli.py | 2 +- src/haiku/rag/research/state.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/haiku/rag/app.py b/src/haiku/rag/app.py index c4988612..73e46392 100644 --- a/src/haiku/rag/app.py +++ b/src/haiku/rag/app.py @@ -90,7 +90,7 @@ class HaikuRAGApp: question: str, max_iterations: int = 3, confidence_threshold: float = 0.8, - max_concurrency: int = 3, + max_concurrency: int = 1, verbose: bool = False, ): """Run research via the pydantic-graph pipeline (default).""" diff --git a/src/haiku/rag/cli.py b/src/haiku/rag/cli.py index c1073e9b..45814204 100644 --- a/src/haiku/rag/cli.py +++ b/src/haiku/rag/cli.py @@ -256,7 +256,7 @@ def research( help="Minimum confidence (0-1) to stop", ), max_concurrency: int = typer.Option( - 3, + 1, "--max-concurrency", help="Max concurrent searches per iteration (planned)", ), diff --git a/src/haiku/rag/research/state.py b/src/haiku/rag/research/state.py index 6085e871..c153b4ca 100644 --- a/src/haiku/rag/research/state.py +++ b/src/haiku/rag/research/state.py @@ -20,6 +20,6 @@ class ResearchState: sub_questions: list[str] = field(default_factory=list) iterations: int = 0 max_iterations: int = 3 - max_concurrency: int = 3 + max_concurrency: int = 1 confidence_threshold: float = 0.8 last_eval: EvaluationResult | None = None