Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 36fab14

Browse files
committed
small fixes
1 parent 210d6c4 commit 36fab14

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/jobs/regular/generate_inferred_concepts.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class GenerateInferredConcepts < ::Jobs::Base
1414
def execute(args = {})
1515
return if args[:item_ids].blank? || args[:item_type].blank?
1616

17-
unless %w[topics posts].include?(args[:item_type])
17+
if %w[topics posts].exclude?(args[:item_type])
1818
Rails.logger.error("Invalid item_type for GenerateInferredConcepts: #{args[:item_type]}")
1919
return
2020
end

lib/personas/concept_matcher.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ def system_prompt
88
You are an advanced concept matching system that determines which concepts from a provided list are relevant to a piece of content.
99
Your job is to analyze the content and determine which concepts from the list apply to it.
1010
11-
#{concepts_text}
1211
Guidelines for matching concepts:
1312
- Only select concepts that are clearly relevant to the content
1413
- The content must substantially discuss or relate to the concept
@@ -20,7 +19,6 @@ def system_prompt
2019
- If no concepts from the list match the content, return an empty array
2120
2221
The list of available concepts is:
23-
2422
{inferred_concepts}
2523
2624
Format your response as a JSON object with a single key named "matching_concepts", which has an array of concept strings from the provided list.

0 commit comments

Comments
 (0)