feat: include created_at timestamp in search results (#846)

* feat: include created_at timestamp in search results (closes #465)

Surface the existing filed_at metadata as created_at in search result
objects returned by search_memories(). Enables temporal reasoning over
search hits without additional queries.

* Feat: add fallback for missing filed_at metadata
This commit is contained in:
sha2fiddy
2026-04-15 03:26:57 -04:00
committed by GitHub
parent ecd44f7cb7
commit a15094ce60
2 changed files with 23 additions and 0 deletions
+1
View File
@@ -411,6 +411,7 @@ def search_memories(
"wing": meta.get("wing", "unknown"),
"room": meta.get("room", "unknown"),
"source_file": Path(source).name if source else "?",
"created_at": meta.get("filed_at", "unknown"),
"similarity": round(max(0.0, 1 - effective_dist), 3),
"distance": round(dist, 4),
"effective_distance": round(effective_dist, 4),