Skip to content

ENG-24977 initial draft on how to enable and access the chatbot inter… #808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

chtyler
Copy link
Contributor

@chtyler chtyler commented Jun 6, 2025

…face within a dsp

Description

By using LlamaStack, you can now integrate an Llama 3.2 LLM model into a data science project. This is in the form of a chat bot interface, which can be accessed from the dashboard from within a data science project's details page. By default, this feature is disabled and hidden behind a feature flag.

How Has This Been Tested?

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

Summary by CodeRabbit

  • Documentation
    • Added a new guide detailing how to access and enable the chat bot interface within data science projects, including prerequisites, step-by-step instructions, and verification steps for successful interaction.

@jiridanek
Copy link
Member

smccarthy-ie
smccarthy-ie previously approved these changes Jun 9, 2025
Copy link
Contributor

@smccarthy-ie smccarthy-ie left a comment

Choose a reason for hiding this comment

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

LGTM :)

:_module-type: PROCEDURE

[id="accessing-the-chat-bot-interface_{context}"]
= Accessing the chat bot interface

Choose a reason for hiding this comment

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

@alexcreasy, in RHOAI 2.21 RC1, when following these instructions I see the Chatbot tab appearing in Dashboard but, when writing in the chat, nothing happens. Looking at the Network tab in the Developer Tools there are no network calls.

Is it possible that we need ODH master to run the chatbot?

@chtyler chtyler force-pushed the ENG-24977-accessing-chatbot-interface branch from bf5d244 to 15acbc3 Compare June 11, 2025 19:40
Copy link

coderabbitai bot commented Jun 11, 2025

Walkthrough

A new procedural documentation module has been introduced, detailing the steps required to access and enable a Llama stack LLM chat bot interface within a data science project on the OpenShift platform. The guide outlines prerequisites, configuration steps, navigation instructions, and verification procedures for successful chat bot usage.

Changes

File(s) Change Summary
modules/accessing-the-chat-bot-interface.adoc Added new documentation module describing how to enable and access the Llama stack LLM chat bot interface

Poem

In data fields where models chat,
A new guide shows just where it’s at.
Flip the flag, unlock the bot,
Ask your questions on the spot!
With dashboards bright and answers keen,
The Llama stack now joins the scene.
🐇✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (4)
modules/accessing-the-chat-bot-interface.adoc (4)

6-8: Use the standard AsciiDoc abstract block
Instead of [role='_abstract'], consider using the built-in [abstract] block for clarity and consistency. For example:

-[role='_abstract']
+ [abstract]
 Embedding a Llama stack large language model (LLM) chat bot interface…

20-23: Rephrase prerequisites as actions
To improve consistency with other procedures, reword bullets to start with an imperative verb. For example:

-* You have logged in to {productname-long}.
+* Log in to {productname-long}.
-* The `disableLlamaStackClient` feature flag value is set to `false` in the `OdhDashboardConfig` custom resource (CR) in {openshift-platform}.
+* Set the `disableLlamaStackClient` feature flag to `false` in the `OdhDashboardConfig` CR in {openshift-platform}.

34-42: Standardize UI element styling
Italicizing tab names (*Chat bot*) can clash with list markers. It’s clearer to use monospace or quotes for UI elements. For example:

-. Click the *Chat bot* tab.
+ . Click the `Chat bot` tab.
-The LlamaStack chat bot interface displays.
+ The LlamaStack chat bot interface displays.

45-46: Avoid nested asterisks in bullet lists
Using *Chat bot* inside a *-bulleted list can break markup. Use underscores for emphasis or backticks:

-* You can access the *Chat bot* tab from within a data science project.
+* You can access the _Chat bot_ tab from within a data science project.
-* You can successfully send queries to the chat bot and then receive relevant answers.
+* You can successfully send queries to the chat bot and then receive relevant answers.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 05ca425 and 15acbc3.

📒 Files selected for processing (1)
  • modules/accessing-the-chat-bot-interface.adoc (1 hunks)
🔇 Additional comments (2)
modules/accessing-the-chat-bot-interface.adoc (2)

1-1: Verify the module attribute name
The attribute _module-type with a leading underscore may not be recognized by the documentation tool. Confirm whether this should be :module-type: PROCEDURE instead of :_module-type: to align with the rest of the docs.


9-11:

❓ Verification inconclusive

Confirm the feature-flag field name
The guide refers to the disableLlamaStackClient flag in OdhDashboardConfig. Please verify this exact field exists in the CRD and that its default value is true.


🏁 Script executed:

#!/bin/bash
# Verify the CRD schema for disableLlamaStackClient
ast-grep --pattern $'custom-resource-definition {\n  $$$\n  spec {\n    $$$\n    disableLlamaStackClient: $_\n    $$$\n  }\n  $$$\n}'

Length of output: 126


🏁 Script executed:

#!/bin/bash
# Search for any references to disableLlamaStackClient in the repository
rg --color=never -n 'disableLlamaStackClient' .

Length of output: 591


🏁 Script executed:

#!/bin/bash
# Locate CRD definitions for OdhDashboardConfig
echo "Searching for OdhDashboardConfig CRD files..."
crd_files=$(rg --color=never -l 'kind: *OdhDashboardConfig' .)

if [[ -z "$crd_files" ]]; then
  echo "No CRD files found containing 'kind: OdhDashboardConfig'."
  exit 0
fi

echo "Found CRD files:"
echo "$crd_files"
echo

# Search each CRD file for disableLlamaStackClient property and its default
for file in $crd_files; do
  echo "=== $file ==="
  rg --color=never -C3 'disableLlamaStackClient' "$file" || echo "  disableLlamaStackClient not found in this file."
  echo
done

Length of output: 320


Confirm OdhDashboardConfig feature‐flag existence & default
I was unable to locate the OdhDashboardConfig CRD schema in this repo. Please manually verify that the upstream CustomResourceDefinition for OdhDashboardConfig:

  • Defines the disableLlamaStackClient field
  • Sets its default value to true

@opendatahub-io opendatahub-io deleted a comment from coderabbitai bot Jun 11, 2025
@chtyler
Copy link
Contributor Author

chtyler commented Jun 20, 2025

@smccarthy-ie

This is currently blocked while we clarify if there's anything else involved in the enablement process. When QE tested this, they did not receive a response from the chatbot. We must verify if further backend configuration and enablement is required. In addition, the chat bot user interface integration has been delayed until 2.23.

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.

4 participants