This commit is contained in:
2026-07-15 12:14:32 +07:00
parent 45e8ded111
commit e5b19dd268
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -519,11 +519,11 @@ function generatesql(a::T, searchterm::String,
# provide similar sql only for the first attempt
sql, distance = a.context.similarSQLVectorDB(searchterm)
similarSQL_ = sql !== nothing ? sql : "None"
# if sql is really close, just use it
if similarSQL_ != "None" && distance <= 0.1
return similarSQL_
end
# similarSQL_ = sql !== nothing ? sql : "None"
# # if sql is really close, just use it
# if similarSQL_ != "None" && distance <= 0.1
# return similarSQL_
# end
#CHANGE use find_related_tables_for_user_question and inject only related table schema instead
# of hard code table schema. CPU embedding is too slow. use embedding service on GPU.