Skip to content

Commit 36e23f1

Browse files
committed
Default OKPRagOnly to true
Change OKPRagOnly default to true, making OKP the only RAG source by default. Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
1 parent a59ac6b commit 36e23f1

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

api/v1beta1/openstacklightspeed_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ const (
5656
// Supported fields:
5757
// - featureFlags: list of experimental feature flags to enable
5858
// - okpChunkFilterQuery: Solr filter query for OKP searches (default: "product:(*openstack* OR *openshift*)")
59-
// - okpRagOnly: when true, only OKP is used as a RAG source (default: false)
59+
// - okpRagOnly: when true, only OKP is used as a RAG source (default: true)
6060
type DevSpec struct {
6161
FeatureFlags []string `json:"featureFlags,omitempty"`
6262
OKPChunkFilterQuery string `json:"okpChunkFilterQuery,omitempty"`
63-
OKPRagOnly bool `json:"okpRagOnly,omitempty"`
63+
OKPRagOnly *bool `json:"okpRagOnly,omitempty"`
6464
}
6565

6666
// OKPSpec defines configuration for the Offline Knowledge Portal (OKP).

api/v1beta1/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/controller/lcore_deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func buildInitContainers(
302302
"--lightspeed-stack-path", LightspeedStackInitContainerMountPath,
303303
}
304304
devConfig, _ := parseDevConfig(instance)
305-
if devConfig.OKPRagOnly {
305+
if devConfig.OKPRagOnly == nil || *devConfig.OKPRagOnly {
306306
configBuildCmd = append(configBuildCmd, "--disable-rag-entries")
307307
}
308308

0 commit comments

Comments
 (0)