- index: lifespan preloads BM25 model so first /sparse_embedding request doesn't pay cold-start cost (~1-2s per worker) - search: same BM25 preload + httpx timeout=30s + connection limits to avoid hanging on slow external APIs - search: asyncio.to_thread(fn, arg) instead of lambda wrapper Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| chunking.py | ||
| cleaning.py | ||
| Dockerfile | ||
| index_schemas.py | ||
| main.py | ||
| Makefile | ||
| rendering.py | ||
| requirements.txt | ||
| sparse.py | ||