Skip to content

BUG: room recall --query (semantic search within room) returns empty results #546

Closed

Description

@ajianaz

Description

uteke room recall --query <query> (semantic search scoped to a room) returns empty results even when the room contains memories relevant to the query. Regular chronological room recall works fine.

Note: This may be related to #544 (vector index not synced in real-time), but it persisted even after uteke repair in some cases, suggesting a separate issue in the room-scoped semantic search path.

Environment

  • Uteke version: 0.6.1
  • Reproducibility: Consistent

Steps to Reproduce

# Setup
uteke namespace create ctest
uteke room create --namespace ctest "test-room"

# Add relevant memories
uteke remember --namespace ctest --room "test-room" --author test-user --type note "Marketing personalization uses AI to tailor customer experiences"
uteke remember --namespace ctest --room "test-room" --author test-user --type note "Personalized email campaigns increase conversion rates by 30%"

# Repair index (to rule out #544)
uteke repair

# Try semantic recall within room
uteke room recall --namespace ctest --query "marketing personalization" --limit 3
# Output: []

# Chronological recall works fine
uteke room recall --namespace ctest --json --limit 5 "test-room"
# Output: [{memory1}, {memory2}] ✅

Expected Behavior

uteke room recall --query "marketing personalization" should return the 2 memories about marketing personalization.

Actual Behavior

Returns empty array []. The --query flag for semantic room recall appears to be non-functional.

Impact

  • Room-scoped semantic search is a key feature for multi-agent coordination
  • Agents cannot discover relevant messages within rooms without chronological scan
  • Reduces the value of rooms as organized knowledge containers

Suggested Fix

  1. Verify the room-scoped recall query is correctly filtering by room + applying vector search
  2. May need to intersect room membership with vector similarity results
  3. Check if the --query parameter is actually being passed to the search engine

Activity

  1. added
    bug
    scope:cli
    on Jul 3, 2026
  2. added a commit that references this issue on Jul 4, 2026
  3. ajianaz commented on Jul 4, 2026

    @ajianaz
    CollaboratorAuthor

    Fixed in PR #558. Root cause: room_recall_query capped fetch_limit with id_set.len(), causing empty results for rooms with few linked memories. Removed the cap.

  4. added a commit that references this issue on Aug 5, 2026
  5. added 3 commits that reference this issue on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:mediumscope:cli

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions