Skip to content

Commit

Permalink
feat: change the summary date format to be string!
Browse files Browse the repository at this point in the history
while filtering on qdrant data, it was only supporting integer, string, and boolean.
  • Loading branch information
amindadgar committed Nov 7, 2024
1 parent a3da899 commit c8a5c95
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ def transform(self, summaries: dict[date, str]) -> list[Document]:
+ (day + timedelta(days=1)).strftime("%Y-%m-%d"),
text=summary,
metadata={
"date": datetime.combine(
day, datetime.min.time(), tzinfo=timezone.utc
).timestamp(),
"date": day.strftime("%Y-%m-%d"),
},
)
summary_docs.append(document)
Expand Down

0 comments on commit c8a5c95

Please sign in to comment.