Quick Start
- TypeScript
- Python
- cURL
In hybrid mode, results contain either a
memory field (extracted facts) or a chunk field (document content), depending on the source.Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
q | string | required | Search query |
containerTag | string | — | Filter by user/project |
searchMode | string | "hybrid" | "hybrid" (recommended) or "memories" |
limit | number | 10 | Max results |
threshold | 0-1 | 0.5 | Similarity cutoff (higher = fewer, better results) |
rerank | boolean | false | Re-score for better relevance (+100ms) |
filters | object | — | Metadata filters (AND/OR structure) |
Search Modes
hybrid(recommended) — Searches both memories and document chunks, returns the most relevantmemories— Only searches extracted memories
Filtering
Filter bycontainerTag to scope results to a user or project:
filters for metadata-based filtering:
Filter Types
Filter Types
- 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 }
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:Response Schema
Response Schema
Next Steps
- Ingesting Content — Add content to search
- User Profiles — Get user context with search
- Organizing & Filtering — Container tags and metadata