POST
/
document-relevance
curl --request POST \
  --url https://app.docs.bynesoft.com/api/ask/document-relevance \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "filter": [
    "<string>"
  ],
  "hybrid": {
    "active": true,
    "keywords": [
      "<string>"
    ]
  },
  "nearestNeighborsNum": 123
}'
{
  "fileStats": [
    {
      "fileId": "<string>",
      "normalizedScore": 123,
      "paragraphsFraction": 123
    }
  ],
  "paragraphsRetrieved": 123
}

Authorizations

X-API-Key
string
header
required

Query Parameters

kb
string
required
q
string
required

Body

application/json
filter
string[] | null
hybrid
object
nearestNeighborsNum
integer | null

Response

200
application/json
Successful Response
fileStats
object[]
required
paragraphsRetrieved
integer
required