Skip to content

Added the legal info to Tanuki Bot Chat

Denys Mishunov requested to merge dmishunov/tanuki-bot/50 into master

What does this MR do and why?

This MR introduces the legal information to the Tanuki Bot chat as per https://gitlab.com/gitlab-org/enablement-section/tanuki-bot/-/issues/50+

Screenshots or screen recordings

Before After
Screenshot_2023-05-04_at_10.40.36 Screenshot_2023-05-04_at_10.35.56

How to set up and validate locally

You will need to setup the embedding database on your GDK if you haven't already. Thankfully it is pretty straightforward:

  1. Ensure GDK has Ultimate License.
  2. In the GDK root folder:
  • gdk update
  • gdk config set gitlab.rails.databases.embedding.enabled true
  • gdk config set pgvector.enabled true
  • gdk reconfigure
  • cd gitlab
  1. Run DB migrations with bin/rails db:migrate
  2. rails c
  3. Copy/paste and run the script. Make sure it succeeds
  4. While in the Rails console, enable (or make sure they are enabled) the following flags
  • :super_sidebar_nav
  • :openai_experimentation
  • :tanuki_bot
  1. gdk restart
  2. In the UI interface:
  • Ensure the New navigation is enabled. You can enable it by clicking your User profile photo in the top right and toggle the switch
  • Click the help link in the bottom left of the new Sidebar navigation
  • Click Ask GitLab Chat link
  • Make sure the legal note is rendered
  • Ask a question
  • Make sure the note stays fixed on the screen and does not get scrolled away with the new questions/answers

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

References https://gitlab.com/gitlab-org/enablement-section/tanuki-bot/-/issues/50

Merge request reports