Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { Server string `usage:"URL of the Knowledge API Server" default:"" env:"KNOW_SERVER_URL"` types.OpenAIConfig types.DatabaseConfig types.VectorDBConfig }
type ClientCreateDataset ¶
type ClientCreateDataset struct { Client EmbedDim int `usage:"Embedding dimension" default:"1536"` }
func (*ClientCreateDataset) Customize ¶
func (s *ClientCreateDataset) Customize(cmd *cobra.Command)
type ClientDeleteDataset ¶
type ClientDeleteDataset struct {
Client
}
func (*ClientDeleteDataset) Customize ¶
func (s *ClientDeleteDataset) Customize(cmd *cobra.Command)
type ClientGetDataset ¶
type ClientGetDataset struct {
Client
}
func (*ClientGetDataset) Customize ¶
func (s *ClientGetDataset) Customize(cmd *cobra.Command)
type ClientIngest ¶
type ClientIngest struct { Client Dataset string `usage:"Target Dataset ID" short:"d" default:"default" env:"KNOW_TARGET_DATASET"` IgnoreExtensions string `usage:"Comma-separated list of file extensions to ignore" env:"KNOW_INGEST_IGNORE_EXTENSIONS"` Concurrency int `usage:"Number of concurrent ingestion processes" short:"c" default:"10" env:"KNOW_INGEST_CONCURRENCY"` Recursive bool `usage:"Recursively ingest directories" short:"r" default:"false" env:"KNOW_INGEST_RECURSIVE"` }
func (*ClientIngest) Customize ¶
func (s *ClientIngest) Customize(cmd *cobra.Command)
type ClientListDatasets ¶
type ClientListDatasets struct {
Client
}
func (*ClientListDatasets) Customize ¶
func (s *ClientListDatasets) Customize(cmd *cobra.Command)
type ClientResetDatastore ¶
type ClientResetDatastore struct {
Client
}
func (*ClientResetDatastore) Customize ¶
func (s *ClientResetDatastore) Customize(cmd *cobra.Command)
type ClientRetrieve ¶
type ClientRetrieve struct { Client Dataset string `usage:"Target Dataset ID" short:"d" default:"default" env:"KNOW_TARGET_DATASET"` TopK int `usage:"Number of sources to retrieve" short:"k" default:"5"` }
func (*ClientRetrieve) Customize ¶
func (s *ClientRetrieve) Customize(cmd *cobra.Command)
type Server ¶
type Server struct { ServerURL string `usage:"Server URL" default:"http://localhost" env:"KNOW_SERVER_URL"` ServerPort string `usage:"Server port" default:"8000" env:"KNOW_SERVER_PORT"` ServerAPIBase string `usage:"Server API base" default:"/v1" env:"KNOW_SERVER_API_BASE"` types.OpenAIConfig types.DatabaseConfig types.VectorDBConfig }
Server is the Server CLI command
Click to show internal directories.
Click to hide internal directories.