Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable usage inside GitHub Codespaces #355

Closed
wants to merge 11 commits into from
8 changes: 8 additions & 0 deletions .devcontainer/codespaces/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "Lumigator",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
"postCreateCommand": "make start-lumigator"
}
10 changes: 5 additions & 5 deletions docs/source/get-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ include the dataset file. Here is an example:
user@host:~/lumigator$ curl -s http://localhost:8000/api/v1/datasets/ \
-H 'Accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F 'dataset=@'"path/to/dataset.csv"';type=text/csv' \
-F 'format=experiment' | jq
-F 'dataset=@'"lumigator/python/mzai/sample_data/dialogsum_exc.csv"';type=text/csv' \
-F 'format=job' | jq
{
"id": "dd15bbaa-8d6f-44ae-a995-b3b78f4ea6fb",
"filename": "dataset.csv",
"format": "experiment",
"format": "job",
"size": 180528,
"ground_truth": true,
"created_at": "2024-10-30T12:10:18"
Expand All @@ -48,7 +48,7 @@ user@host:~/lumigator$ curl -s http://localhost:8000/api/v1/datasets/ \
from lumigator_sdk.lumigator import LumigatorClient
from schemas.datasets import DatasetFormat

dataset_path = 'path/to/dataset.csv'
dataset_path = 'lumigator/python/mzai/sample_data/dialogsum_exc.csv'
lm_client = LumigatorClient('localhost:8000')

response = lm_client.datasets.create_dataset(
Expand Down Expand Up @@ -76,7 +76,7 @@ checking that the uploaded dataset is in the list:
:sync: tab1
```console
user@host:~/lumigator$ curl -s http://localhost:8000/api/v1/datasets/ | jq -r '.items | .[] | .filename'
dataset.csv
dialogsum_exc.csv
```
:::

Expand Down