Skip to main content
GET
/
api
/
search
/
ranked
Ranked hybrid search across documents and memories
curl --request GET \
  --url https://api.example.com/api/search/ranked \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "source_type": "<string>",
      "score": 123,
      "document": {},
      "snippet": "<string>",
      "id": 123,
      "topic": "<string>",
      "content": "<string>",
      "memory_type": "<string>"
    }
  ],
  "query": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

q
string
required

Search query

Required string length: 1 - 500
limit
integer
default:20

Max results to return

Required range: 1 <= x <= 100

Response

Successful Response

Response for ranked unified search.

results
RankedSearchItem · object[]
required
query
string
required