Repository navigation
feat: room links travel with export and import (#1588) - #1591
Merged
Merged
Conversation
Each exported memory carries its room ids. Import links the memory to every room that exists in the target store, also for a duplicate of a stored memory, and reports room_links and rooms_missing.
| if !known { | ||
| self.missing.insert(room.clone()); | ||
| continue; | ||
| } |
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
Collaborator
Author
|
Benchmark guard (import path touched): LongMemEval fast50 on Modal for 440b13c (code identical to the head, which only adds a comment): overall R@5 0.9800 vs 0.9800 baseline, 0 improved / 0 regressed (compare_fast50.py). |
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.
What
uteke export(JSONL) carries each memory's room ids asrooms(absent for a memory in no room, so a store without rooms exports exactly as before).uteke import,POST /importandUteke::importlink every memory to the rooms that exist in the target store, also for a duplicate of a memory that is already stored (the existing memory is linked, nothing is copied).room_links(new links) androoms_missing(rooms named by the file that the target lacks); both are omitted when empty, in the JSON result, the HTTP response and the CLI text (which also tells the user to create the rooms and import again).import.Why
#1588: room membership was lost on export and not restored on import (3,602 memories in 194 rooms arrived with every room empty). Re-importing after creating the missing rooms now completes the links, so a server that was already filled without links can be repaired from the same file.
Testing
cargo fmt,cargo clippy --workspace --all-targets --locked -- -D warnings,cargo test --workspace --locked,cargo run -p docgen(no diff)./exportthen/importround trip.roomstake no new branch except an empty-vector take.