Skip to content

feat(core): semantic segments in room_summary (#1088) - #1091

Merged
ajianaz merged 1 commit into
developfrom
feat/room-summary-segments
Aug 25, 2026
Merged

ajianaz merged 1 commit into
developfrom
feat/room-summary-segments

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

What

  • Uteke::room_summary now includes segments (serde-optional Vec<Segment>) computed via room_segments_inner when room memories have embeddings
  • room_segments refactored into public fetch wrapper + room_segments_inner taking caller-supplied memories (avoids a second recall_room query 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

  • 6/6 rooms_segments tests pass, incl. new room_summary_includes_segments_when_embeddings_exist (segments present with embeddings, None without)
  • Full uteke-core lib suite: 499 passed, 0 failed
  • cargo fmt + clippy clean

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.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 1a61919 into develop Aug 25, 2026
13 checks passed
@ajianaz
ajianaz deleted the feat/room-summary-segments branch August 25, 2026 00:50
ajianaz added a commit that referenced this pull request Sep 6, 2026