Skip to content

Conversation

@lpi-tn
Copy link
Collaborator

@lpi-tn lpi-tn commented Nov 25, 2025

This pull request introduces a minor change to the error handling logic in the classify_documents_per_collection function. When a collection is not found in Qdrant, the affected document slice is now explicitly flagged as an error in the return value.

Error handling improvement:

  • In welearn_datastack/modules/qdrant_handler.py, updated the error message to indicate that the slice is "flagged as error" and added the slice's document ID to the ret[None] set to track error cases.…ored slices

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 improves error handling in the classify_documents_per_collection function by explicitly tracking document slices that fail due to missing Qdrant collections. Previously, these slices were only logged and ignored; now they are also added to the error tracking set.

Key Changes:

  • Updated error log message to clarify that failed slices are "flagged as error" rather than "ignored"
  • Added failed document IDs to ret[None] set for proper error tracking

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

@lpi-tn lpi-tn merged commit bd3dfff into main Nov 25, 2025
7 checks passed
@lpi-tn lpi-tn deleted the Fix/qdrant-syncronizer-behaviour branch November 25, 2025 15:57
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.

3 participants