Skip to content

[Bug]: Knowledge filter still returns response after deleting the underlying document #1135

@Revathypv

Description

@Revathypv

OpenRAG Version

0.3.0

Deployment Method

uv add (installed in project)

Operating System

macOS 26.3

Python Version

Python 3.13.3

Affected Area

Knowledge Filters (partitions, document filtering)

Bug Description

Knowledge filter still returns response after deleting the underlying document

Steps to Reproduce

  1. Upload the attached document
  2. Navigate to chat to see user is able to get response from the document
  3. Navigate to Knowledge section
  4. Create 'Knowledge Filter'
  5. Give Filter Name : Leave policy filter
  6. Select source as the uploaded document (Leave Policy Test Doc)
  7. Click 'Create Filter'
  8. Navigate to chat to see user is able to get response from the created filter 'Leave policy filter'
  9. Navigate to Knowledge section
  10. Delete the document 'Leave Policy Test Doc'
  11. Navigate to chat section again
  12. Click on the filter icon
  13. 'Leave policy filter' is displayed and select 'Leave policy filter' filter
  14. Ask the question 'what is the leave policy?'

Leave Policy Test Doc.pdf

Expected Behavior

User should see 'no records found' or similar information since the document containing the information has been deleted.

Actual Behavior

User is getting response. Also the filter shows 1 document selected in the source list. But the document is not in the list.

Relevant Logs

Screenshots

Image Image

Additional Context

No response

Checklist

  • I have searched existing issues to ensure this bug hasn't been reported before.
  • I have provided all the requested information.

Metadata

Metadata

Assignees

Labels

bug🔴 Something isn't working.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions