feat: add LLM Deep Research source provider (v0.5.0)
New data source that sends a configurable research prompt to a reasoning-capable model (Grok 4.1 Fast, DeepSeek-R1, etc.) to identify trending topics, content gaps, and emerging questions. Findings feed into the content analyzer alongside Reddit data, combining real-time community signals with deep knowledge-base research. New admin settings: Research Model picker, Research Prompt textarea, and LLM Deep Research toggle in Enabled Sources. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -147,12 +147,14 @@ class PRAutoBlogger_Content_Analyzer {
|
||||
$current_chars = 0;
|
||||
|
||||
foreach ( $items as $item ) {
|
||||
// LLM research findings have no subreddit; use a cleaner label.
|
||||
$source_label = 'llm_research' === $item['source_type']
|
||||
? sprintf( '[LLM Research] Relevance: %d', (int) $item['score'] )
|
||||
: sprintf( '[%s] r/%s | Score: %d | Comments: %d', $item['source_type'], $item['subreddit'] ?? 'unknown', (int) $item['score'], (int) $item['comment_count'] );
|
||||
|
||||
$entry = sprintf(
|
||||
"[%s] r/%s | Score: %d | Comments: %d\nTitle: %s\n%s\n---",
|
||||
$item['source_type'],
|
||||
$item['subreddit'] ?? 'unknown',
|
||||
(int) $item['score'],
|
||||
(int) $item['comment_count'],
|
||||
"%s\nTitle: %s\n%s\n---",
|
||||
$source_label,
|
||||
$item['title'] ?? '(comment)',
|
||||
mb_substr( $item['content'] ?? '', 0, 500 )
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user