Skip to main content
Search through your memories and documents with a single API call.
Use searchMode: "hybrid" for best results. It searches both memories and document chunks, returning the most relevant content.

Quick Start

Response:
In hybrid mode, results contain either a memory field (extracted facts) or a chunk field (document content), depending on the source.

Parameters

ParameterTypeDefaultDescription
qstringrequiredSearch query
containerTagstringFilter by user/project
searchModestring"hybrid""hybrid" (recommended) or "memories"
limitnumber10Max results
threshold0-10.5Similarity cutoff (higher = fewer, better results)
rerankbooleanfalseRe-score for better relevance (+100ms)
filtersobjectMetadata filters (AND/OR structure)

Search Modes

  • hybrid (recommended) — Searches both memories and document chunks, returns the most relevant
  • memories — Only searches extracted memories

Filtering

Filter by containerTag to scope results to a user or project:
Use filters for metadata-based filtering:
  • String equality: { key: "status", value: "active" }
  • String contains: { filterType: "string_contains", key: "title", value: "react" }
  • Numeric: { filterType: "numeric", key: "priority", value: "5", numericOperator: ">=" }
  • Array contains: { filterType: "array_contains", key: "tags", value: "important" }
  • Negate: { key: "status", value: "draft", negate: true }
See Organizing & Filtering for full syntax.

Query Optimization

Reranking

Re-scores results for better relevance. Adds ~100ms latency.

Threshold

Control result quality vs quantity:

Chatbot Example

Optimal configuration for conversational AI:

Next Steps