Common Parameters
These parameters work across all search endpoints:Search query stringThe text you want to search for. Can be natural language, keywords, or questions.
Maximum number of results to returnControls how many results you get back. Higher limits increase response time and size.
Filter by container tagsOrganizational tags for filtering results. Uses exact array matching - must match all tags in the same order.
Metadata filtering with SQL-like structureJSON string containing AND/OR logic for filtering by metadata fields. Uses the same structure as memory listing filters.
See Metadata Filtering Guide for complete syntax and examples.
Re-score results for better relevanceApplies a secondary ranking algorithm to improve result quality. Adds ~100-200ms latency but increases accuracy.
Expand and improve the queryRewrites your query to find more relevant results. Particularly useful for abbreviations and domain-specific terms. Adds ~400ms latency.
Query rewriting significantly increases latency. Only use when search quality is more important than speed.
Document Search Parameters (POST /v3/search
)
These parameters are specific to client.search.documents()
:
Sensitivity for chunk selectionControls which text chunks are included in results:
- 0.0 = Least sensitive (more chunks, more results)
- 1.0 = Most sensitive (fewer chunks, higher quality)
Sensitivity for document selectionControls which documents are considered for search:
- 0.0 = Search more documents (comprehensive)
- 1.0 = Search only highly relevant documents (focused)
Search within a specific documentLimit search to chunks within a single document. Useful for finding content in large documents.
Return only exact matching chunksBy default, Supermemory includes surrounding chunks for context. Set to
true
to get only the exact matching text.Context chunks help LLMs understand the full meaning. Only disable if you need precise text extraction.
Include complete document contentAdds the full document text to each result. Useful for chatbots that need complete context.
Including full documents can make responses very large. Use sparingly and with appropriate limits.
Include document summariesAdds AI-generated document summaries to results. Good middle-ground between chunks and full documents.
Filter by metadata using SQL queries
Memory Search Parameters (POST /v4/search
)
These parameters are specific to client.search.memories()
:
Sensitivity for memory selectionControls which memories are returned based on similarity:
- 0.0 = Return more memories (broad search)
- 1.0 = Return only highly similar memories (precise search)
Filter by single container tagNote: Memory search uses
containerTag
(singular) while document search uses containerTags
(plural array).Control what additional data to includeObject specifying what contextual information to include with memory results.
Include associated documents for each memory
Include parent and child memories (contextual relationships)
Include memory summaries