Skip to content

Conversation

@bsbodden
Copy link
Collaborator

No description provided.

…multi-field sorting

- Add MultiVectorQueryIntegrationTest with 7 tests for multi-vector query feature (#402)
- Add UnfNoindexIntegrationTest with 10 tests for UNF/NOINDEX attributes (#374)
- Enhance QuerySortingIntegrationTest with 5 multi-field sorting tests

Note: skip_decode and text field weights already have comprehensive unit test coverage
Implements role-based filtering for message retrieval, allowing users to filter
messages by role type (system, user, llm, tool) when querying conversation history.

Changes:
- Add validateRoles() method to BaseMessageHistory for role validation
- Update getRecent() signature to accept optional role parameter
- Support single role string or List<String> of multiple roles
- Implement role filtering in MessageHistory using Filter.tag() combinations
- Maintain backward compatibility with existing getRecent() calls

Tests:
- Add RoleFilteringTest with 15 unit tests for validation logic
- Add RoleFilteringIntegrationTest with 15 integration tests
- Test single role, multiple roles, null role, and error cases
- Test role filtering with top_k, session_tag, raw, and asText parameters

Python reference: PR #387 - Role filtering for message history
Ported from: tests/integration/test_role_filter_get_recent.py
@bsbodden bsbodden force-pushed the bsb/integration-tests branch from 916faac to 11a8514 Compare October 23, 2025 16:30
@bsbodden bsbodden merged commit 1253d12 into main Oct 23, 2025
4 checks passed
@bsbodden bsbodden deleted the bsb/integration-tests branch October 23, 2025 16:33
@bsbodden bsbodden self-assigned this Oct 23, 2025
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