mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 17:05:56 +03:00
[PR #363] [MERGED] Implement evidence-backed semantic gap detection and onboarding theme extraction #668
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#668
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AJaySi/ALwrity/pull/363
Author: @AJaySi
Created: 3/2/2026
Status: ✅ Merged
Merged: 3/2/2026
Merged by: @AJaySi
Base:
main← Head:codex/implement-find_semantic_gaps-method📝 Commits (1)
cd9ffb5Implement evidence-based semantic gap detection for strategy agents📊 Changes
3 files changed (+226 additions, -107 deletions)
View changed files
📝
backend/services/intelligence/agents/specialized_agents.py(+82 -38)📝
backend/services/intelligence/sif_agents.py(+82 -31)📝
backend/services/sif_onboarding_service.py(+62 -38)📄 Description
Motivation
Description
find_semantic_gapsinStrategyArchitectAgentfor bothbackend/services/intelligence/sif_agents.pyandbackend/services/intelligence/agents/specialized_agents.pyto: split indexed docs into user vs competitor sets using metadata typing, derive topic densities, computecoverage_delta, deriveconfidenceand a combinedseverity_score, assignpriority, and return evidence-backed items includingcompetitor_supporting_docs,user_supporting_docs,competitor_sample_titles, andcoverage_delta._infer_document_role,_extract_topics_from_document, and_map_topic_to_doc_titlesto standardize role inference and topic normalization from metadata and lightweight title tokenization.backend/services/sif_onboarding_service.pyto use real indexed outputs by fetching indexed documents, buildingcompetitor_doc_ids, passing them intofind_semantic_gaps, and replacing the previous statictheme_queriesapproach withindexed_metadata-based theme analysis that returnstop_themes, classification, and evidence.List[Any]) and improved gap ranking to prioritizeseverity_score(combining coverage delta and confidence) and include supporting-document counts in evidence.Testing
python -m py_compile backend/services/intelligence/sif_agents.py backend/services/intelligence/agents/specialized_agents.py backend/services/sif_onboarding_service.py, which completed successfully (no syntax errors).rg) to confirm removal of static theme literals and thatfind_semantic_gapsis invoked with realcompetitor_doc_ids; checks succeeded.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.