curl --request POST \
--url https://{workspaceId}.clinia.cloud/ai/v1/summarize \
--header 'Content-Type: application/json' \
--header 'X-Clinia-API-Key: <api-key>' \
--data '{
"task": "<string>",
"params": {},
"retriever": {
"partitionKey": "<string>",
"collectionKeys": [
"<string>"
],
"searchParams": {
"semanticQuery": {
"value": "<string>",
"paths": {
"include": [
"<string>"
],
"exclude": [
"<string>"
]
}
},
"query": {
"id": "<string>",
"and": [
"<any>"
]
},
"filter": {
"id": "<string>",
"and": [
"<any>"
]
},
"properties": {
"include": [
"<string>"
],
"exclude": [
"<string>"
]
},
"highlighting": [
"<string>"
],
"page": 123,
"perPage": 20,
"sort": {
"direction": "DESC",
"path": "<string>"
},
"ranking": {
"type": "DEFAULT"
},
"aggregations": [
{
"type": "LEXICAL",
"path": "<string>",
"prefix": "<string>",
"size": 20
}
],
"traversedProperties": [
"<string>"
]
}
},
"targetParam": "hits"
}'