@@ -15,7 +15,7 @@ def self.identify_concepts(content)
1515 . find { |p | p . id == SiteSetting . inferred_concepts_generate_persona . to_i }
1616 . new
1717
18- llm = LlmModel . find ( persona . class . default_llm_id )
18+ llm = LlmModel . find ( persona . default_llm_id )
1919 context =
2020 DiscourseAi ::Personas ::BotContext . new (
2121 messages : [ { type : :user , content : content } ] ,
@@ -79,7 +79,7 @@ def self.find_candidate_topics(
7979 # Exclude topics that already have concepts
8080 topics_with_concepts = <<~SQL
8181 SELECT DISTINCT topic_id
82- FROM topics_inferred_concepts
82+ FROM inferred_concepts_topics
8383 SQL
8484
8585 query = query . where ( "topics.id NOT IN (#{ topics_with_concepts } )" )
@@ -129,7 +129,7 @@ def self.find_candidate_posts(
129129 # Exclude posts that already have concepts
130130 posts_with_concepts = <<~SQL
131131 SELECT DISTINCT post_id
132- FROM posts_inferred_concepts
132+ FROM inferred_concepts_posts
133133 SQL
134134
135135 query = query . where ( "posts.id NOT IN (#{ posts_with_concepts } )" )
@@ -154,7 +154,7 @@ def self.deduplicate_concepts(concept_names)
154154 . find { |p | p . id == SiteSetting . inferred_concepts_deduplicate_persona . to_i }
155155 . new
156156
157- llm = LlmModel . find ( persona . class . default_llm_id )
157+ llm = LlmModel . find ( persona . default_llm_id )
158158
159159 # Create the input for the deduplicator
160160 input = { type : :user , content : concept_names . join ( ", " ) }
0 commit comments