diff --git a/hindsight-api-slim/hindsight_api/engine/retain/fact_extraction.py b/hindsight-api-slim/hindsight_api/engine/retain/fact_extraction.py index e9e6ebaa..4c54f8a3 100644 --- a/hindsight-api-slim/hindsight_api/engine/retain/fact_extraction.py +++ b/hindsight-api-slim/hindsight_api/engine/retain/fact_extraction.py @@ -1055,7 +1055,7 @@ async def _extract_facts_from_chunk( f"LLM response missing 'facts' field or returned empty list. " f"Response: {extraction_response_json}. " f"Input: " - f"date: {event_date.isoformat()}, " + f"date: {event_date.isoformat() if event_date else 'unset'}, " f"context: {context if context else 'none'}, " f"text: {chunk}" )