MemoryKit

Search Memories

Hybrid search with vector similarity, full-text, and reranking.

Request body

FieldTypeRequiredDescription
querystringYesSearch query
filtersobjectNoFilter by tags, metadata, type
limitnumberNoMax results (default: 10)
includeGraphbooleanNoInclude knowledge graph connections
userIdstringNoScope to a specific user

Response

{
  "results": [
    {
      "id": "chunk_abc123",
      "content": "Q4 revenue target is $10M...",
      "score": 0.92,
      "memory_id": "mem_abc123",
      "metadata": {}
    }
  ],
  "total_results": 15
}

Filter operators

Use rich operators in the filters.metadata field:

  • $eq — Equal to
  • $gte — Greater than or equal
  • $lte — Less than or equal
  • $in — In array
  • $nin — Not in array
  • $exists — Field exists

On this page