Repository navigation
feat(serverless): add sample dataset commands for spaces - #268
Merged
Merged
Conversation
Add "qcloud serverless space dataset" for the SampleDatasetService: - dataset list <space-id>: the datasets that can be loaded into the space - dataset describe <space-id> <dataset-id>: size, vectors and embedding models - dataset load start <space-id> <dataset-id> [--collection] [--wait] - dataset load list <space-id> (paginated) - dataset load describe <space-id> <load-id> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dstdfx
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
qcloud serverless space datasetfor the public API'sSampleDatasetService(qdrant/cloud/serverless/space/dataset/v1, already in v0.234.0, so no dependency bump). Before this PR, none of the four RPCs had a CLI command.dataset list <space-id>ListSampleDatasetsdataset describe <space-id> <dataset-id>ListSampleDatasetsfiltered by ID; there is no Get RPC and the catalog is smalldataset load start <space-id> <dataset-id> [--collection NAME] [--wait]LoadSampleDataset, thenGetSampleDatasetLoadwhile waitingdataset load list <space-id>ListSampleDatasetLoads(fetches all pages by default;--page-size/--page-tokenpage manually)dataset load describe <space-id> <load-id>GetSampleDatasetLoadBehaviour
dataset list:ID | NAME | POINTS | SIZE | INDEXED SIZE | VECTORS | VERSION.VECTORSlists the vector names; the unnamed vector shows asdefaultand sparse vectors get(sparse), e.g.default, image, bm25 (sparse).dataset describe: size and point count, then a dense vector table (NAME | SIZE | DISTANCE | MULTIVECTOR | MODEL) and a sparse vector table (NAME | IDF | MODEL), so users know which model to use for query vectors. An unknown ID gives an error that points todataset list.load start:--collectiondefaults to the dataset ID. The ID pattern is a subset of the collection name pattern, so it is always a valid collection name. Without--waitit prints the load ID and aload describecommand to follow it.--wait(default timeout 30m) polls untilSUCCEEDED, printingstatus=RUNNING progress=35.2/75.4 MiB (46%)to stderr.FAILED,FAILED_TO_SYNC,NOT_FOUNDandSKIPPEDcount as failures. As with other create-with-wait commands, the load (text or JSON) is printed with its last status before the error, so its ID andreasonaren't lost. Today serverless-backend only setsRUNNING,SUCCEEDEDandFAILED.load list:ID | DATASET | VERSION | COLLECTION | STATUS | PROGRESS | DURATION | CREATED. The server only returns loads from the last 30 days.completion.SpaceSampleDatasetIDCompletion,SpaceSampleDatasetLoadIDCompletion).Plumbing
qcloudapi.Client.ServerlessSampleDataset()testutil.FakeServerlessSampleDatasetService, registered asenv.ServerlessDatasetServeroutput.SampleDatasetLoadStatus,output.SampleDatasetDistanceWorth a look in review
dataset load startfollows thebackup restore trigger/backup restore listgrouping.startreads better thantriggerhere, but tell me if you'd rather keeptrigger.--collectionto the dataset ID is a CLI-side convenience; the API requires the field.Testing
dataset_test.go: 23 tests. They cover table and JSON output for all five commands, the request fields sent, the default and custom collection, wait success, failure (load printed, reason in the error) and timeout (JSON printed), automatic and manual pagination includingtotalSize, missing args, and backend errors.make lint(0 issues),make build,make test,make docs(reference docs regenerated).🤖 Generated with Claude Code
Written with Overlord from https://overlord.qdrant.tech/r/1089/t/7529