From 09c942ad03eef6328f6f8a442d11ba7debdcc22c Mon Sep 17 00:00:00 2001 From: Rajin Kichannagari Date: Mon, 29 Jun 2026 11:40:09 -0400 Subject: [PATCH 1/2] fix(lightspeed): stop hardcoding vector_store_ids to product docs only The backend plugin was explicitly setting vector_store_ids to only the rhdh-product-docs vector store, which prevented BYOK (Bring Your Own Knowledge) RAG sources from being queried via inline RAG. By removing this override, the lightspeed-stack uses its own rag.inline config to determine which stores to query, enabling multi-source RAG. --- .../lightspeed-backend/src/service/router.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/workspaces/lightspeed/plugins/lightspeed-backend/src/service/router.ts b/workspaces/lightspeed/plugins/lightspeed-backend/src/service/router.ts index cfed3b1112..d3f2d29066 100644 --- a/workspaces/lightspeed/plugins/lightspeed-backend/src/service/router.ts +++ b/workspaces/lightspeed/plugins/lightspeed-backend/src/service/router.ts @@ -134,8 +134,6 @@ export async function createRouter( lightspeedCoreBaseUrl, logger, ); - let lightspeed_vector_store_id: string = ''; - // Parse admin-configured MCP servers from app-config. // Only name is required; token is optional (users can provide their own via the UI). // URLs come from LCS (GET /v1/mcp-servers), not from app-config. @@ -601,19 +599,6 @@ export async function createRouter( logger.info(`/v1/query receives call from user: ${userEntityRef}`); - // get the vector store id for the rhdh-product-docs vector store - if (lightspeed_vector_store_id === '') { - const vectorStores = await vectorStoresOperator.vectorStores.list(); - lightspeed_vector_store_id = - vectorStores.data.find((v: any) => - v.name.startsWith('rhdh-product-docs'), - )?.id || ''; - } - - if (lightspeed_vector_store_id !== '') { - request.body.vector_store_ids = [lightspeed_vector_store_id]; - } - const userQueryParam = `user_id=${encodeURIComponent(userEntityRef)}`; request.body.media_type = 'application/json'; // set media_type to receive start and end event // if system_prompt is defined in lightspeed config From 5ae204fc6e0ebfb5f9370f9e02e0608f01d1ad2f Mon Sep 17 00:00:00 2001 From: Rajin Kichannagari Date: Mon, 29 Jun 2026 11:51:20 -0400 Subject: [PATCH 2/2] Add changeset for BYOK vector_store_ids fix --- .../lightspeed/.changeset/fix-byok-vector-store-ids.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 workspaces/lightspeed/.changeset/fix-byok-vector-store-ids.md diff --git a/workspaces/lightspeed/.changeset/fix-byok-vector-store-ids.md b/workspaces/lightspeed/.changeset/fix-byok-vector-store-ids.md new file mode 100644 index 0000000000..21e14b84e9 --- /dev/null +++ b/workspaces/lightspeed/.changeset/fix-byok-vector-store-ids.md @@ -0,0 +1,5 @@ +--- +'@red-hat-developer-hub/backstage-plugin-lightspeed-backend': patch +--- + +Removed hardcoded vector_store_ids override to enable BYOK RAG sources