ibl-data-manager (3.59.0-ai-plus)
API for iblai
Request
Train a graph-based document through a worker process.
This endpoint queues graph-based documents for training through a specialized worker process that handles knowledge graph processing.
Args: request: The HTTP request containing the document information. org: Organization key identifier.
Returns: Response: A confirmation that the document was queued for training, including a task ID for tracking the progress.
Raises: ValidationError: If the request data is invalid. BadRequest: If there was an error processing the document.
- multipart/form-data
- application/x-www-form-urlencoded
- application/json
The patterns that the crawler should use to match urls. Patterns may be a glob pattern or a full regex pattern. Indicate the specified type in crawler_use_glob_matching
.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/graph-train/
https://base.manager.iblai.app/api/ai-index/orgs/{org}/users/{user_id}/documents/graph-train/
- 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/graph-train/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: multipart/form-data' \
-F pathway=string \
-F url=string \
-F text=string \
-F type=string \
-F translate=false \
-F file=string \
-F access=private \
-F branch=string \
-F google_drive_auth_data=null \
-F dropbox_auth_data=null \
-F crawler_max_depth=0 \
-F crawler_max_pages_limit=0 \
-F crawler_max_concurrency=0 \
-F crawler_match_patterns=string \
-F crawler_use_glob_matching=true
{ "task_id": "4194d20c-37d5-4148-882f-f7d2d91f7769", "document_id": "doc-123456", "message": "Document received. Your request to train has been queued" }
Request
Description: Retrieves a list of document embeddings for a specific pathway with optional search and pagination.
Methods:
- GET: Retrieves document embeddings that match the specified search criteria and are paginated according to offset and limit.
Parameters:
- search (str): Search query to filter document names or URLs.
- offset (int): Offset number for pagination.
- limit (int): Limit number for pagination.
Returns:
- GET: A paginated list of document embeddings with their details. { "count": 10, "next": "http://api.example.com/retriever_documents/?offset=10&limit=2", "previous": "http://api.example.com/retriever_documents/?offset=0&limit=2", "results": [ { "document_name": "Document2", "platform_key": "example_platform", "pathway": "example_pathway" } ] }
Error Responses:
- 400 Bad Request: Invalid query parameters.
- 404 Not Found: No document embeddings found for the specified criteria.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/pathways/{pathway}/
https://base.manager.iblai.app/api/ai-index/orgs/{org}/users/{user_id}/documents/pathways/{pathway}/
- 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/pathways/{pathway}/?limit=0&offset=0&search=string' \
-H 'Authorization: YOUR_API_KEY_HERE'
trained
- Trainedfailed
- Failedpending
- Pendinguntrained
- Untrained
trained
- Trainedfailed
- Failedpending
- Pendinguntrained
- Untrained
public
- Publicprivate
- Private
public
- Publicprivate
- Private
List of patterns that the crawler should use to match urls. Patterns may be a glob pattern or a full regex pattern. Indicate the specified type in crawler_use_glob_matching
.
{ "count": 123, "next": "http://api.example.org/accounts/?offset=400&limit=100", "previous": "http://api.example.org/accounts/?offset=200&limit=100", "results": [ [ … ] ] }
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": [ { … }, { … } ] }