mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
Follow-up questions like 'how does this compare to inflation?', 'is that good?', 'what does this mean?' were NOT being detected as context_followup because the old check only had 8 hardcoded phrases (e.g. 'how does that compare' but not 'how does this compare'). This caused every follow-up to fall through to 'performance', call portfolio_analysis again, and return the same portfolio summary regardless of what the user actually asked. Added a broader _broad_followup_phrases list (35 patterns) covering: - 'how does this/that/it compare' - 'what does this/that mean' - 'is that good/bad/normal/high/low' - 'compared to inflation/the market' - 'why is that', 'break that down', etc. Confirmed with runtime logs: old_phrase_matched=false for the follow-up, broad_phrase_matched=true, tools_used=[] (correct). Made-with: Cursorpull/6453/head
1 changed files with 70 additions and 1 deletions
Loading…
Reference in new issue