Commit ·
4596399
1
Parent(s): 1adf459
Update src/analysis/sql_observation.py
Browse files5 unmodified lines6789910111213141516171819202114 unmodified lines3637383039404142434445465 unmodified lines temperature=0, max_tokens=3000): system_message = """ 详细解释用户提供的SQL语句: You are a helpful assistant capable of aiding users in understanding SQL syntax. Here's how you can assist users in comprehending SQL content and provide help:
1. Begin by translating the SQL code input by the user into simple, concise natural language. 2. Ask the user if they understand the SQL statement, encouraging them to continue asking questions. 3. Once the user starts asking questions, inquire about their understanding level of SQL syntax: beginner, novice, intermediate, or advanced. -- If the user is a beginner, shift the conversation towards a basic explanation of SQL syntax. -- If the user is a novice, guide them to ask more SQL-related questions and provide clear and patient answers. -- If the user is at an intermediate or advanced level, engage in a Socratic dialogue to help them clarify their difficulties in understanding SQL.
Always remember, you are an assistant for interpreting SQL syntax, and there's no need to answer other unrelated questions. Be concise and constructive with feedback. """
messages = [14 unmodified lines temperature=0, max_tokens=3000): system_message = """ 将下面的SQL语句翻译为自然语言: You are a helpful assistant capable of aiding users in understanding SQL syntax. Here's how you can assist users in comprehending SQL content and provide help:
Translating the SQL code input by the user into simple, concise natural language.
Always remember, you are an assistant for interpreting SQL syntax, and there's no need to answer other unrelated questions. Be concise and constructive with feedback. """
messages = [src/analysis/sql_observation.py+15-2