MemPalace/mempalace · error · SearchError
Search error: {e}
Error message
Search error: {e} What it means
Error "Search error: {e}" thrown in MemPalace/mempalace.
Source
Thrown at mempalace/searcher.py:689
try:
kwargs = {
"query_texts": [query],
# The window is a post-filter (ChromaDB can't range-compare
# string metadata), so widen the fetch the same way the
# programmatic path does and trim back after filtering.
"n_results": _candidate_pool_size(n_results, date_window_active)
if date_window_active
else n_results,
"include": ["documents", "metadatas", "distances"],
}
if where:
kwargs["where"] = where
results = col.query(**kwargs)
except Exception as e:
print(f"\n Search error: {e}")
raise SearchError(f"Search error: {e}") from e
docs = _first_or_empty(results, "documents")
metas = _first_or_empty(results, "metadatas")
dists = _first_or_empty(results, "distances")
if date_window_active:
kept = [
(doc, meta, dist)
for doc, meta, dist in zip(docs, metas, dists)
if filed_at_in_window((meta or {}).get("filed_at"), since_dt, before_dt)
]
# Keep the whole in-window pool here; the hybrid re-rank below must
# see every survivor before the display cut to n_results, or a
# BM25-strong drawer deep in the pool could never surface.
docs = [k[0] for k in kept]
metas = [k[1] for k in kept]
dists = [k[2] for k in kept]
View on GitHub (pinned to 06cb6987f0)
Solutions
- Inspect the underlying error; verify the palace is intact and the embedder is reachable
When it happens
Trigger: Thrown at mempalace/searcher.py:689 when the library encounters an invalid state.
Common situations: Search failed inside the backend or embedding pipeline.
AI-assisted analysis of MemPalace/mempalace@06cb6987f0 (2026-08-15).
Data as JSON: /api/errors/275fd7afdc19d870.
Report an issue: GitHub.