Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
add: keyword filter search via -w/--keyword flags on retrieve/askdir +
Browse files Browse the repository at this point in the history
--dataset/-d flag can be used multiple times to select multiple datasets
  • Loading branch information
iwilltry42 committed Aug 13, 2024
1 parent 783e2ea commit 7ac9bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/retrieve.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import (

type ClientRetrieve struct {
Client
Datasets []string `usage:"Target Dataset IDs" short:"d" default:"default" env:"KNOW_TARGET_DATASETS"`
Datasets []string `usage:"Target Dataset IDs" short:"d" default:"default" env:"KNOW_TARGET_DATASETS" name:"dataset"`
Archive string `usage:"Path to the archive file"`
ClientRetrieveOpts
ClientFlowsConfig
}

type ClientRetrieveOpts struct {
TopK int `usage:"Number of sources to retrieve" short:"k" default:"10"`
Keywords []string `usage:"Keywords that retrieved documents must contain" short:"w"`
Keywords []string `usage:"Keywords that retrieved documents must contain" short:"w" name:"keyword" env:"KNOW_RETRIEVE_KEYWORDS"`
}

func (s *ClientRetrieve) Customize(cmd *cobra.Command) {
Expand Down

0 comments on commit 7ac9bb3

Please sign in to comment.