Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ USER agentmemory

EXPOSE 8000

HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD curl -f http://localhost:8000/v1/health || exit 1
# No HEALTHCHECK here — the image is shared by api, mcp, and task-worker which each need
# a different check (or none). Healthchecks are defined per-service in docker-compose.yml.

# Enable authentication by default.
# You may override with DISABLE_AUTH=true in development.
Expand Down Expand Up @@ -136,8 +136,8 @@ USER agentmemory

EXPOSE 8000

HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD curl -f http://localhost:8000/v1/health || exit 1
# No HEALTHCHECK here — the image is shared by api, mcp, and task-worker which each need
# a different check (or none). Healthchecks are defined per-service in docker-compose.yml.

# Enable authentication by default.
# You may override with DISABLE_AUTH=true in development.
Expand Down
7 changes: 6 additions & 1 deletion agent_memory_server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,12 +772,17 @@ async def search_long_term_memory(
for key in (
"topics",
"entities",
"namespace",
"memory_type",
"extraction_strategy",
"event_date",
):
fallback_kwargs.pop(key, None)
# Only drop namespace filter if it is a broad (any/all) filter, not an exact eq match.
# An eq namespace filter means the caller asked a precise question; returning a
# record from the wrong namespace is more harmful than returning zero results.
Comment thread
ns-jlizarraga marked this conversation as resolved.
Outdated
ns_filter = filters.get("namespace") if filters else None
if ns_filter is None or getattr(ns_filter, "eq", None) is None:
fallback_kwargs.pop("namespace", None)
Comment on lines +783 to +785

def _vals(f):
vals: list[str] = []
Expand Down