Skip to content

Improve prompts used by the zero-shot agent

Gosia Ksionek requested to merge mk-fix-issue-identifing-problems into master

What does this MR do and why?

Improve prompts used by the zero-shot agent to move to other tools if the identifier did not return anything.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

The easiest way to test it is to set it up locally using instructions from: https://docs.gitlab.com/ee/development/ai_features.html#test-ai-features-locally. Particularly, Anthropic api key is needed.

Then, please enable feature flags:

Feature.enable(:gitlab_duo)
Feature.enable(:ai_redis_cache)
Feature.enable(:anthropic_experimentation)

Then in the rails console please use:

::Gitlab::Llm::Completions::Chat.new(nil, {request_id: 1}).execute(User.first, Issue.find(466), {content: "how many labels there is for issue: http://127.0.0.1:3000/ai-hierarchy-test/test/-/issues/1"})

Issue linked in the content is the one analyzed.

MR acceptance checklist

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

Edited by Gosia Ksionek

Merge request reports

Loading