File size: 382 Bytes
bb4e28f
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from tools.autorag_tool import query_equity_kb
from llm.groq_llm import call_groq_mistral

def monitor_regulatory_changes(text: str) -> str:
    context = query_equity_kb(text)
    prompt = (
        f"The following text contains a regulatory update:\n{context}\n\n"
        f"Summarize the key implications for investors and compliance."
    )
    return call_groq_mistral(prompt)