Injected Files for Duo Chat
Implement a feature that allows users to select and pin specific files or folders to their Duo Chat sessions, automatically including the contents as context in each chat request. This functionality will enable users to reference and utilize information from their chosen documents throughout their AI interactions, enhancing the relevance and accuracy of the AI's responses. ### Acceptance Criteria * :white_check_mark: :test_tube: Eval exists and feature performs well (i.e. is \<20% poor answers) * We don't have the proper eval with LLM judge rating rating from 1 to 4 with less than 20% being rated poorly (i.e. score 1 or 2). * However, we [do have an eval based on an LLM judge rating the answer as passed or not-passed](https://gitlab.com/gitlab-org/gitlab/-/issues/504422). * The list of eval questions is rather short. * However, all those passed: https://smith.langchain.com/o/477de7ad-583e-47b6-a1c4-c4a0300e7aca/datasets/f208747c-ad47-40f9-b6e7-c70d5f4e393f?paginationState=%7B%22pageIndex%22%3A0%2C%22pageSize%22%3A10%7D * Conclusion on 4 December by Torsten: we can assume this acceptance criteria is met at the bare minimum level. * :white_check_mark: :book: Feature [is documented](https://docs.gitlab.com/ee/user/gitlab_duo_chat/examples.html#ask-about-specific-files): https://gitlab.com/gitlab-org/gitlab/-/issues/505477+s / https://gitlab.com/gitlab-org/gitlab/-/merge_requests/175490+ * :white_check_mark: :flag_white: Feature can be rolled out without rolling out other not evaluated and non-documented features: https://gitlab.com/gitlab-org/gitlab/-/issues/506766+s * :white_check_mark: :lock: Security https://gitlab.com/gitlab-org/editor-extensions/gitlab-lsp/-/issues/632+s * :x: :raising_hand: Biggest UX pain-points found in user testing (<a href="https://gitlab.com/gitlab-org/ux-research/-/issues/3220#opportunities">Internal Developer Testing for Duo Context Feature</a> / [chat bash from 10/8](https://docs.google.com/spreadsheets/d/1r-l2X_wrxLJGynnMvoNLz0HIyhUq5XGg0lxTIpjZR1s/edit?gid=1405104778#gid=1405104778) / https://gitlab.com/gitlab-org/gitlab/-/issues/498222+) have been addressed * :white_check_mark: https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/issues/1639+ * :x: https://gitlab.com/gitlab-org/editor-extensions/gitlab-lsp/-/issues/471+s * REMOVED AS A CRITICAL ACCEPTANCE CRITERIA :x: ~~[UX broken: one can add file(s) and then use another slash command like /explain but the slash command is not aware of the added file(s)](https://gitlab.com/gitlab-org/gitlab/-/issues/509344)~~ * :white_check_mark: :lock: <a href="https://gitlab.com/groups/gitlab-org/-/epics/15183#note_2242078167">App-sec review</a> ### Pricing and packaging To align with existing [pricing](https://about.gitlab.com/gitlab-duo/#pricing) this feature will be packaged with ~"GitLab Duo Pro" and ~"Gitlab Duo Enterprise" only.
epic