Skip to content

Conversation

@Zhangg7723
Copy link
Collaborator

Summary

fix the bug in chat with knowledge base
image

Solution Description

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where chat with knowledge base returns "not found" when metadata filtering is disabled. The fix adds a check to skip calling apply_metadata_filter when the filter method is set to "disabled".

  • Added conditional check for method != "disabled" before applying metadata filters
  • Applied the fix consistently across three functions: chat, ask, and gen_mindmap

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@whhe whhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@whhe whhe merged commit ec7d6a9 into oceanbase:main Dec 29, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants