feat(ca): Finalize v5 pipeline - Hybrid Matrix, CoT Enrichment & User Repair Mode

This commit is contained in:
2026-01-12 15:29:43 +00:00
parent 99b14a8ab0
commit 3dccfd2d2c
15 changed files with 547 additions and 1224 deletions

View File

@@ -4,15 +4,15 @@ import requests
import sys
# Configuration
JSON_FILE = 'analysis_robo-planet.de.json'
JSON_FILE = 'analysis_robo-planet.de-2.json'
TOKEN_FILE = 'notion_token.txt'
PARENT_PAGE_ID = "2e088f42-8544-8024-8289-deb383da3818"
# Database Titles
DB_TITLE_HUB = "📦 Competitive Radar (Companies) v4"
DB_TITLE_LANDMINES = "💣 Competitive Radar (Landmines) v4"
DB_TITLE_REFS = "🏆 Competitive Radar (References) v4"
DB_TITLE_PRODUCTS = "🤖 Competitive Radar (Products) v4"
DB_TITLE_HUB = "📦 Competitive Radar (Companies) v5"
DB_TITLE_LANDMINES = "💣 Competitive Radar (Landmines) v5"
DB_TITLE_REFS = "🏆 Competitive Radar (References) v5"
DB_TITLE_PRODUCTS = "🤖 Competitive Radar (Products) v5"
def load_json_data(filepath):
with open(filepath, 'r') as f:
@@ -80,7 +80,7 @@ def main():
for prod in analysis.get('portfolio', []):
p_props = {
"Product": {"title": [{"text": {"content": prod['product'][:100]}}]},
"Category": {"select": {"name": prod.get('category', 'Other')}},
"Category": {"select": {"name": prod.get('purpose', 'Other')[:100]}},
"Related Competitor": {"relation": [{"id": pid}]}
}
create_page(token, prod_id, p_props)