vdb

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HealthCmd = &cobra.Command{
	Use:   "health [DATABASE_NAME]",
	Short: "Check vector database health",
	Long: `Check the health status of vector databases.

If no database name is provided, checks all configured databases.
If a database name is provided, checks only that database.

Examples:
  weave vdb health                  # Check all databases
  weave vdb health weaviate-cloud   # Check specific database
  weave vdb health --cloud          # Check only cloud databases
  weave vdb health --local          # Check only local databases
  weave vdb health -t 5s            # Quick health check with 5s timeout`,
	Run: func(cmd *cobra.Command, args []string) {

		fmt.Println("\n💡 Tip: Use 'weave health check' for database health checks")
		fmt.Println("   The vdb health command will be fully implemented in the next release.")
		fmt.Println("\nFor now, try:")
		if len(args) > 0 {
			fmt.Printf("   weave health check %s\n", args[0])
		} else {
			fmt.Println("   weave health check")
		}
		fmt.Println()
	},
}

HealthCmd represents the vdb health command

View Source
var InfoCmd = &cobra.Command{
	Use:   "info DATABASE_NAME",
	Short: "Show detailed database information",
	Long: `Show detailed information about a specific vector database configuration.

Displays:
- Database name and type
- Connection endpoint (URL/address)
- Authentication status
- Timeout configuration
- Vector settings (dimensions, similarity metric)
- Configured collections

Examples:
  weave vdb info weaviate-cloud
  weave vdb info milvus-local
  weave vdb info qdrant-cloud`,
	Args: cobra.ExactArgs(1),
	Run:  runVDBInfo,
}

InfoCmd represents the vdb info command

View Source
var ListCmd = &cobra.Command{
	Use:     "list",
	Aliases: []string{"ls"},
	Short:   "List all configured vector databases",
	Long: `List all configured vector databases with their types and connection status.

Shows:
- Database name
- Type (weaviate-cloud, milvus-local, etc.)
- URL/Address
- Status indicator

Examples:
  weave vdb list              # List all databases
  weave vdb ls                # Same (alias)
  weave vdb list --cloud      # List only cloud databases
  weave vdb list --local      # List only local databases`,
	Run: runVDBList,
}

ListCmd represents the vdb list command

View Source
var VDBCmd = &cobra.Command{
	Use:     "vdb",
	Aliases: []string{"db", "database"},
	Short:   "Vector database management",
	Long: `Manage vector database connections and configurations.

This command provides subcommands for working with vector databases:
- list: Show all configured databases
- health: Check database health status
- info: Show detailed information about a database

Examples:
  weave vdb list                    # List all configured databases
  weave vdb health                  # Check health of all databases
  weave vdb health weaviate-cloud   # Check health of specific database
  weave vdb info weaviate-cloud     # Show database details`,
}

VDBCmd represents the vdb command

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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