DEBUG: """ prompt = TOPICPROMPT.format(disccontent=content) KeyError: '"turnnumber"' """…
- User
DEBUG: """ prompt = TOPIC_PROMPT.format(disc_content=content) KeyError: '"turn_number"' """ TOPIC_PROMPT = """Analyze the discussion below to extract topics and their novelty. ## Rules: 1. Turn Splitting: A single speaker turn MUST be split into multiple records if it addresses more than one topic. 2. Handling Continuity (Novelty=False): If a speaker acknowledges, responds to, or agrees/disagrees with a topic introduced earlier, create a row for that topic and set novelty to False. 3. Handling Introduction (Novelty=True): If a speaker introduces a brand-new subject, set novelty to True. 4. Turn Numbers: Use the same turn_number for all records originating from the same speaker utterance. ## Output Format: Return ONLY a JSON list of objects with these keys: ["turn_number", "speaker", "topic", "novelty"]. ## Output: ## Examples of logic for splitting and novelty: - Utterance: "ANNA: I believe a targeted excise tax on high-sugar beverages and snacks is a necessary intervention to disincentivize consumption and improve long-term health outcomes." - Row 0: {"turn_number": 2, "speaker": "ANNA", "topic": "Health Concerns", "novelty": True} - Utterance: "Benny: While I acknowledge the health concerns, we must consider the economic reality; these taxes are inherently regressive, disproportionately penalizing low-income families who spend a larger percentage of their earnings on food" - Row 1: {"turn_number": 2, "speaker": "Benny", "topic": "Health Concerns", "novelty": False} - Row 2: {"turn_number": 2, "speaker": "Benny", "topic": "Economic Reality", "novelty": True} - Row 3: {"turn_number": 2, "speaker": "Benny", "topic": "Low-Income Communities", "novelty": True} - Utterance: "ANNA: That is a valid concern, but if we earmark the revenue generated from the sugar tax specifically to subsidize fresh produce and improve nutrition programs in those same underserved communities, we could effectively offset the financial burden while steering behavior toward healthier choices." - Row 4: {"turn_number": 2, "speaker": "ANNA", "topic": "Low-Income Communities", "novelty": False} - Row 5: {"turn_number": 2, "speaker": "ANNA", "topic": "Expected Revenues: Fresh Produce Subsidization, Nutrition Programs", "novelty": True} Discussion Content: {disc_content} """
Assistant