Implement follow-up detection in dialog context to prevent context pollution in multi-topic conversations. Introduce is_likely_follow_up function to determine when to inject session history based on user input. Adjust _load_session_text2sql_context to conditionally include context based on follow-up status, enhancing SQL generation accuracy. Update relevant API endpoints to pass user text for improved context handling.

This commit is contained in:
陈辅元
2026-04-15 17:33:07 +08:00
parent a55fd18915
commit 85ad31348e
8 changed files with 103 additions and 3 deletions
View File