Fix Duo Chat documentation links
This introduces a new filter and pipeline for Duo Chat where we change the links from relative to absolute ones. This is necessary because if the LLM includes a link from the documentation, the user needs to be able to click on it and gets to the correct URL.
显示
- config/feature_flags/development/duo_chat_absolute_doc_links.yml 8 个添加, 0 个删除...feature_flags/development/duo_chat_absolute_doc_links.yml
- ee/lib/banzai/filter/absolute_documentation_link_filter.rb 29 个添加, 0 个删除ee/lib/banzai/filter/absolute_documentation_link_filter.rb
- ee/lib/banzai/pipeline/duo_chat_documentation_pipeline.rb 14 个添加, 0 个删除ee/lib/banzai/pipeline/duo_chat_documentation_pipeline.rb
- ee/lib/gitlab/llm/embeddings/utils/docs_absolute_url_converter.rb 20 个添加, 0 个删除...itlab/llm/embeddings/utils/docs_absolute_url_converter.rb
- ee/lib/gitlab/llm/tanuki_bot.rb 7 个添加, 1 个删除ee/lib/gitlab/llm/tanuki_bot.rb
- ee/spec/lib/banzai/filter/absolute_documentation_link_filter_spec.rb 52 个添加, 0 个删除.../banzai/filter/absolute_documentation_link_filter_spec.rb
- ee/spec/lib/gitlab/llm/embeddings/utils/docs_absolute_url_converter_spec.rb 38 个添加, 0 个删除.../llm/embeddings/utils/docs_absolute_url_converter_spec.rb
- ee/spec/lib/gitlab/llm/tanuki_bot_spec.rb 28 个添加, 0 个删除ee/spec/lib/gitlab/llm/tanuki_bot_spec.rb
- lib/banzai/filter/absolute_link_filter.rb 9 个添加, 5 个删除lib/banzai/filter/absolute_link_filter.rb
加载中
想要评论请 注册 或 登录