Skip to content

Commit 1b5f304

Browse files
committed
OLS-1980: Add autodiscovery for indexID value
1 parent 88273b5 commit 1b5f304

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

api/v1alpha1/olsconfig_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ type RAGSpec struct {
139139
// +kubebuilder:default:="/rag/vector_db"
140140
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Index Path in the Image"
141141
IndexPath string `json:"indexPath,omitempty"`
142-
// The Index ID of the RAG database
143-
// +kubebuilder:default:="vector_db_index"
142+
// The Index ID of the RAG database. Only needed if there are multiple indices in the database.
143+
// +kubebuilder:default:=""
144144
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Index ID"
145145
IndexID string `json:"indexID,omitempty"`
146146
// The URL of the container image to use as a RAG source

config/crd/bases/ols.openshift.io_olsconfigs.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,8 +1027,9 @@ spec:
10271027
RAG source
10281028
type: string
10291029
indexID:
1030-
default: vector_db_index
1031-
description: The Index ID of the RAG database
1030+
default: ""
1031+
description: The Index ID of the RAG database. Only needed
1032+
if there are multiple indices in the database.
10321033
type: string
10331034
indexPath:
10341035
default: /rag/vector_db

docs/olsconfig-ols-openshift-io-v1alpha1.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@ Required::
17551755

17561756
| `indexID`
17571757
| `string`
1758-
| The Index ID of the RAG database
1758+
| The Index ID of the RAG database. Only needed if there are multiple indices in the database.
17591759

17601760
| `indexPath`
17611761
| `string`

0 commit comments

Comments
 (0)