Document
Retrieve similar documents chunks based on a prompt
POST
/
api
/v1
/document
/nearest
Authorization
Authorization
Required<token>
Please enter a valid access token
In: header
Request Body
application/json
OptionalThe prompt message to find the nearest documents
prompt
Requiredstring
Minimum length:
1
Query Parameters
spaceId
string
The space ID to retrieve from
Default:
""
documentId
string
The specific document ID to retrieve from
Default:
""
limit
integer
The maximum number of documents to retrieve
Default:
3
Format: "int32"
OK