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 | |
| test_config.py | 5 months ago | |
| test_db_models.py | 5 months ago | |
| test_event_features.py | 5 months ago | |
| test_file_store.py | 5 months ago | |
| test_financial_features.py | 5 months ago | |
| test_fred_service.py | 5 months ago | |
| test_ids.py | 5 months ago | |
| test_labeler.py | 5 months ago | |
| test_llm_cache.py | 5 months ago | |
| test_llm_client.py | 5 months ago | |
| test_llm_parser_stub.py | 5 months ago | |
| test_logging.py | 5 months ago | |
| test_market_features.py | 5 months ago | |
| test_merger.py | 5 months ago | |
| test_oracle_client.py | 5 months ago | |
| test_retries.py | 5 months ago | |
| test_review_queue.py | 5 months ago | |
| test_rule_parser.py | 5 months ago | |
| test_schema_validator.py | 5 months ago | |
| test_snapshot_export.py | 5 months ago | |
| test_text_normalizer.py | 5 months ago | |
| test_time_utils.py | 5 months ago | |