mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 08:55:58 +03:00
[PR #358] [MERGED] Implement evidence-based semantic gap analysis across SIF strategy flows #325
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#325
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/358
Author: @AJaySi
Created: 3/1/2026
Status: ✅ Merged
Merged: 3/1/2026
Merged by: @AJaySi
Base:
main← Head:codex/implement-find_semantic_gaps-in-agents📝 Commits (1)
77088bfImplement evidence-driven semantic gap detection📊 Changes
4 files changed (+413 additions, -78 deletions)
View changed files
📝
backend/services/intelligence/agents/specialized_agents.py(+183 -12)📝
backend/services/intelligence/sif_agents.py(+183 -11)📝
backend/services/intelligence/sif_integration.py(+26 -50)📝
backend/services/sif_onboarding_service.py(+21 -5)📄 Description
Motivation
user_idcontext for index-aware operations.Description
find_semantic_gapsinStrategyArchitectAgent(bothsif_agents.pyandagents/specialized_agents.py) to pull documents from the txtai index, split user vs competitor docs by metadata, extract topic densities, compute density gaps, and produce ranked gap results withtopic,priority,reason,confidence,topic_density, andevidencefields._fetch_index_documents,_normalize_metadata,_extract_topic_density, and_sample_titles_for_topicto handle varied txtai row shapes and produce topic density scoring.backend/services/sif_onboarding_service.py) to initialize agents withuser_idand to include richer evidence and actionable phrasing in semantic-gap-based recommendations (action items +evidencepayloads).SIFIntegrationService(backend/services/intelligence/sif_integration.py) to consumeStrategyArchitectAgentoutputs, normalize fields for backward compatibility (e.g.current_coverage_score) and expose the richer evidence payload for dashboards and API consumers.Testing
python -m py_compile backend/services/intelligence/sif_agents.py backend/services/intelligence/agents/specialized_agents.py backend/services/sif_onboarding_service.py backend/services/intelligence/sif_integration.py, which completed successfully.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.