Skip to main content
POST
/
v1
/
api
/
stores
/
{store_id}
/
search
Search Indexed Documents In Document Store
curl --request POST \
  --url https://dev-knowledge-store.actualize.ae/v1/api/stores/{store_id}/search \
  --header 'Content-Type: application/json' \
  --data '
{
  "searchTerm": "<string>",
  "searchType": "similarity",
  "topK": 4
}
'
[
  {
    "content": "<string>",
    "metadata": {}
  }
]

Path Parameters

store_id
string<uuid>
required

Body

application/json

Request payload to search in document store.

searchTerm
string
required

The term or phrase to search in the document store

Minimum length: 3
searchType
enum<string>
default:similarity

Search Method

Available options:
similarity,
mmr
topK
integer
default:4

The number of relevant documents to retrieve

Required range: 0 < x < 20

Response

Successful Response

content
string
required

Chunk of data from the documents in the store that match the search term

metadata
object
required

Additional metadata about the retrieved chunk