diff --git a/enterprise/app/services/captain/llm/conversation_faq_service.rb b/enterprise/app/services/captain/llm/conversation_faq_service.rb index e6bb15891..db418f3f8 100644 --- a/enterprise/app/services/captain/llm/conversation_faq_service.rb +++ b/enterprise/app/services/captain/llm/conversation_faq_service.rb @@ -97,7 +97,7 @@ class Captain::Llm::ConversationFaqService < Llm::BaseAiService return [] unless relation.exists? ApplicationRecord.transaction do - ApplicationRecord.connection.execute("SET LOCAL ivfflat.iterative_scan = 'relaxed_order'") + ApplicationRecord.connection.execute('SET LOCAL enable_indexscan = off') relation .nearest_neighbors(:embedding, embedding, distance: 'cosine') .limit(MATCH_LIMIT)