Update app.py
Browse files
app.py
CHANGED
|
@@ -381,27 +381,29 @@ 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 |
-
1. Top-performing page for this keyword: Identify the page (ours or a competitor’s)
|
| 385 |
-
2. Best-performing sections of content: Highlight
|
| 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
|
| 388 |
5. Specific, actionable recommendations:
|
| 389 |
-
Break this section into clearly labeled subcategories
|
| 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 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
|
|
|
|
|
|
|
|
|
| 398 |
|
| 399 |
Output format:
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
|
| 404 |
-
The goal is to help
|
| 405 |
|
| 406 |
"""
|
| 407 |
|
|
|
|
| 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 strongest-ranking page (ours or a competitor’s), including its URL and why it performs well.
|
| 385 |
+
2. Best-performing sections of content: Highlight the specific sections or content chunks (with text snippets and scores) that perform best for the keyword.
|
| 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 gaps or underdeveloped areas in the client’s content compared to competitors.
|
| 388 |
5. Specific, actionable recommendations:
|
| 389 |
+
Break this section into clearly labeled subcategories, such as:
|
| 390 |
• Content Expansion: Missing sections, new topics, or deeper explanations.
|
| 391 |
• Content Enhancement: Improvements to clarity, examples, visuals, or formatting.
|
|
|
|
| 392 |
|
| 393 |
+
For each recommendation, include:
|
| 394 |
+
• A clear title.
|
| 395 |
+
• A brief explanation of why it matters.
|
| 396 |
+
• A reference to the competitor content that demonstrates the point, including:
|
| 397 |
+
• URL
|
| 398 |
+
• Score
|
| 399 |
+
• Content chunk or snippet
|
| 400 |
|
| 401 |
Output format:
|
| 402 |
+
• Use clear section headings and bullet points for readability.
|
| 403 |
+
• Include competitor references (URL, score, snippet) wherever applicable to support recommendations.
|
| 404 |
+
• Focus only on content-related improvements, not general SEO optimizations or monitoring advice.
|
| 405 |
|
| 406 |
+
The goal is to help the client improve content relevance, depth, and authority for the target keyword — grounded in the analysis of vector embeddings and competitive content.
|
| 407 |
|
| 408 |
"""
|
| 409 |
|