This commit is contained in:
2026-07-12 11:14:30 +07:00
parent fdec34832d
commit cd6f6ef961
+4 -4
View File
@@ -480,12 +480,12 @@ function generatesql(a::T, searchterm::String,
errornote = ""
# provide similar sql only for the first attempt
sql, distance = a.context.similarSQLVectorDB(searchterm)
# if sql is really close, just use it
if sql !== nothing && 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
context =
"""