Package Exports
- @roadiehq/rag-ai
- @roadiehq/rag-ai/dist/index.esm.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@roadiehq/rag-ai) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
⚠️ Reference Implementation Only
The rag-ai plugin and its modules are a reference implementation provided for demonstration and educational purposes.
We provide minimal support for these components and do not actively maintain or update them.
Roadie RAG AI Frontend plugin for Backstage
This plugin is the frontend for RAG AI Backstage plugin. You can see the corresponding backend plugin in here.

Getting started
The plugin exposes a single Modal React component which can be triggered on the application UI by pressing ctrl+, (control + comma).

You can ask the plugin information about your catalog and request assistance on how to better interact with the catalog entities that have been configured to your system. The plugin provides functionality to call the RAG AI backend, which enhances your queries with additional context and requests responses from configured LLMs to provide answers based on that context.

Depending on how you implement your Embeddings providers and retrieval functionality, you can use the LLM, for example, to construct specific code samples from your Catalog Entity API endpoints, while using the wider knowledge of specific best practices from various programming languages and frameworks.

Configuration
To configure the frontend plugin, you need to do two things:
- Create an API client for the frontend plugin
- Add the exposed UI element into the application
Adding the UI components into the application
The plugin exposes a single UI component which is used to communicate with the application Backend. You can register this
App.tsx
// packages/app/src/App.tsx
import { RagModal } from '@roadiehq/rag-ai';
...
const App = () => (
<AppProvider>
<AlertDisplay />
<OAuthRequestDialog />
<AppRouter>
<RagModal />
<Root>{routes}</Root>
</AppRouter>
</AppProvider>
);You can also choose to use the SidebarRagModal component instead. In addition to using a hotkey, this will allow you to open the modal from the sidebar as well.
// packages/app/src/components/Root/Root.tsx
import { SidebarRagModal } from '@roadiehq/rag-ai';
...
export const Root = ({ children }: PropsWithChildren<{}>) => (
<SidebarPage>
<Sidebar>
<SidebarLogo />
<SidebarSearch />
<SidebarRagModal />
...
</Sidebar>
{children}
</SidebarPage>
);Roadie gives you a hassle-free, fully customisable SaaS Backstage. Find out more here: https://roadie.io.