From 8402f0e36a5781e1a5451632d793fa181ec91230 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Mon, 16 Feb 2026 13:36:22 +0200 Subject: [PATCH] fix: Increase WildFiles RAG timeout from 5s to 15s Embedding generation on CPU (bge-m3) takes ~3s, plus network latency can exceed 5s causing silent failures and empty results. Co-Authored-By: Claude Opus 4.6 --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 27e9027..32b0c90 100644 --- a/bot.py +++ b/bot.py @@ -85,7 +85,7 @@ class DocumentRAG: if not self.enabled: return [] try: - async with httpx.AsyncClient(timeout=5.0) as client: + async with httpx.AsyncClient(timeout=15.0) as client: resp = await client.post( f"{self.base_url}/api/v1/rag/search", json={"query": query, "organization": self.org, "limit": top_k},