Repository navigation
feat(core): semantic segments in room_summary (#1088) - #1091
Merged
Merged
Conversation
Uteke::room_summary now enriches the store's tag-based summary with embedding-distance segments when room memories have embeddings. Segments are the batching units for future segment-level LLM consolidation (LycheeMemory V2 granularity). No-embedding rooms keep segments=None (serde-optional, backward compatible). room_segments split into a public fetch + room_segments_inner to avoid double queries.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Aug 25, 2026
ajianaz
added a commit
that referenced
this pull request
Sep 6, 2026
What
Uteke::room_summarynow includessegments(serde-optionalVec<Segment>) computed viaroom_segments_innerwhen room memories have embeddingsroom_segmentsrefactored into public fetch wrapper +room_segments_innertaking caller-supplied memories (avoids a secondrecall_roomquery in the summary path)Why
Segments are the batching units for segment-level LLM consolidation (LycheeMemory V2 granularity, #1088). Exposing them in the summary gives API consumers the same unit boundaries without an extra call. Tag-based topic clusters remain untouched; segments are additive and None for rooms without embeddings (backward compatible).
Testing
rooms_segmentstests pass, incl. newroom_summary_includes_segments_when_embeddings_exist(segments present with embeddings, None without)uteke-corelib suite: 499 passed, 0 failed