phase 17: pass all tracked tickers to extractor, soften prompt for macro-to-company relevance
This commit is contained in:
@@ -88,10 +88,12 @@ async def main() -> None:
|
||||
company_id_map = await _build_company_id_map(pool)
|
||||
|
||||
try:
|
||||
# Pass all tracked tickers so the model can identify any mentioned companies
|
||||
all_tickers = list(company_id_map.keys()) if company_id_map else ([ticker] if ticker else None)
|
||||
extraction_response = await ollama.extract(
|
||||
text,
|
||||
document_id=document_id,
|
||||
known_tickers=[ticker] if ticker else None,
|
||||
known_tickers=all_tickers,
|
||||
)
|
||||
result = await persist_extraction(
|
||||
pool=pool,
|
||||
|
||||
Reference in New Issue
Block a user