Skip to content

Commit db8e709

Browse files
unamedkrclaude
andcommitted
fix: server auto-loads quantumrag.yaml + language auto in yaml
Root cause: quantumrag.yaml had language="ko" hardcoded, and server didn't auto-load this file — used QuantumRAGConfig.default() instead. Fixes: - quantumrag.yaml: language "ko" → "auto" - Server auto-detects quantumrag.yaml / quantumrag-local.yaml in CWD - English questions now get English answers Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5d53db9 commit db8e709

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

datasets/run_qa_combined.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848
from quantumrag.core.engine import Engine
4949

5050
# --- Config ---
51-
QUERY_TIMEOUT = 90 # Allow post-correction pipeline to complete
52-
CONCURRENCY = 5 # Parallel queries
53-
INGEST_MODE = "fast" # Skip HyPE/preambles
54-
SAMPLE_PER_DATASET = 5 # Sample N questions per dataset for speed (0 = all)
51+
QUERY_TIMEOUT = 120 # Extended for full-mode queries
52+
CONCURRENCY = 3 # Reduce to avoid Gemini rate limits
53+
INGEST_MODE = "full" # Full Triple Index (Original + HyPE + BM25)
54+
SAMPLE_PER_DATASET = 0 # Full 105q baseline
5555
NOISE_DOCS = 50 # Noise docs for scale testing. Uses local embeddings, no API cost.
5656

5757
# --- Collect all datasets ---

quantumrag/api/server.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,15 @@ def create_app(config_path: str | None = None) -> FastAPI:
135135
from quantumrag.core.config import QuantumRAGConfig
136136
from quantumrag.core.engine import Engine
137137

138-
# Load configuration
138+
# Load configuration — auto-detect quantumrag.yaml in current directory
139+
if not config_path:
140+
from pathlib import Path
141+
142+
for candidate in ["quantumrag.yaml", "quantumrag-local.yaml"]:
143+
if Path(candidate).exists():
144+
config_path = candidate
145+
break
146+
139147
if config_path:
140148
cfg = QuantumRAGConfig.from_yaml(config_path)
141149
else:

0 commit comments

Comments
 (0)