update
This commit is contained in:
+4
-4
@@ -480,12 +480,12 @@ function generatesql(a::T, searchterm::String,
|
|||||||
errornote = ""
|
errornote = ""
|
||||||
# provide similar sql only for the first attempt
|
# provide similar sql only for the first attempt
|
||||||
sql, distance = a.context.similarSQLVectorDB(searchterm)
|
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"
|
similarSQL_ = sql !== nothing ? sql : "None"
|
||||||
|
# if sql is really close, just use it
|
||||||
|
if similarSQL_ != "None" && distance <= 0.1
|
||||||
|
return similarSQL_
|
||||||
|
end
|
||||||
|
|
||||||
context =
|
context =
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user