Permission required:
project:mem_search · instanceDocumentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST 'https://app.memorylake.ai/openapi/memorylake/api/v2/projects/proj-e7b262987be4589fabc60257ec2a2230/memories/search' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"query": "What restaurants were recommended?",
"user_id": "user-abc123",
"top_k": 10,
"threshold": 0.3,
"rerank": false
}'
{
"success": true,
"data": {
"results": [
{
"id": "fact-b6729ff5905991da96a5eced75b95fa1",
"content": "User prefers Hangzhou cuisine restaurants",
"user_id": "user-abc123",
"created_at": "2024-01-15T10:00:00Z",
"updated_at": "2024-01-15T10:00:00Z"
}
]
}
}
Search memories using natural language with optional reranking
curl -X POST 'https://app.memorylake.ai/openapi/memorylake/api/v2/projects/proj-e7b262987be4589fabc60257ec2a2230/memories/search' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"query": "What restaurants were recommended?",
"user_id": "user-abc123",
"top_k": 10,
"threshold": 0.3,
"rerank": false
}'
{
"success": true,
"data": {
"results": [
{
"id": "fact-b6729ff5905991da96a5eced75b95fa1",
"content": "User prefers Hangzhou cuisine restaurants",
"user_id": "user-abc123",
"created_at": "2024-01-15T10:00:00Z",
"updated_at": "2024-01-15T10:00:00Z"
}
]
}
}
POST /openapi/memorylake/api/v2/projects/{id}/memories/search
project:mem_search · instancecurl -X POST 'https://app.memorylake.ai/openapi/memorylake/api/v2/projects/proj-e7b262987be4589fabc60257ec2a2230/memories/search' \
-H 'Authorization: Bearer sk_xxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"query": "What restaurants were recommended?",
"user_id": "user-abc123",
"top_k": 10,
"threshold": 0.3,
"rerank": false
}'
{
"success": true,
"data": {
"results": [
{
"id": "fact-b6729ff5905991da96a5eced75b95fa1",
"content": "User prefers Hangzhou cuisine restaurants",
"user_id": "user-abc123",
"created_at": "2024-01-15T10:00:00Z",
"updated_at": "2024-01-15T10:00:00Z"
}
]
}
}