You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
- Add `think: False` and `num_ctx: 8192` to Ollama payload: Qwen3.5 extended thinking mode generated 1300+ internal reasoning tokens before each response, adding 30-60s latency per LLM call. Disabling it reduces parse time from 600s timeout to ~13s. - Rewrite OllamaClient to use sync httpx.Client inside asyncio.to_thread(): Async httpx inside an active asyncpg SQLAlchemy session context on Python 3.13 hung indefinitely. Synchronous httpx in a thread pool completely isolates Ollama I/O from the asyncio event loop. - Fix filing_poller to set issuer_id/symbol_id on Document records: Missing FK caused feature_builder to reject all events with event_no_symbol warning. Now looks up IssuerMaster/SymbolMaster by ticker before creating Document rows. - Update test_llm_client to mock _sync_call instead of _client attr. - Raise ollama_timeout default to 600s for large document processing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
5 months ago | |
|---|---|---|
| .. | ||
| __init__.py | 5 months ago | |
| config.py | 5 months ago | |
| file_store.py | 5 months ago | |
| ids.py | 5 months ago | |
| logging.py | 5 months ago | |
| retries.py | 5 months ago | |
| time_utils.py | 5 months ago | |