Skip to content

feat: pass resourceContext to embedded qa-bot#397

Merged
bacalj merged 1 commit into3.0.xfrom
feature/resource-scoping
Apr 8, 2026
Merged

feat: pass resourceContext to embedded qa-bot#397
bacalj merged 1 commit into3.0.xfrom
feature/resource-scoping

Conversation

@bacalj
Copy link
Copy Markdown
Collaborator

@bacalj bacalj commented Apr 7, 2026

Summary

One-line change: read data-resource-context from the .embedded-qa-bot div and pass it as resourceContext to qaBot().

When the attribute is present (already populated by the RP preprocess hook), the bot fetches resource-scoped capabilities and sends scoped RAG queries.

When absent, undefined is passed and behavior is unchanged.

Companion PRs

🤖 Generated with Claude Code

Read data-resource-context attribute from the .embedded-qa-bot div
and pass it as resourceContext to qaBot(). Enables resource-scoped
capabilities and RAG queries when the bot is embedded on RP
documentation pages.

The attribute is already populated by the preprocess hook on RP
nodes. When present, the bot shows resource-specific suggested
questions and scopes RAG answers to that resource.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bacalj bacalj merged commit 3b6c22f into 3.0.x Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant