This website requires JavaScript.
Explore
Help
Sign In
element.chen
/
ai-g3sb-backman2.0
Watch
1
Star
0
Fork
0
Code
Pull Requests
Activity
Files
be15b512a42909f6496bdfc4e8b24a7c9bdd6334
ai-g3sb-backman2.0
/
backend
/
utils
/
__pycache__
/
dialog_context.cpython-312.pyc
T
54 lines
7.2 KiB
Plaintext
Raw
Normal View
History
Unescape
Escape
Enhance dialog context handling for Text2SQL queries by integrating session history. Introduce new methods for summarizing previous assistant messages and determining if the last interaction was a data query. Update environment configuration for embedding options and improve error handling in SQL generation. Add user-facing delivery messages for successful SQL execution. This update supports more coherent follow-up questions and improves user experience in conversational interactions.
2026-04-14 18:02:12 +08:00
Ë
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.
2026-04-15 17:33:07 +08:00