Update user profile
(user_id: str, profile_json: Dict)
| 684 | """, ( |
| 685 | normalized_arxiv_id, |
| 686 | normalized_doi, |
| 687 | normalized_title, |
| 688 | json.dumps(authors or []), |
| 689 | _normalize_identifier(institution), |
| 690 | abstract or "", |
| 691 | _normalize_identifier(venue) or _normalize_identifier(source), |
| 692 | _normalize_identifier(publish_date), |
| 693 | json.dumps(embedding) if embedding else None, |
| 694 | _normalize_identifier(embedding_model) or "hash:hash:768", |
| 695 | # Format explicitly rather than passing a datetime: the implicit |
| 696 | # sqlite3 adapter is deprecated in 3.12+. isoformat(sep=" ") |
| 697 | # reproduces the exact string the adapter used, so existing rows and |
| 698 | # the string comparisons elsewhere in this module stay valid. |
| 699 | datetime.now().isoformat(sep=" ") |
| 700 | )) |