Palbase ai · API
POST
/ai/memory/searchHybrid search over memory records
Search memory records using combined PostgreSQL full-text search, cosine vector similarity, and JSONB metadata filters.
Called by your server, with the project's secret key.
Request body
querystring · optionalnamespacesstring[] · optionalmetadata_filterobject · optionalquery_embeddingnumber[] · optionallimitinteger · optionalcurl
curl -X POST "https://<your-ref>.palbase.studio/ai/memory/search" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"query":"string","namespaces":["string"],"metadata_filter":{},"query_embedding":[0],"limit":0}'Responses
200Matching memory records
400The request is malformed, or names what this module does not offer (the error names which)
401No valid credential
403A publishable key or a user's session: everything here is the project's server's, called with the secret key
404No such response, job or provider in this project
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation SearchMemory of ai's contract.