POST
/
api
/
datasets
/
{id}
/
search-documents

Path Parameters

id
string
required

Dataset ID

Authorization
string

Baseplate API key. Must be in the format โ€œBearer $BASEPLATE_API_KEYโ€

Body Parameters

query
string
required

Query string

top_k
number
default: "3"

Number of closest matches

Responses

{
    "results": [
        {
            "document_id": "fc74e81e-05ac-4df6-936f-ce51cc69a868",
            "dataset_id": "e2fa7f7b-d580-4ecf-8232-a1131938a3fc",
            "content": "",
            "filename": "example.pdf",
            "url": "/928f94ee-4c7c-451a-bf3c-f1baa08c67b0/example.pdf",
            "similarity": 0.0919062
        }
    ]
}