Skip to content

Commit 09c942a

Browse files
author
Rajin Kichannagari
committed
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.
1 parent 9881bf8 commit 09c942a

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

  • workspaces/lightspeed/plugins/lightspeed-backend/src/service

workspaces/lightspeed/plugins/lightspeed-backend/src/service/router.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ export async function createRouter(
134134
lightspeedCoreBaseUrl,
135135
logger,
136136
);
137-
let lightspeed_vector_store_id: string = '';
138-
139137
// Parse admin-configured MCP servers from app-config.
140138
// Only name is required; token is optional (users can provide their own via the UI).
141139
// URLs come from LCS (GET /v1/mcp-servers), not from app-config.
@@ -601,19 +599,6 @@ export async function createRouter(
601599

602600
logger.info(`/v1/query receives call from user: ${userEntityRef}`);
603601

604-
// get the vector store id for the rhdh-product-docs vector store
605-
if (lightspeed_vector_store_id === '') {
606-
const vectorStores = await vectorStoresOperator.vectorStores.list();
607-
lightspeed_vector_store_id =
608-
vectorStores.data.find((v: any) =>
609-
v.name.startsWith('rhdh-product-docs'),
610-
)?.id || '';
611-
}
612-
613-
if (lightspeed_vector_store_id !== '') {
614-
request.body.vector_store_ids = [lightspeed_vector_store_id];
615-
}
616-
617602
const userQueryParam = `user_id=${encodeURIComponent(userEntityRef)}`;
618603
request.body.media_type = 'application/json'; // set media_type to receive start and end event
619604
// if system_prompt is defined in lightspeed config

0 commit comments

Comments
 (0)