how to train code value #583
dufeng1010
started this conversation in
General
Replies: 2 comments 2 replies
-
There are several possibilities. You can try something like: vn.train(documentation="""pay_type's column value '00' as 'cash' pay, '01' as 'wechat', '02' as 'ali'.""") If there's some reference table for vn.train(question="Calculate the amount of cash payments", sql="SELECT ... FROM ... WHERE pay_type_description = 'Cash'") The second is the preferred method especially if you allow for introspection queries, which would perform a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
for example, i have a order_pay table. it's ddl is below:
create table order_pay(
order_id varchar(100) comment 'order_id',
pay_amount decimal(18,2) coment 'pay_amount',
pay_type varchar(10) comment 'pay_type',
primary key(order_id)
) comment 'order_pay'
pay_type's column value '00' as 'cash' pay, '01' as 'wechat', '02' as 'ali'.
how do i train data and ddl。it can answer below question.
"Calculate the amount of cash payments"
Beta Was this translation helpful? Give feedback.
All reactions