update #16
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
name = "YiemAgent"
|
name = "YiemAgent"
|
||||||
uuid = "e012c34b-7f78-48e0-971c-7abb83b6f0a2"
|
uuid = "e012c34b-7f78-48e0-971c-7abb83b6f0a2"
|
||||||
version = "0.6.0"
|
version = "0.6.1"
|
||||||
authors = ["narawat lamaiin <narawat@outlook.com>"]
|
authors = ["narawat lamaiin <narawat@outlook.com>"]
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|||||||
+5
-5
@@ -519,11 +519,11 @@ function generatesql(a::T, searchterm::String,
|
|||||||
# 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)
|
||||||
|
|
||||||
similarSQL_ = sql !== nothing ? sql : "None"
|
# similarSQL_ = sql !== nothing ? sql : "None"
|
||||||
# if sql is really close, just use it
|
# # if sql is really close, just use it
|
||||||
if similarSQL_ != "None" && distance <= 0.1
|
# if similarSQL_ != "None" && distance <= 0.1
|
||||||
return similarSQL_
|
# return similarSQL_
|
||||||
end
|
# end
|
||||||
|
|
||||||
#CHANGE use find_related_tables_for_user_question and inject only related table schema instead
|
#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.
|
# of hard code table schema. CPU embedding is too slow. use embedding service on GPU.
|
||||||
|
|||||||
Reference in New Issue
Block a user