MemoryKit

Search

Hybrid search combining vector similarity and full-text search with automatic reranking.

Search memories

POST /v1/memories/search — Hybrid search combining vector similarity and full-text search with automatic reranking.

const results = await mk.memories.search({
  query: "quarterly revenue targets",
  filters: {
    tags: ["finance"],
    metadata: { year: { $gte: 2025 } },
  },
  limit: 10,
  includeGraph: true,
});
 
// results.results — SearchResult[]
// results.total_results — number

Filter operators

OperatorDescriptionExample
$eqEqual to{ "status": { "$eq": "active" } }
$gteGreater than or equal{ "year": { "$gte": 2025 } }
$lteLess than or equal{ "score": { "$lte": 0.8 } }
$inIn array{ "type": { "$in": ["note", "doc"] } }
$ninNot in array{ "type": { "$nin": ["draft"] } }
$existsField exists{ "metadata.reviewed": { "$exists": true } }

On this page