-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
Description
Search before asking
- I had searched in the issues and found no similar feature requirement.
Description
在使用char data功能时,思考内容中,只体现了表结构,没有表的注释,这样会导致生成的SQL语句不准确,表字段含义全靠大模型根据字段名来猜,实际表中已经有了注释,以下是部分思考内容:
首先,理解用户问题:用户想知道范文玲在2025年3月22号给谁打过电话。这涉及到查询电话记录。
查看提供的表结构定义:
- 有一个表叫
call_records,结构是:('call_records(id,call_name,call_phone_number,call_or_answer_time,call_duration,call_or_answer_type,main_id)',) - 这个表包含
call_name(可能是呼叫人的名字)、call_phone_number、call_or_answer_time(呼叫或接听时间)、call_duration(通话时长)、call_or_answer_type(呼叫或接听类型)、main_id(可能与其他表关联)。
Use case
希望在思考过程中,表结构中增加表字段的注释,这样才会准确的生成SQL语句
Related issues
如果思考开始没有获取到表注释,思考过程中,使用特定表时,查询表注释,这样能更准确
Feature Priority
High
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Reactions are currently unavailable