Skip to content

[OSPRH-40689] fix: ground model in the file_search tool - #165

Draft
lpiwowar wants to merge 1 commit into
openstack-k8s-operators:mainfrom
lpiwowar:fix/file_search_tool_description
Draft

lpiwowar wants to merge 1 commit into
openstack-k8s-operators:mainfrom
lpiwowar:fix/file_search_tool_description

Conversation

@lpiwowar

Copy link
Copy Markdown
Collaborator

The operator enables tool RAG unconditionally (rag.retrieval.tool.sources always contains okp), but the built-in system prompt never mentioned the file_search tool. The model therefore had no domain signal to invoke the tool for product-related questions (OpenStack / RHOSO) and answered from internal knowledge.

Add a grounding section to the built-in system prompt: it names the file_search tool, states that it searches the RHOSO product documentation, and requires calling it before answering product questions. Reword the expertise rules to prioritize retrieved knowledge via the tool.

Assisted-By: OpenCode:GLM 5.3

The operator enables tool RAG unconditionally
(rag.retrieval.tool.sources always contains "okp"), but the built-in
system prompt never mentioned the file_search tool. The model therefore
had no domain signal to invoke the tool for product-related questions
(OpenStack / RHOSO) and answered from internal knowledge.

Add a grounding section to the built-in system prompt: it names the
file_search tool, states that it searches the RHOSO product
documentation, and requires calling it before answering product questions.
Reword the expertise rules to prioritize retrieved knowledge via the tool.

Assisted-By: OpenCode:GLM 5.3
@openshift-ci

openshift-ci Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lpiwowar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant