Repository navigation
feat: add full memory detail fields to UnifiedSearchResult - #688
Merged
Merged
Conversation
UnifiedSearchResult now includes memory_type, namespace, source, source_type, importance, pinned, access_count, last_accessed, created_at, updated_at. - Memory results: all fields populated from Memory struct - Document results: all memory-specific fields are None (skip_serializing_if) - Tests verify both memory fields present and document fields omitted - CLI print_unified_human shows new fields (type, source, importance, pinned, access count) Fixes the gap where recall with search_type=all/memory/doc returned less metadata than plain recall.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-cli · BYOK · MIT |
This was referenced Jul 17, 2026
Closed
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
…ory-fields feat: add full memory detail fields to UnifiedSearchResult
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
UnifiedSearchResult(used by/recallwithsearch_type) now includes all memory detail fields thatSearchResultalready had via its fullMemorystruct.Changes
UnifiedSearchResultstruct (types.rs)Added 11 new fields with
skip_serializing_if = "Option::is_none":memory_type,namespace,source,source_typeimportance,pinned,access_countlast_accessed,created_at,updated_atPopulation sites (lib.rs)
recall_unified_memories()— all fields populated fromMemorystructrecall_unified_documents()— all memory fields set toNonerecall_unified_all()— both memory and document branches updatedTests (types.rs)
NoneCLI (output.rs)
print_unified_human()now shows type, source, importance, pinned 📌, access countBefore vs After
Before —
search_type=memoryresponse:**{"content": "...", "memory_id": "...", "score": 0.85, "tags": [...], "metadata": {...}}After —
search_type=memoryresponse:**{"content": "...", "memory_id": "...", "score": 0.85, "tags": [...], "metadata": {...}, "memory_type": "fact", "namespace": "default", "source": "user", "source_type": "user", "importance": 0.8, "pinned": false, "access_count": 5, "last_accessed": "...", "created_at": "...", "updated_at": "..."}Document results are unaffected — all memory fields remain
Noneand are omitted from JSON.