update #16
+1
-1
@@ -1,6 +1,6 @@
|
||||
name = "YiemAgent"
|
||||
uuid = "e012c34b-7f78-48e0-971c-7abb83b6f0a2"
|
||||
version = "0.6.0"
|
||||
version = "0.6.1"
|
||||
authors = ["narawat lamaiin <narawat@outlook.com>"]
|
||||
|
||||
[deps]
|
||||
|
||||
+5
-5
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user