ibl-data-manager (3.59.0-ai-plus)
API for iblai
Request
Retrieve resource documents similar to the given query.
This endpoint performs a semantic search to find documents that are relevant to the provided query within the specified pathway.
Args: request: The HTTP request containing the search query. org: Organization key identifier.
Returns: Response: A list of documents relevant to the search query.
Raises: ValidationError: If the request data is invalid.
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/search/
https://base.manager.iblai.app/api/ai-index/orgs/{org}/users/{user_id}/documents/search/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/search/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"query": "Computational thinking",
"pathway": "test-pathway"
}'
{ "results": [ { … }, { … } ] }
Request
Retrieve document sources related to a given query.
This endpoint performs a semantic search to find document sources that are relevant to the provided query within the specified pathway, and returns them along with confidence levels.
Args: request: The HTTP request containing the search query. org: Organization key identifier.
Returns: Response: A list of document sources with confidence levels.
Raises: ValidationError: If the request data is invalid.
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/sources/
https://base.manager.iblai.app/api/ai-index/orgs/{org}/users/{user_id}/documents/sources/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/sources/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"query": "Computational thinking",
"pathway": "test-pathway"
}'
[ [ { … }, { … } ] ]
Request
Check the status of a document training task.
This endpoint retrieves the current status of an asynchronous document training task that was previously initiated.
Args: request: The HTTP request. org: Organization key identifier. task_id: The ID of the training task to check.
Returns: Response: The current status of the document training task, which can be "pending", "completed", or "failed".
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/tasks/{task_id}/
https://base.manager.iblai.app/api/ai-index/orgs/{org}/users/{user_id}/documents/tasks/{task_id}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/tasks/{task_id}/' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "status": "pending", "message": "Training document pending" }