FIX: Load categories for AI search results (#614)

Categories should be preloaded when "lazy load categories" is enabled.
This commit is contained in:
Bianca Nenciu 2024-05-13 16:47:37 +03:00 committed by GitHub
parent 0069256efd
commit 5861418e9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ module DiscourseAi
term: query,
search_context: guardian,
use_pg_headlines_for_excerpt: false,
can_lazy_load_categories: guardian.can_lazy_load_categories?,
)
semantic_search = DiscourseAi::Embeddings::SemanticSearch.new(guardian)