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

Authorizations

Authorization
string
header
required

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

Query Parameters

type
enum<string>
required

Source item type

Available options:
memory,
document
id
required

Source item ID

limit
integer
default:10

Max results to return

Required range: 1 <= x <= 100

Response

Successful Response

Response for find-similar endpoint.

results
SimilarItem · object[]
required