# ai_index_orgs_users_documents_train_retriever_create Train a document directly without using a worker. This endpoint is designed for training smaller documents directly without queuing them through a worker process. For larger documents, use the TrainDocumentView endpoint instead. Args: request: The HTTP request containing the document information. org: Organization key identifier. Returns: Response: A confirmation that the document was trained successfully. Raises: ValidationError: If the request data is invalid. BadRequest: If the document training failed. Endpoint: POST /api/ai-index/orgs/{org}/users/{user_id}/documents/train/retriever/ Version: 3.59.0-ai-plus Security: PlatformApiKeyAuthentication ## Path parameters: - `org` (string, required) - `user_id` (string, required) ## Request fields (multipart/form-data): - `pathway` (string, required) Pathway for document to be trained in - `url` (string, required) Url of the document to be trained ## Response 200 fields (application/json): - `detail` (string, required) Status of the training