{ "status": "success", "memories": [ { "id": "550e8400-e29b-41d4-a716-446655440000", "content": "I love hiking in the mountains", "metadata": null, "createdAt": "2024-01-15T10:30:00.000Z", "embedded": true }, { "id": "550e8400-e29b-41d4-a716-446655440001", "content": "Rock climbing is my favorite weekend activity", "metadata": null, "createdAt": "2024-01-14T15:20:00.000Z", "embedded": true } ], "rawMatches": [ { "id": "550e8400-e29b-41d4-a716-446655440000::0", "score": 1.00110459, "values": [] }, { "id": "550e8400-e29b-41d4-a716-446655440001::0", "score": 0.82, "values": [] } ]}
Endpoints
Search Endpoint
Perform semantic vector search across encrypted user memories
The Search API enables semantic search across all user memories using vector embeddings. Query text is embedded and matched against stored memory vectors to find the most similar memories ranked by relevance.
Query Length: Queries don’t need to be exact matches. Natural language queries work well (e.g., “outdoor activities” will match “hiking”, “camping”, etc.)
Top K Selection: Start with the default topK: 5 and adjust based on your use case. Higher values return more results but may include less relevant matches
Score Interpretation: Scores typically range from 0 to 1+. Scores above 0.7 generally indicate good semantic similarity
Empty Results: If no memories are returned, it means either:
No memories have been created yet
Memories haven’t finished embedding yet (check embedded: false on memories)
The query doesn’t semantically match any stored memories