prompt update (#378)

This commit is contained in:
Preston Rasmussen 2025-04-18 00:09:12 -04:00 committed by GitHub
parent a193476abe
commit f578ee2177
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -82,6 +82,7 @@ def v1(context: dict[str, Any]) -> list[Message]:
7. If only a date is mentioned without a specific time, use 00:00:00 (midnight) for that date.
8. If only year is mentioned, use January 1st of that year at 00:00:00.
9. Always include the time zone offset (use Z for UTC if no specific time zone is mentioned).
10. A fact discussing that something is no longer true should have a valid_at according to when the negated fact became true.
""",
),
]

View file

@ -101,9 +101,7 @@ def label_propagation(projection: dict[str, list[Neighbor]]) -> list[list[str]]:
]
community_lst.sort(reverse=True)
candidate_rank, community_candidate = (
community_lst[0] if community_lst else (0, -1)
)
candidate_rank, community_candidate = community_lst[0] if community_lst else (0, -1)
if community_candidate != -1 and candidate_rank > 1:
new_community = community_candidate
else: