Documentation
¶
Index ¶
- func New() *cobra.Command
- type Client
- type ClientAskDir
- type ClientCreateDataset
- type ClientDeleteDataset
- type ClientFlowsConfig
- type ClientGetDataset
- type ClientIngest
- type ClientIngestOpts
- type ClientListDatasets
- type ClientResetDatastore
- type ClientRetrieve
- type ClientRetrieveOpts
- type Knowledge
- type Server
- type Version
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"` config.OpenAIConfig config.DatabaseConfig config.VectorDBConfig }
type ClientAskDir ¶ added in v0.1.3
type ClientAskDir struct { Client Path string `usage:"Path to the directory to query" short:"p" default:"./knowledge"` ClientIngestOpts ClientRetrieveOpts ClientFlowsConfig }
func (*ClientAskDir) Customize ¶ added in v0.1.3
func (s *ClientAskDir) Customize(cmd *cobra.Command)
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 ClientFlowsConfig ¶ added in v0.1.6
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"` ClientIngestOpts textsplitter.TextSplitterOpts ClientFlowsConfig }
func (*ClientIngest) Customize ¶
func (s *ClientIngest) Customize(cmd *cobra.Command)
type ClientIngestOpts ¶ added in v0.1.3
type ClientIngestOpts struct { 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"` }
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"` ClientRetrieveOpts ClientFlowsConfig }
func (*ClientRetrieve) Customize ¶
func (s *ClientRetrieve) Customize(cmd *cobra.Command)
type ClientRetrieveOpts ¶ added in v0.1.3
type ClientRetrieveOpts struct {
TopK int `usage:"Number of sources to retrieve" short:"k" default:"5"`
}
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"` config.OpenAIConfig config.DatabaseConfig config.VectorDBConfig }
Server is the Server CLI command
Click to show internal directories.
Click to hide internal directories.