cmd

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const HTTPS = "https"

Variables

This section is empty.

Functions

func Execute

func Execute(projectVersion, projectBuild string)

func NewParser added in v0.2.0

func NewParser(args []string) (*kong.Context, error)

Types

type CLI

type CLI struct {
	Globals

	Qdrant   MigrateFromQdrantCmd   `cmd:"" help:"Migrate data from a Qdrant database to Qdrant."`
	Milvus   MigrateFromMilvusCmd   `cmd:"" help:"Migrate data from a Milvus database to Qdrant."`
	Pinecone MigrateFromPineconeCmd `cmd:"" help:"Migrate data from a Pinecone database to Qdrant."`
	Chroma   MigrateFromChromaCmd   `cmd:"" help:"Migrate data from a Chroma database to Qdrant."`
	Weaviate MigrateFromWeaviateCmd `cmd:"" help:"Migrate data from a Weaviate database to Qdrant."`
	Redis    MigrateFromRedisCmd    `cmd:"" help:"Migrate data from a Redis database to Qdrant."`
}

type Globals

type Globals struct {
	Debug               bool             `help:"Enable debug mode."`
	Trace               bool             `help:"Enable trace mode."`
	SkipTlsVerification bool             `help:"Skip TLS verification."`
	Version             kong.VersionFlag `name:"version" help:"Print version information and quit"`
}

type MigrateFromChromaCmd added in v0.2.0

type MigrateFromChromaCmd struct {
	Chroma        commons.ChromaConfig    `embed:"" prefix:"chroma."`
	Qdrant        commons.QdrantConfig    `embed:"" prefix:"qdrant."`
	Migration     commons.MigrationConfig `embed:"" prefix:"migration."`
	IdField       string                  `prefix:"qdrant." help:"Field storing Chroma IDs in Qdrant." default:"__id__"`
	DenseVector   string                  `prefix:"qdrant." help:"Name of the dense vector in Qdrant" default:"dense_vector"`
	Distance      string                  `prefix:"qdrant." enum:"cosine,dot,euclid,manhattan" help:"Distance metric for the Qdrant collection" default:"euclid"`
	DocumentField string                  `prefix:"qdrant." help:"Field storing Chroma documents in Qdrant." default:"document"`
	// contains filtered or unexported fields
}

func (*MigrateFromChromaCmd) Parse added in v0.2.0

func (r *MigrateFromChromaCmd) Parse() error

func (*MigrateFromChromaCmd) Run added in v0.2.0

func (r *MigrateFromChromaCmd) Run(globals *Globals) error

func (*MigrateFromChromaCmd) Validate added in v0.2.0

func (r *MigrateFromChromaCmd) Validate() error

type MigrateFromMilvusCmd added in v0.2.0

type MigrateFromMilvusCmd struct {
	Milvus         commons.MilvusConfig    `embed:"" prefix:"milvus."`
	Qdrant         commons.QdrantConfig    `embed:"" prefix:"qdrant."`
	Migration      commons.MigrationConfig `embed:"" prefix:"migration."`
	DistanceMetric map[string]string       `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MigrateFromMilvusCmd) Parse added in v0.2.0

func (r *MigrateFromMilvusCmd) Parse() error

func (*MigrateFromMilvusCmd) Run added in v0.2.0

func (r *MigrateFromMilvusCmd) Run(globals *Globals) error

func (*MigrateFromMilvusCmd) Validate added in v0.2.0

func (r *MigrateFromMilvusCmd) Validate() error

type MigrateFromPineconeCmd added in v0.2.0

type MigrateFromPineconeCmd struct {
	Pinecone     commons.PineconeConfig  `embed:"" prefix:"pinecone."`
	Qdrant       commons.QdrantConfig    `embed:"" prefix:"qdrant."`
	Migration    commons.MigrationConfig `embed:"" prefix:"migration."`
	IdField      string                  `prefix:"qdrant." help:"Field storing Pinecone IDs in Qdrant." default:"__id__"`
	DenseVector  string                  `prefix:"qdrant." help:"Name of the dense vector in Qdrant" default:"dense_vector"`
	SparseVector string                  `prefix:"qdrant." help:"Name of the sparse vector in Qdrant" default:"sparse_vector"`
	// contains filtered or unexported fields
}

func (*MigrateFromPineconeCmd) Parse added in v0.2.0

func (r *MigrateFromPineconeCmd) Parse() error

func (*MigrateFromPineconeCmd) Run added in v0.2.0

func (r *MigrateFromPineconeCmd) Run(globals *Globals) error

func (*MigrateFromPineconeCmd) Validate added in v0.2.0

func (r *MigrateFromPineconeCmd) Validate() error

type MigrateFromQdrantCmd

type MigrateFromQdrantCmd struct {
	Source               commons.QdrantConfig    `embed:"" prefix:"source."`
	Target               commons.QdrantConfig    `embed:"" prefix:"target."`
	Migration            commons.MigrationConfig `embed:"" prefix:"migration."`
	EnsurePayloadIndexes bool                    `help:"Ensure payload indexes are created" default:"true" prefix:"target."`
	// contains filtered or unexported fields
}

func (*MigrateFromQdrantCmd) Parse

func (r *MigrateFromQdrantCmd) Parse() error

func (*MigrateFromQdrantCmd) Run

func (r *MigrateFromQdrantCmd) Run(globals *Globals) error

func (*MigrateFromQdrantCmd) Validate

func (r *MigrateFromQdrantCmd) Validate() error

func (*MigrateFromQdrantCmd) ValidateParsedValues added in v0.1.0

func (r *MigrateFromQdrantCmd) ValidateParsedValues() error

type MigrateFromRedisCmd added in v0.2.0

type MigrateFromRedisCmd struct {
	Redis     commons.RedisConfig     `embed:"" prefix:"redis."`
	Qdrant    commons.QdrantConfig    `embed:"" prefix:"qdrant."`
	Migration commons.MigrationConfig `embed:"" prefix:"migration."`
	IdField   string                  `prefix:"qdrant." help:"Field storing Redis IDs in Qdrant." default:"__id__"`
	// contains filtered or unexported fields
}

func (*MigrateFromRedisCmd) Parse added in v0.2.0

func (r *MigrateFromRedisCmd) Parse() error

func (*MigrateFromRedisCmd) Run added in v0.2.0

func (r *MigrateFromRedisCmd) Run(globals *Globals) error

func (*MigrateFromRedisCmd) Validate added in v0.2.0

func (r *MigrateFromRedisCmd) Validate() error

type MigrateFromWeaviateCmd added in v0.2.0

type MigrateFromWeaviateCmd struct {
	Weaviate  commons.WeaviateConfig  `embed:"" prefix:"weaviate."`
	Qdrant    commons.QdrantConfig    `embed:"" prefix:"qdrant."`
	Migration commons.MigrationConfig `embed:"" prefix:"migration."`
	// contains filtered or unexported fields
}

func (*MigrateFromWeaviateCmd) Parse added in v0.2.0

func (r *MigrateFromWeaviateCmd) Parse() error

func (*MigrateFromWeaviateCmd) Run added in v0.2.0

func (r *MigrateFromWeaviateCmd) Run(globals *Globals) error

func (*MigrateFromWeaviateCmd) Validate added in v0.2.0

func (r *MigrateFromWeaviateCmd) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL