Skip to content

Commit

Permalink
Update filter for getting embeddings that are not generated from daem…
Browse files Browse the repository at this point in the history
…on jobs
  • Loading branch information
var77 committed May 28, 2024
1 parent 22af626 commit fd9199e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/lantern/lantern_doctor_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def check_daemon_embedding_jobs(db, query_user)

lantern_server = doctor.resource.representative_server
failed = jobs.any? do |job|
res = lantern_server.run_query("SELECT (SELECT COUNT(*) FROM \"#{job[:schema]}\".\"#{job[:table]}\" WHERE \"#{job[:src_column]}\" IS NOT NULL AND \"#{job[:src_column]}\" != '' AND \"#{job[:dst_column]}\" IS NULL) > 1000", db: db, user: query_user).strip
res = lantern_server.run_query("SELECT (SELECT COUNT(*) FROM \"#{job[:schema]}\".\"#{job[:table]}\" WHERE \"#{job[:src_column]}\" IS NOT NULL AND \"#{job[:src_column]}\" != '' AND \"#{job[:src_column]}\" != 'Error: Summary failed (llm)' AND \"#{job[:dst_column]}\" IS NULL) > 1000", db: db, user: query_user).strip
res == "t"
end

Expand Down

0 comments on commit fd9199e

Please sign in to comment.