v0.5.0-tool_role #9

Merged
ton merged 4 commits from v0.5.0-tool_role into v0.5.0 2026-07-12 08:03:27 +00:00
Showing only changes of commit cd6f6ef961 - Show all commits
+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 =
"""