Skip to content

fix(lightspeed): stop hardcoding vector_store_ids to product docs only#3626

Merged
rajin-kichannagari merged 2 commits into
redhat-developer:mainfrom
rajin-kichannagari:fix/byok-vector-store-ids
Jul 13, 2026
Merged

fix(lightspeed): stop hardcoding vector_store_ids to product docs only#3626
rajin-kichannagari merged 2 commits into
redhat-developer:mainfrom
rajin-kichannagari:fix/byok-vector-store-ids

Conversation

@rajin-kichannagari

Copy link
Copy Markdown
Contributor

Summary

The backend plugin was explicitly setting vector_store_ids to only the rhdh-product-docs vector store, which prevented BYOK RAG sources configured in rag.inline 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.

Context

When BYOK knowledge sources are configured in lightspeed-stack.yaml, the _fetch_byok_rag() function in lightspeed-stack filters the request's vector_store_ids against rag.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

  • A changeset describing the change and affected packages.
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

Rajin Kichannagari added 2 commits June 29, 2026 11:40
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.
@rhdh-gh-app

rhdh-gh-app Bot commented Jun 29, 2026

Copy link
Copy Markdown

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-lightspeed-backend workspaces/lightspeed/plugins/lightspeed-backend patch v2.9.1

@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.93%. Comparing base (9881bf8) to head (5ae204f).
⚠️ Report is 7 commits behind head on main.
✅ All tests successful. No failed tests found.

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     
Flag Coverage Δ *Carryforward flag
adoption-insights 83.70% <ø> (ø) Carriedforward from 9881bf8
ai-integrations 67.95% <ø> (ø) Carriedforward from 9881bf8
app-defaults 69.79% <ø> (ø) Carriedforward from 9881bf8
augment 46.39% <ø> (ø) Carriedforward from 9881bf8
boost 74.35% <ø> (ø) Carriedforward from 9881bf8
bulk-import 72.46% <ø> (ø) Carriedforward from 9881bf8
cost-management 14.10% <ø> (ø) Carriedforward from 9881bf8
dcm 61.81% <ø> (ø) Carriedforward from 9881bf8
extensions 61.53% <ø> (ø) Carriedforward from 9881bf8
global-floating-action-button 71.18% <ø> (ø) Carriedforward from 9881bf8
global-header 59.71% <ø> (ø) Carriedforward from 9881bf8
homepage 49.84% <ø> (ø) Carriedforward from 9881bf8
install-dynamic-plugins 56.77% <ø> (ø) Carriedforward from 9881bf8
konflux 91.49% <ø> (ø) Carriedforward from 9881bf8
lightspeed 68.74% <ø> (+0.19%) ⬆️
mcp-integrations 85.46% <ø> (ø) Carriedforward from 9881bf8
orchestrator 37.11% <ø> (ø) Carriedforward from 9881bf8
quickstart 63.76% <ø> (ø) Carriedforward from 9881bf8
sandbox 79.56% <ø> (ø) Carriedforward from 9881bf8
scorecard 82.67% <ø> (ø) Carriedforward from 9881bf8
theme 61.26% <ø> (ø) Carriedforward from 9881bf8
translations 7.25% <ø> (ø) Carriedforward from 9881bf8
x2a 57.25% <ø> (ø) Carriedforward from 9881bf8

*This pull request uses carry forward flags. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9881bf8...5ae204f. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JslYoon JslYoon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we deliberately disabled rag.inline and only enabled tool.rag because the two conflicted and caused an infinite loop.

@maysunfaisal

maysunfaisal commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

@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.

@sonarqubecloud

Copy link
Copy Markdown

@maysunfaisal maysunfaisal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rajin-kichannagari
rajin-kichannagari merged commit 6898e78 into redhat-developer:main Jul 13, 2026
76 checks passed
maysunfaisal added a commit to redhat-developer/rhdh-plugin-export-overlays that referenced this pull request Jul 13, 2026
…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>
maysunfaisal added a commit to redhat-developer/rhdh-plugin-export-overlays that referenced this pull request Jul 13, 2026
…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>
HusneShabbir pushed a commit to HusneShabbir/rhdh-plugins that referenced this pull request Jul 16, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants