post
http://autodrive-api.dadosfera.ai/dataset//question
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Title
Submit a question — retrieve relevant documents only
Description
Send a natural-language search to the specified dataset.
The service retrieves and ranks the most relevant document snippets but does not generate an AI answer.
Typical uses:
- Build your own answer logic while relying on AutoDriveDDF for retrieval.
- Feed the snippets into a separate LLM or analytics pipeline.
- Batch offline processing where you first collect context, then post-process.
The call returns quickly with a question_id.
Use GET /dataset/{dataset_id}/question/{question_id} to fetch the snippets.
HTTP Request
POST /dataset/{dataset_id}/question
Authentication
In your REST client (Postman/Insomnia), select Basic Auth and enter your Username and Password.
The client will automatically generate the Authorization: Basic … header for you. Do not add that header manually.
Request Headers
| Header | Example | Required | Notes |
|---|---|---|---|
| Content-Type | application/json | ✓ | JSON payload |
| Accept | application/json | — | Ensures JSON response |
Path Parameters
| Location | Name | Type | Required | Description |
|---|---|---|---|---|
| Path | dataset_id | string | ✓ | UUID of the dataset you want to search, e.g. c8004e22-87f7-441f-8302-80c934841196 |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| question | string | ✓ | Natural-language query (max 1000 chars). |
| k | integer | — | Optional. Number of top snippets to keep (default server value, e.g. 5). |
Example JSON
{
"question": "How do I configure the data pipeline?",
"k": 5
}Example Request (cURL)
curl -u admin:mypassword \
-H "Content-Type: application/json" \
-d '{"question":"How do I configure the data pipeline?"}' \
https://api.autodriveddf.example/dataset/c8004e22-87f7-441f-8302-80c934841196/questionSuccess Response 200 OK
200 OK{
"dataset_id": "c8004e22-87f7-441f-8302-80c934841196",
"question_id": "73a1f41a-0754-48cb-8b6d-4d9c25a6fc0b"
}| Field | Description |
|---|---|
| dataset_id | UUID of the dataset queried. |
| question_id | UUID for this question. Use it with GET /dataset/{dataset_id}/question/{question_id} to retrieve the snippets. |
Error Responses
| Code | Reason | When it happens | Example Body |
|---|---|---|---|
| 400 | Bad Request | question missing / empty, or malformed JSON | { "detail": "Field 'question' is required." } |
| 401 | Unauthorized | Missing / wrong Basic Auth | — |
| 404 | Not Found | Dataset UUID does not exist | { "detail": "Dataset not found." } |
| 422 | Unprocessable Entity | Dataset is still processing or failed (status ≠ success) | { "detail": "Dataset is not available for querying yet." } |
| 500 | Server Error | Unexpected failure while registering the question | { "detail": "Unexpected error." } |
Next Steps
- Wait briefly, then call GET /dataset/{dataset_id}/question/{question_id}.
- The response will include
question_textand an arrayrelevant_documents. - Use those snippets however you like—display to users, feed into another model, etc.
