POST
/
v1
/
namespace
/
{namespaceId}
/
search
curl --request POST \
  --url https://api.agentset.ai/v1/namespace/{namespaceId}/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "query": "<string>",
  "topK": 10,
  "rerank": true,
  "rerankLimit": 50.5,
  "filter": {},
  "minScore": 0.5,
  "includeRelationships": false,
  "includeMetadata": true
}'
{
  "success": true,
  "data": [
    {
      "id": "<string>",
      "score": 0.5,
      "text": "<string>",
      "relationships": {},
      "metadata": {
        "file_directory": "<string>",
        "filename": "<string>",
        "filetype": "<string>",
        "link_texts": [
          "<any>"
        ],
        "link_urls": [
          "<any>"
        ],
        "languages": [
          "<any>"
        ],
        "sequence_number": 123
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Headers

x-tenant-id
string

The tenant id to use for the request. If not provided, the default tenant will be used.

Path Parameters

namespaceId
string
required

The id of the namespace to search.

Body

application/json

Response

200
application/json

The retrieved namespace

The response is of type object.