Update app.py
Browse files
app.py
CHANGED
|
@@ -381,18 +381,27 @@ class SEOContentAnalyzer:
|
|
| 381 |
OVERALL TOP PERFORMING CONTENT:
|
| 382 |
{chr(10).join([f"Score {c.similarity_score:.4f} ({c.page_type}): {c.content[:150]}..." for c in top_chunks])}
|
| 383 |
|
| 384 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 385 |
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
5. Actionable recommendations: Provide specific, prioritized suggestions to improve the client’s content relevance. These should include:
|
| 391 |
-
• Missing sections or topics present in competitor content. - Reference higher performing chunks from competitors ' URLs (Mentions chunsk, scores, and URLs).
|
| 392 |
-
• Thin or underdeveloped areas that need expansion. - Reference higher performing chunks from competitors ' URLs (Mentions chunsk, scores, and URLs).
|
| 393 |
-
•
|
| 394 |
|
| 395 |
-
Output format:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 396 |
|
| 397 |
"""
|
| 398 |
|
|
|
|
| 381 |
OVERALL TOP PERFORMING CONTENT:
|
| 382 |
{chr(10).join([f"Score {c.similarity_score:.4f} ({c.page_type}): {c.content[:150]}..." for c in top_chunks])}
|
| 383 |
|
| 384 |
+
1. Top-performing page for this keyword: Identify the page (ours or a competitor’s) that ranks strongest, and explain why it performs well.
|
| 385 |
+
2. Best-performing sections of content: Highlight which sections or topics on the strongest page perform best and why.
|
| 386 |
+
3. What our client’s page does well: Summarize the client page’s strengths compared to competitors.
|
| 387 |
+
4. What our client’s page is missing: Identify specific gaps in the client’s content compared to competitors — including missing sections, thin areas, or underdeveloped concepts.
|
| 388 |
+
5. Specific, actionable recommendations:
|
| 389 |
+
Break this section into clearly labeled subcategories with bullet points. Examples of subcategories include (but are not limited to):
|
| 390 |
+
• Content Expansion: Missing sections, new topics, or deeper explanations.
|
| 391 |
+
• Content Enhancement: Improvements to clarity, examples, visuals, or formatting.
|
| 392 |
+
• SEO Optimization: Keyword usage, headers, meta tags, etc.
|
| 393 |
|
| 394 |
+
Each recommendation should include:
|
| 395 |
+
• A clear title.
|
| 396 |
+
• A brief explanation of why it matters.
|
| 397 |
+
• A reference to competitor content that demonstrates the point.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 398 |
|
| 399 |
+
Output format:
|
| 400 |
+
• Use headings and bullet points for clarity.
|
| 401 |
+
• Prioritize recommendations in order of impact.
|
| 402 |
+
• Make the recommendations specific and actionable, not just generic advice.
|
| 403 |
+
|
| 404 |
+
The goal is to help our client improve content relevance, depth, and authority to rank higher for the target keyword.
|
| 405 |
|
| 406 |
"""
|
| 407 |
|