forked from zovos/vk_hackathon
- 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 | ||
| aggregation.py | ||
| config.py | ||
| Dockerfile | ||
| main.py | ||
| Makefile | ||
| query_builder.py | ||
| requirements.txt | ||
| rerank.py | ||
| retrieval.py | ||
| schemas.py | ||