Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -381,14 +381,19 @@ 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 |
-
Please provide:
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 390 |
|
| 391 |
-
Format as a clear, actionable SEO report.
|
| 392 |
"""
|
| 393 |
|
| 394 |
response = await self.llm.ainvoke(prompt)
|
|
|
|
| 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 |
+
Please analyze the target keyword and provide an SEO content performance report, including the following:
|
| 385 |
+
|
| 386 |
+
1. Top-performing page for this keyword: Identify which page (ours or a competitor’s) currently ranks strongest and why.
|
| 387 |
+
2. Best-performing sections: Highlight which sections or topics within that page perform best for the keyword.
|
| 388 |
+
3. What our client’s page does well: Summarize the strengths of our client’s page compared to competitors.
|
| 389 |
+
4. What our client’s page is missing: Identify gaps in the client’s content compared to top competitors — including missing sections, underdeveloped concepts, or thin content.
|
| 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.
|
| 392 |
+
• Thin or underdeveloped areas that need expansion.
|
| 393 |
+
• Any other recommendations to improve SEO and user experience.
|
| 394 |
+
|
| 395 |
+
Output format: A clear, structured SEO report with actionable insights.
|
| 396 |
|
|
|
|
| 397 |
"""
|
| 398 |
|
| 399 |
response = await self.llm.ainvoke(prompt)
|