fix(lightspeed): stop hardcoding vector_store_ids to product docs only#3626
Conversation
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.
Changed Packages
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3626 +/- ##
==========================================
+ Coverage 52.89% 52.93% +0.04%
==========================================
Files 2324 2324
Lines 89087 89268 +181
Branches 24900 24999 +99
==========================================
+ Hits 47122 47257 +135
- Misses 41740 41787 +47
+ Partials 225 224 -1
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
JslYoon
left a comment
There was a problem hiding this comment.
I believe we deliberately disabled rag.inline and only enabled tool.rag because the two conflicted and caused an infinite loop.
|
@rajin-kichannagari This PR is still valid and addresses a concern for both BYOK and OKP. I shared some insights on the Slack thread. Maybe we can chat more about this on the Parking Lot or we can discuss on Slack. |
|
…ins#3626 Update commit SHA to 6898e78 which includes the fix to stop hardcoding vector_store_ids to product docs only. Co-authored-by: Cursor <cursoragent@cursor.com>
…ins#3626 Update commit SHA to 6898e78 which includes the fix to stop hardcoding vector_store_ids to product docs only. Co-authored-by: Cursor <cursoragent@cursor.com>
redhat-developer#3626) * 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. * Add changeset for BYOK vector_store_ids fix --------- Co-authored-by: Rajin Kichannagari <rkichann@rkichann-thinkpadp1gen4i.boston.csb>



Summary
The backend plugin was explicitly setting
vector_store_idsto only therhdh-product-docsvector store, which prevented BYOK RAG sources configured inrag.inlinefrom being queried via inline RAG.By removing this override, the lightspeed-stack uses its own
rag.inlineconfig to determine which stores to query, enabling multi-source RAG.Context
When BYOK knowledge sources are configured in
lightspeed-stack.yaml, the_fetch_byok_rag()function in lightspeed-stack filters the request'svector_store_idsagainstrag.inline. Since the plugin was only sending the product docs store ID, BYOK stores were always filtered out and inline RAG was silently skipped.✔️ Checklist