This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments