Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ linters:
- containedctx
- contextcheck
- errorlint
- goconst

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the reasoning for dropping goconst?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new version created tons of new warnings to extract strings into constants that were not helpful.

- godot
- importas
- modernize
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Go CLI for [Qdrant Cloud](https://cloud.qdrant.io), built with Cobra / Viper and

- **Module:** `github.com/qdrant/qcloud-cli`
- **Binary:** `qcloud` (built to `build/qcloud`)
- **Go version:** 1.26+
- **Go version:** 1.27+
- **Key dependencies:** `cobra`, `viper`, `google.golang.org/grpc`, `qdrant-cloud-public-api` (generated gRPC stubs)

## Project structure
Expand Down
1 change: 1 addition & 0 deletions docs/reference/qcloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Documentation: https://github.com/qdrant/qcloud-cli
* [qcloud context](qcloud_context.md) - Manage named configuration contexts
* [qcloud hybrid](qcloud_hybrid.md) - Manage hybrid cloud environments
* [qcloud iam](qcloud_iam.md) - Manage IAM resources in Qdrant Cloud
* [qcloud inference](qcloud_inference.md) - Manage inference resources
* [qcloud package](qcloud_package.md) - Manage packages
* [qcloud self-upgrade](qcloud_self-upgrade.md) - Upgrade qcloud to the latest version
* [qcloud version](qcloud_version.md) - Print the qcloud CLI version
Expand Down
44 changes: 44 additions & 0 deletions docs/reference/qcloud_inference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
## qcloud inference

Manage inference resources

### Synopsis

Inspect the inference models offered by Qdrant Cloud.

Inference models turn text or images into dense, sparse or multi vectors directly
inside Qdrant Cloud, so a cluster can embed documents and queries without a
separate embedding service. Which models are offered depends on the cloud
provider and region a cluster runs in.

### Examples

```
# List the inference models available in a region
qcloud inference models list --cloud-provider aws --cloud-region eu-central-1
```

### Options

```
-h, --help help for inference
```

### Options inherited from parent commands

```
--account-id string Qdrant Cloud Account ID (env: QDRANT_CLOUD_ACCOUNT_ID)
--api-key string Management API Key (env: QDRANT_CLOUD_API_KEY)
-c, --config string Config file path (env: QDRANT_CLOUD_CONFIG, default ~/.config/qcloud/config.yaml)
--console-url string Qdrant Cloud web console base URL (env: QDRANT_CLOUD_CONSOLE_URL, default https://cloud.qdrant.io)
--context string Override the active context (env: QDRANT_CLOUD_CONTEXT)
--debug Enable debug logging to stderr
--endpoint string gRPC API endpoint (env: QDRANT_CLOUD_ENDPOINT, default grpc.cloud.qdrant.io:443)
--json Output as JSON
```

### SEE ALSO

* [qcloud](qcloud.md) - Qdrant Cloud CLI
* [qcloud inference models](qcloud_inference_models.md) - Manage inference models

43 changes: 43 additions & 0 deletions docs/reference/qcloud_inference_models.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## qcloud inference models

Manage inference models

### Synopsis

Inspect the individual inference models offered by Qdrant Cloud.

A model is identified by its name (for example "cohere/*"), and describes the
vectors it produces: the vector type, the modality of the input it accepts, and
the dimensionality of its output.

### Examples

```
# List the inference models available in a region
qcloud inference models list --cloud-provider aws --cloud-region eu-central-1
```

### Options

```
-h, --help help for models
```

### Options inherited from parent commands

```
--account-id string Qdrant Cloud Account ID (env: QDRANT_CLOUD_ACCOUNT_ID)
--api-key string Management API Key (env: QDRANT_CLOUD_API_KEY)
-c, --config string Config file path (env: QDRANT_CLOUD_CONFIG, default ~/.config/qcloud/config.yaml)
--console-url string Qdrant Cloud web console base URL (env: QDRANT_CLOUD_CONSOLE_URL, default https://cloud.qdrant.io)
--context string Override the active context (env: QDRANT_CLOUD_CONTEXT)
--debug Enable debug logging to stderr
--endpoint string gRPC API endpoint (env: QDRANT_CLOUD_ENDPOINT, default grpc.cloud.qdrant.io:443)
--json Output as JSON
```

### SEE ALSO

* [qcloud inference](qcloud_inference.md) - Manage inference resources
* [qcloud inference models list](qcloud_inference_models_list.md) - List available inference models

57 changes: 57 additions & 0 deletions docs/reference/qcloud_inference_models_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
## qcloud inference models list

List available inference models

### Synopsis

List the inference models globally available for a cloud provider and region.

The listing is global, not account-specific: it shows every model Qdrant Cloud
offers in that region, together with the vector type and modality it produces,
its output dimensionality and per-request token limit, and its price per one
million processed tokens. External models are served by a third-party vendor and
require that vendor's API key to be configured on the cluster.

Inference is only offered on managed cloud, so unlike "qcloud package
list" this command cannot be used with hybrid cloud.

```
qcloud inference models list [flags]
```

### Examples

```
# List inference models available on AWS in eu-central-1
qcloud inference models list --cloud-provider aws --cloud-region eu-central-1

# List inference models as JSON
qcloud inference models list --cloud-provider gcp --cloud-region us-east4 --json
```

### Options

```
--cloud-provider string Cloud provider ID (required)
--cloud-region string Cloud provider region ID (required)
-h, --help help for list
--no-headers Do not print column headers
```

### Options inherited from parent commands

```
--account-id string Qdrant Cloud Account ID (env: QDRANT_CLOUD_ACCOUNT_ID)
--api-key string Management API Key (env: QDRANT_CLOUD_API_KEY)
-c, --config string Config file path (env: QDRANT_CLOUD_CONFIG, default ~/.config/qcloud/config.yaml)
--console-url string Qdrant Cloud web console base URL (env: QDRANT_CLOUD_CONSOLE_URL, default https://cloud.qdrant.io)
--context string Override the active context (env: QDRANT_CLOUD_CONTEXT)
--debug Enable debug logging to stderr
--endpoint string gRPC API endpoint (env: QDRANT_CLOUD_ENDPOINT, default grpc.cloud.qdrant.io:443)
--json Output as JSON
```

### SEE ALSO

* [qcloud inference models](qcloud_inference_models.md) - Manage inference models

10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
module github.com/qdrant/qcloud-cli

go 1.26.6
go 1.27.1

require (
github.com/creativeprojects/go-selfupdate v1.6.0
github.com/dustin/go-humanize v1.0.1
github.com/dustin/go-humanize v1.1.0
github.com/google/uuid v1.6.0
github.com/jedib0t/go-pretty/v6 v6.8.3
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
github.com/qdrant/qdrant-cloud-public-api v0.188.0
github.com/qdrant/qdrant-cloud-public-api v0.199.0
github.com/robfig/cron/v3 v3.0.1
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
github.com/spf13/viper v1.21.0
github.com/stretchr/testify v1.12.1
google.golang.org/grpc v1.83.2
google.golang.org/grpc v1.84.0
google.golang.org/protobuf v1.36.12
gopkg.in/yaml.v3 v3.0.1
)

require (
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.12-20260825204119-511051f7f437.1 // indirect
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.12-20260825204119-511051f7f437.2 // indirect
code.gitea.io/sdk/gitea v0.23.2 // indirect
github.com/42wim/httpsig v1.2.4 // indirect
github.com/Masterminds/semver/v3 v3.5.0 // indirect
Expand Down
34 changes: 8 additions & 26 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.12-20260825204119-511051f7f437.1 h1:Slv0uGxx219srASyiaI5C9cDlyG8kNDcXpTSYcuAeE4=
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.12-20260825204119-511051f7f437.1/go.mod h1:TCt1lluMFnctISJXvkIQ4x3ABrPuUKCWKyjKdkJNBpw=
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.12-20260825204119-511051f7f437.2 h1:NbnlmV26O7oZ1iM5tsCI+GEx+3ZSdrhvnKQ/eWSrLiY=
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.12-20260825204119-511051f7f437.2/go.mod h1:TCt1lluMFnctISJXvkIQ4x3ABrPuUKCWKyjKdkJNBpw=
code.gitea.io/sdk/gitea v0.23.2 h1:iJB1FDmLegwfwjX8gotBDHdPSbk/ZR8V9VmEJaVsJYg=
code.gitea.io/sdk/gitea v0.23.2/go.mod h1:yyF5+GhljqvA30sRDreoyHILruNiy4ASufugzYg0VHM=
github.com/42wim/httpsig v1.2.4 h1:mI5bH0nm4xn7K18fo1K3okNDRq8CCJ0KbBYWyA6r8lU=
github.com/42wim/httpsig v1.2.4/go.mod h1:yKsYfSyTBEohkPik224QPFylmzEBtda/kjyIAJjh3ps=
github.com/Masterminds/semver/v3 v3.5.0 h1:kQceYJfbupGfZOKZQg0kou0DgAKhzDg2NZPAwZ/2OOE=
github.com/Masterminds/semver/v3 v3.5.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cpuguy83/go-md2man/v2 v2.0.6 h1:XJtiaUW6dEEqVuZiMTn1ldk455QWwEIsMIJlo5vtkx0=
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
github.com/creativeprojects/go-selfupdate v1.6.0 h1:Bu3cIgdyfI1Pg8XsL8nbaT2uMjfZ8HIoxnBmPJbN0sw=
github.com/creativeprojects/go-selfupdate v1.6.0/go.mod h1:Ids8O474XGQG0jZ5vpBIhWffcGYjUP6ccOI0mMcvQbI=
github.com/davidmz/go-pageant v1.0.2 h1:bPblRCh5jGU+Uptpz6LgMZGD5hJoOt7otgT454WvHn0=
github.com/davidmz/go-pageant v1.0.2/go.mod h1:P2EDDnMqIwG5Rrp05dTRITj9z2zpGcD9efWSkTNKLIE=
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
github.com/dustin/go-humanize v1.1.0 h1:dbKTrvD0klcbBV/h4AWJdMuZogJACoMlvWIWZ5b2xWg=
github.com/dustin/go-humanize v1.1.0/go.mod h1:hc1CvRkJMsgxqjmjMQF3QNRAZBwY8AXBAzKYoSX9sFI=
github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM=
github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE=
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
Expand All @@ -24,10 +22,6 @@ github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
github.com/go-fed/httpsig v1.1.0 h1:9M+hb0jkEICD8/cAiNqEB66R87tTINszBRTjwjQzWcI=
github.com/go-fed/httpsig v1.1.0/go.mod h1:RCMrTZvN1bJYtofsG4rd5NaO5obxQ5xBkdiS7xsT7bM=
github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=
github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs=
github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
Expand Down Expand Up @@ -69,8 +63,8 @@ github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0
github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ=
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU=
github.com/qdrant/qdrant-cloud-public-api v0.188.0 h1:GE+vJHBtTAfnW+WnHpzbj0iMgMDq1uOjc2gn7oI6M4w=
github.com/qdrant/qdrant-cloud-public-api v0.188.0/go.mod h1:7m6a2aCSN/G2JLs2c9mGQKCoaAFm1wUWO/WlVe3B9d0=
github.com/qdrant/qdrant-cloud-public-api v0.199.0 h1:nDOOEu2NdkejsXYYsyDfli0Cq4UBiUGs/tGNGKRrSbw=
github.com/qdrant/qdrant-cloud-public-api v0.199.0/go.mod h1:kp/X69V2f0g/eQtzl5k4R/RE6tgcKcgBTq/zmQxTOB0=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
Expand Down Expand Up @@ -103,18 +97,6 @@ github.com/ulikunitz/xz v0.5.15 h1:9DNdB5s+SgV3bQ2ApL10xRc35ck0DuIX/isZvIk+ubY=
github.com/ulikunitz/xz v0.5.15/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
gitlab.com/gitlab-org/api/client-go v1.46.0 h1:YxBWFZIFYKcGESCb9fpkwzouo+apyB9pr/XTWzNoL24=
gitlab.com/gitlab-org/api/client-go v1.46.0/go.mod h1:FtgyU6g2HS5+fMhw6nLK96GBEEBx5MzntOiJWfIaiN8=
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
go.opentelemetry.io/otel v1.44.0 h1:JjwHmHpA4iZ3wBxluu2fbbE7j4kqlE8jXyAyPXH7HqU=
go.opentelemetry.io/otel v1.44.0/go.mod h1:BMgjTHL9WPRlRjL2oZCBTL4whCGtXch2H4BhOPIAyYc=
go.opentelemetry.io/otel/metric v1.44.0 h1:1w0gILTcHdr3YI+ixLyjemwrVnsMURbTZFrSYCdDdmc=
go.opentelemetry.io/otel/metric v1.44.0/go.mod h1:8O7hanEPBNgEMmybD3s2VBKcgWOCsA6tzHBPODAiquo=
go.opentelemetry.io/otel/sdk v1.44.0 h1:nHYwb9lK+fJPU/dnT6s7W7Z8itMWyqrnVfbheVYrZ58=
go.opentelemetry.io/otel/sdk v1.44.0/go.mod h1:Osuydd3Se74nqjAKxid74N5eC+jfEqfTegHRnq58oK0=
go.opentelemetry.io/otel/sdk/metric v1.44.0 h1:3LlKgI+VjbVsjNRFZJZAJ30WjXC5VkNRks6si09iEfI=
go.opentelemetry.io/otel/sdk/metric v1.44.0/go.mod h1:5B5pMARnXxKhltooO4xUuCBorl65a4EpnTalObqOigA=
go.opentelemetry.io/otel/trace v1.44.0 h1:jxF5CsGYCe74MCRx2X4g7WsY/VBKRqqpNvXlX/6gtIk=
go.opentelemetry.io/otel/trace v1.44.0/go.mod h1:oLl1jrMQAVo6v3GAggN+1VH9VIz9iUSvW53sW1Q8PIE=
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw=
go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
Expand Down Expand Up @@ -151,8 +133,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20260713224248-f5fc221cf8c4 h1:
google.golang.org/genproto/googleapis/api v0.0.0-20260713224248-f5fc221cf8c4/go.mod h1:WRrQ7/7N19PypuT0fxLOL5Lq0waoiRri4FbtHDEKrGE=
google.golang.org/genproto/googleapis/rpc v0.0.0-20260713224248-f5fc221cf8c4 h1:7RtFDizMtT9eZzHzKxifoMGfcDBBy+LYZlgfg24ZmOM=
google.golang.org/genproto/googleapis/rpc v0.0.0-20260713224248-f5fc221cf8c4/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8=
google.golang.org/grpc v1.83.2 h1:EManeRomTObA0BU7I8vXgg/78uE5MJ9M8B39EX2WscU=
google.golang.org/grpc v1.83.2/go.mod h1:YPI1hK3kDked6iHvgX3tR0y+nX/qpMFKhPgFsokw1S8=
google.golang.org/grpc v1.84.0 h1:soMyaPJ8pAak5PIQ0DGBUir0XRo2fRoMqhNWMLlLxO0=
google.golang.org/grpc v1.84.0/go.mod h1:ljCht0DrxQrXBDRTZp52Qxh3Ffk8CdYm2sj4O2QN2C0=
google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc=
google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down
2 changes: 2 additions & 0 deletions internal/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
contextcmd "github.com/qdrant/qcloud-cli/internal/cmd/context"
"github.com/qdrant/qcloud-cli/internal/cmd/hybrid"
"github.com/qdrant/qcloud-cli/internal/cmd/iam"
"github.com/qdrant/qcloud-cli/internal/cmd/inference"
packagecmd "github.com/qdrant/qcloud-cli/internal/cmd/package"
"github.com/qdrant/qcloud-cli/internal/cmd/selfupgrade"
"github.com/qdrant/qcloud-cli/internal/cmd/version"
Expand Down Expand Up @@ -80,6 +81,7 @@ Documentation: https://github.com/qdrant/qcloud-cli`,
cmd.AddCommand(backup.NewCommand(s))
cmd.AddCommand(hybrid.NewCommand(s))
cmd.AddCommand(packagecmd.NewCommand(s))
cmd.AddCommand(inference.NewCommand(s))
cmd.AddCommand(selfupgrade.NewCommand(s))

return cmd
Expand Down
26 changes: 26 additions & 0 deletions internal/cmd/inference/inference.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package inference

import (
"github.com/spf13/cobra"

"github.com/qdrant/qcloud-cli/internal/state"
)

// NewCommand creates the "inference" parent command and registers all subcommands.
func NewCommand(s *state.State) *cobra.Command {
cmd := &cobra.Command{
Use: "inference",
Short: "Manage inference resources",
Long: `Inspect the inference models offered by Qdrant Cloud.

Inference models turn text or images into dense, sparse or multi vectors directly
inside Qdrant Cloud, so a cluster can embed documents and queries without a
separate embedding service. Which models are offered depends on the cloud
provider and region a cluster runs in.`,
Example: `# List the inference models available in a region
qcloud inference models list --cloud-provider aws --cloud-region eu-central-1`,
Args: cobra.NoArgs,
}
cmd.AddCommand(newModelsCommand(s))
return cmd
}
24 changes: 24 additions & 0 deletions internal/cmd/inference/models.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package inference

import (
"github.com/spf13/cobra"

"github.com/qdrant/qcloud-cli/internal/state"
)

func newModelsCommand(s *state.State) *cobra.Command {
cmd := &cobra.Command{
Use: "models",
Short: "Manage inference models",
Long: `Inspect the individual inference models offered by Qdrant Cloud.

A model is identified by its name (for example "cohere/*"), and describes the
vectors it produces: the vector type, the modality of the input it accepts, and
the dimensionality of its output.`,
Example: `# List the inference models available in a region
qcloud inference models list --cloud-provider aws --cloud-region eu-central-1`,
Args: cobra.NoArgs,
}
cmd.AddCommand(newModelsListCommand(s))
return cmd
}
Loading
Loading